-Secció "files" del game.ini obsoleta. Ara sempre obri "main.lua". Els demes arxius s'inclouen amb "require()"

This commit is contained in:
2023-08-04 14:04:26 +02:00
parent 4fd9a443f2
commit 040697fcbd
6 changed files with 24 additions and 36 deletions

View File

@@ -41,7 +41,7 @@ FILE *file = NULL;
//uint8_t file_mode = 0;
bool file_ignore_comma=true;
char lua_files[1024];
//char lua_files[1024];
#define DEST(x, y) dest_surface->p[x+y*dest_surface->w]
#define SOURCE(x, y) source_surface->p[x+y*source_surface->w]
@@ -119,10 +119,10 @@ void read_ini() {
else if (strcmp(line, "height") == 0) screen_height = atoi(value);
else if (strcmp(line, "zoom") == 0) screen_zoom = atoi(value);
else if (strcmp(line, "fullscreen") == 0) screen_fullscreen = atoi(value);
else if (strcmp(line, "files") == 0) {
//else if (strcmp(line, "files") == 0) {
//lua_files = (char*)malloc(strlen(value));
strcpy(lua_files, value);
}
// strcpy(lua_files, value);
//}
}
}
fclose(f);
@@ -280,7 +280,7 @@ int main(int argc,char*argv[]){
#ifdef DEBUG
debug("MINI v%s\n",MINI_VERSION);
#endif
lua_init(lua_files);
lua_init();
lua_call_init();
Uint32 dt=SDL_GetTicks();