file based save states, and improved file structure
This commit is contained in:
@ -87,6 +87,15 @@ int emu_run(int argc, char **argv) {
|
||||
printf("Failed to load ROM file: %s\n", argv[1]);
|
||||
return -2;
|
||||
}
|
||||
|
||||
char fn[1048];
|
||||
char *profile = getenv("USERPROFILE");
|
||||
sprintf(fn, "%s\\Documents\\gbemu", profile);
|
||||
CreateDirectory(fn, NULL);
|
||||
sprintf(fn, "%s\\Documents\\gbemu\\saves", profile);
|
||||
CreateDirectory(fn, NULL);
|
||||
sprintf(fn, "%s\\Documents\\gbemu\\states", profile);
|
||||
CreateDirectory(fn, NULL);
|
||||
|
||||
printf("Cart loaded..\n");
|
||||
ctx.app_path = argv[0];
|
||||
|
Reference in New Issue
Block a user