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:
iceman1001 committed 2023-07-17 22:54:43 +02:00
1 parent 60cc36b398
commit d08c6f404b
2 files changed
+175 -129

No files matched your search

+2 -1
View File
@@ -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;