Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (i = 0; i < 10; i++)
- {
- if ((method == METHOD_SD) || (method == METHOD_USB))
- {
- ChangeFATInterface(method, SILENT);
- if (i == 0)
- {
- sprintf (filepath, "%s/%s/%s.fcs", ROOTFATDIR, GCSettings.SaveFolder, romFilename);
- }
- else if (i > 0)
- {
- sprintf (filepath, "%s/%s/%s-%d.fcs", ROOTFATDIR, GCSettings.SaveFolder, romFilename, i);
- }
- handle = fopen(filepath, "rb");
- if (!handle)
- {
- if ((lastsave + 1) == i)
- {
- //sprintf(savestate[i], "State %d", i);
- continue;
- }
- else if (i != 0)
- {
- savestate[i][0] = '\0';
- }
- }
- else
- {
- //sprintf(savestate[i], "State %d", i);
- lastsave = i;
- }
- fclose(handle);
- }
Add Comment
Please, Sign In to add comment