去除调试代码

This commit is contained in:
一二三 2023-05-31 00:18:53 +08:00
parent fc0e0bb55e
commit 99526dc326

View File

@ -131,20 +131,16 @@ wb.export(
} }
cmdSpecial = function(command){ cmdSpecial = function(command){
if(_STUDIO_INVOKED){ if(string.find(command,"make")){
if(string.find(command,"make")){ var configFile = io.splitpath(io._exefile).name + ".ini";
var configFile = io.splitpath(io._exefile).name + ".ini"; var ini = fsys.ini(configFile);
var ini = fsys.ini(configFile); var makefilePath = string.replace(ini.getSection("Makefile").路径, "\\", "/");
var makefilePath = string.replace(ini.getSection("Makefile").路径, "\\", "/"); if(!string.endWith(makefilePath,"/")){
if(!string.endWith(makefilePath,"/")){ makefilePath = makefilePath + "/";
makefilePath = makefilePath + "/";
}
command = string.replace(command, "make", makefilePath+"make.bat");
mainForm.msgbox(command);
return;
} }
command = string.replace(command, "make", makefilePath+"make.bat");
mainForm.msgbox(command); mainForm.msgbox(command);
//return; return;
} }
//同步有同步的优势,扬长避短是智慧,倒行逆施最累人。 //同步有同步的优势,扬长避短是智慧,倒行逆施最累人。