1
Mach4 Toolbox / Re: File Fuction (File Operations) module for txt files
« on: June 13, 2017, 06:36:31 PM »
This does not seem to be working in ver 3390. My path is Mach4Hobby3390\Modules. This errors out on the require - version mismatch in precompiled chunck.
Code: [Select]
local inst = mc.mcGetInstance()
local profile = mc.mcProfileGetName(inst)
local path = mc.mcCntlGetMachDir(inst)
package.path = path .. "\\Profiles\\" .. profile .. "\\Modules\\?.lua;" .. path .. "\\Modules\\?.lua;" .. path .. "\\Modules\\?.mcc;"
--CustFunc Module
package.loaded.mcTouchOff = nil
package.loaded.FileFuncModule = nil
ff = require "FileFuncModule"