Hi Sebastian,
I checked the sources and a looot of work went into this effort.
Maybe you could explain more in your first post what is the goal of the tool, please?
I think it will inspire others to try it
I must admit I am not sure if I use the tool correctly at the moment, however, I found out:
- TestFile2.tbasic contains redundant NEXT
- if you want one file get included just once, you can use #include once
- you could aid installation of the tool like:
' Save as install.py where README.txt is
uses "file", "ini", "console"
string toolsDir = APP_Path + "thinAir\Tools\"
print "Installing binary..."
string newBinary = InstallToolBinary(toolsDir)
if FILE_Exists(newBinary) Then
printl "OK" in 10
else
printl "Failed" in 12
waitkey
end if
RegisterToolBinary(toolsDir)
printl "Installation finished, restart thinAir please!" in 14
waitkey
function InstallToolBinary(toolsDir as string) as string
string newToolDir = toolsDir + "thinternational\"
dir_make(newToolDir)
string fullDestPath = newToolDir + "I18N.exe"
file_copy("bin\I18N.exe", fullDestPath)
return fullDestPath
end function
function RegisterToolBinary(toolsDir as string)
string toolsConfigFile = toolsDir + "thinAir_Tools.ini"
ini_setKey(toolsConfigFile, "thinI18N", "Menu", "thinternational")
ini_setKey(toolsConfigFile, "thinI18N", "CommandLine", "%thinAirinstallpath%\Tools\thinternational\I18N.exe ""%sourcecodefullpathname%""")
ini_setKey(toolsConfigFile, "thinI18N", "SaveScriptBefore", "true")
end function
Petr
Bookmarks