VERSIÓ 1.4.2
- [NEW] excutar "mini --version" torna la versió - [NEW] executar "mini dura/a/un/data.jf2" usará eixe arxiu jf2 - [NEW] sys.version()
This commit is contained in:
9
mini.cpp
9
mini.cpp
@@ -459,6 +459,9 @@ int main(int argc,char*argv[]){
|
||||
if (strcmp(command, "new")==0) {
|
||||
createNewProject();
|
||||
exit(0);
|
||||
} else if (strcmp(command, "version")==0) {
|
||||
//createNewProject();
|
||||
exit(0);
|
||||
}
|
||||
} else if (strstr(argv[1], ".lua")!=nullptr) {
|
||||
file_setresourcefolder("./");
|
||||
@@ -466,6 +469,12 @@ int main(int argc,char*argv[]){
|
||||
strcpy(main_lua_file, argv[1]);
|
||||
strcpy(window_title, argv[1]);
|
||||
override_ini = true;
|
||||
} else if (strstr(argv[1], ".jf2")!=nullptr) {
|
||||
file_setresourcefilename(argv[1]);
|
||||
file_setsource(SOURCE_FILE);
|
||||
//strcpy(main_lua_file, argv[1]);
|
||||
//strcpy(window_title, argv[1]);
|
||||
//override_ini = true;
|
||||
} else {
|
||||
char path[256] = "./";
|
||||
strcat(path, argv[1]);
|
||||
|
||||
Reference in New Issue
Block a user