#define ROM_NAME_LEN 23
-#define STREAM FILE *
-#define READ_STREAM(p,l,s) fread (p,1,l,s)
-#define WRITE_STREAM(p,l,s) fwrite (p,1,l,s)
-#define OPEN_STREAM(f,m) fopen (f,m)
-#define CLOSE_STREAM(s) fclose (s)
-#define SEEK_STREAM(p,r,s) fseek(s,p,r)
-#define FROM_CURRENT SEEK_CUR
-
/* SNES screen width and height */
#define SNES_WIDTH 256
#define SNES_HEIGHT 224
};
/** This routine allows to get path to files whose name depends on the basename
* of the current ROM.
- * Note that FILE_FREEZE is currently not implemented here.
* @param file see enum FileTypes.
* @return wanted filepath. Do not free the returned string.
*/
const char *S9xGetFilename(enum FileTypes file);
+/** Returns the path to freeze file for the selected quick save slot.
+ * @param slot slot number
+ * @return wanted filepath. Do not free the returned string.
+ */
+const char *S9xGetQuickSaveFilename(unsigned int slot);
END_EXTERN_C
#endif