Guest User

Untitled

a guest
May 25th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. for (i = 0; i < 10; i++)
  2. {
  3. if ((method == METHOD_SD) || (method == METHOD_USB))
  4. {
  5. ChangeFATInterface(method, SILENT);
  6. if (i == 0)
  7. {
  8. sprintf (filepath, "%s/%s/%s.fcs", ROOTFATDIR, GCSettings.SaveFolder, romFilename);
  9. }
  10. else if (i > 0)
  11. {
  12. sprintf (filepath, "%s/%s/%s-%d.fcs", ROOTFATDIR, GCSettings.SaveFolder, romFilename, i);
  13. }
  14. handle = fopen(filepath, "rb");
  15. if (!handle)
  16. {
  17. if ((lastsave + 1) == i)
  18. {
  19. //sprintf(savestate[i], "State %d", i);
  20. continue;
  21. }
  22. else if (i != 0)
  23. {
  24. savestate[i][0] = '\0';
  25. }
  26. }
  27. else
  28. {
  29. //sprintf(savestate[i], "State %d", i);
  30. lastsave = i;
  31. }
  32. fclose(handle);
  33. }
Add Comment
Please, Sign In to add comment