first cleanup of hf_legic lua script. All io.open calls is problematic.\nfixed some colors in the help texts. makes it a bit easier to read\nfix loading files using the searchfile call\nstill problematic with save file calls since it should honor the user defined preference paths.
This commit is contained in:
1 parent
60cc36b398
commit
d08c6f404b
2 files changed
+175
-129
No files matched your search
@@ -1269,8 +1269,9 @@ static int l_searchfile(lua_State *L) {
|
||||
size_t size;
|
||||
// data
|
||||
const char *filename = luaL_checklstring(L, 1, &size);
|
||||
if (size == 0)
|
||||
if (size == 0) {
|
||||
return returnToLuaWithError(L, "Must specify filename");
|
||||
}
|
||||
|
||||
const char *suffix = luaL_checklstring(L, 2, &size);
|
||||
char *path;
|
||||
|
||||
Reference in new issue
Block a user