| 1 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,75 +0,0 @@ |
| 1 |
-/* |
|
| 2 |
- Copyright (C) 2006 Normmatt |
|
| 3 |
- Copyright (C) 2007 Pascal Giard |
|
| 4 |
- Copyright (C) 2007-2012 DeSmuME team |
|
| 5 |
- |
|
| 6 |
- This file is free software: you can redistribute it and/or modify |
|
| 7 |
- it under the terms of the GNU General Public License as published by |
|
| 8 |
- the Free Software Foundation, either version 2 of the License, or |
|
| 9 |
- (at your option) any later version. |
|
| 10 |
- |
|
| 11 |
- This file is distributed in the hope that it will be useful, |
|
| 12 |
- but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 13 |
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 14 |
- GNU General Public License for more details. |
|
| 15 |
- |
|
| 16 |
- You should have received a copy of the GNU General Public License |
|
| 17 |
- along with the this software. If not, see <http://www.gnu.org/licenses/>. |
|
| 18 |
-*/ |
|
| 19 |
- |
|
| 20 |
-#ifndef _SRAM_H |
|
| 21 |
-#define _SRAM_H |
|
| 22 |
- |
|
| 23 |
-#include "types.h" |
|
| 24 |
- |
|
| 25 |
-#define SRAM_ADDRESS 0x0A000000 |
|
| 26 |
-#define SRAM_SIZE 0x10000 |
|
| 27 |
-#define NB_STATES 10 |
|
| 28 |
- |
|
| 29 |
-//extern int lastSaveState; |
|
| 30 |
- |
|
| 31 |
-/*typedef struct |
|
| 32 |
-{
|
|
| 33 |
- bool exists; |
|
| 34 |
- char date[40]; |
|
| 35 |
-} savestates_t;*/ |
|
| 36 |
- |
|
| 37 |
- |
|
| 38 |
-struct SFORMAT |
|
| 39 |
-{
|
|
| 40 |
- //a string description of the element |
|
| 41 |
- const char *desc; |
|
| 42 |
- |
|
| 43 |
- //the size of each element |
|
| 44 |
- uint32_t size; |
|
| 45 |
- |
|
| 46 |
- //the number of each element |
|
| 47 |
- uint32_t count; |
|
| 48 |
- |
|
| 49 |
- //a void* to the data or a void** to the data |
|
| 50 |
- void *v; |
|
| 51 |
-}; |
|
| 52 |
- |
|
| 53 |
-//extern savestates_t savestates[NB_STATES]; |
|
| 54 |
- |
|
| 55 |
-//void clear_savestates(); |
|
| 56 |
-//void scan_savestates(); |
|
| 57 |
-uint8_t sram_read (uint32_t address); |
|
| 58 |
-void sram_write (uint32_t address, uint8_t value); |
|
| 59 |
-int sram_load (const char *file_name); |
|
| 60 |
-int sram_save (const char *file_name); |
|
| 61 |
- |
|
| 62 |
-//bool savestate_load (const char *file_name); |
|
| 63 |
-//bool savestate_save (const char *file_name); |
|
| 64 |
- |
|
| 65 |
-//void savestate_slot(int num); |
|
| 66 |
-//void loadstate_slot(int num); |
|
| 67 |
- |
|
| 68 |
-void loadstate(); |
|
| 69 |
-bool savestate_load(class EMUFILE* is); |
|
| 70 |
-//bool savestate_save(class EMUFILE* outstream, int compressionLevel); |
|
| 71 |
- |
|
| 72 |
-//void dorewind(); |
|
| 73 |
-//void rewindsave(); |
|
| 74 |
- |
|
| 75 |
-#endif |
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,75 @@ |
| 1 |
+/* |
|
| 2 |
+ Copyright (C) 2006 Normmatt |
|
| 3 |
+ Copyright (C) 2007 Pascal Giard |
|
| 4 |
+ Copyright (C) 2007-2012 DeSmuME team |
|
| 5 |
+ |
|
| 6 |
+ This file is free software: you can redistribute it and/or modify |
|
| 7 |
+ it under the terms of the GNU General Public License as published by |
|
| 8 |
+ the Free Software Foundation, either version 2 of the License, or |
|
| 9 |
+ (at your option) any later version. |
|
| 10 |
+ |
|
| 11 |
+ This file is distributed in the hope that it will be useful, |
|
| 12 |
+ but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 13 |
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 14 |
+ GNU General Public License for more details. |
|
| 15 |
+ |
|
| 16 |
+ You should have received a copy of the GNU General Public License |
|
| 17 |
+ along with the this software. If not, see <http://www.gnu.org/licenses/>. |
|
| 18 |
+*/ |
|
| 19 |
+ |
|
| 20 |
+#ifndef _SRAM_H |
|
| 21 |
+#define _SRAM_H |
|
| 22 |
+ |
|
| 23 |
+#include "types.h" |
|
| 24 |
+ |
|
| 25 |
+#define SRAM_ADDRESS 0x0A000000 |
|
| 26 |
+#define SRAM_SIZE 0x10000 |
|
| 27 |
+#define NB_STATES 10 |
|
| 28 |
+ |
|
| 29 |
+//extern int lastSaveState; |
|
| 30 |
+ |
|
| 31 |
+/*typedef struct |
|
| 32 |
+{
|
|
| 33 |
+ bool exists; |
|
| 34 |
+ char date[40]; |
|
| 35 |
+} savestates_t;*/ |
|
| 36 |
+ |
|
| 37 |
+ |
|
| 38 |
+struct SFORMAT |
|
| 39 |
+{
|
|
| 40 |
+ //a string description of the element |
|
| 41 |
+ const char *desc; |
|
| 42 |
+ |
|
| 43 |
+ //the size of each element |
|
| 44 |
+ uint32_t size; |
|
| 45 |
+ |
|
| 46 |
+ //the number of each element |
|
| 47 |
+ uint32_t count; |
|
| 48 |
+ |
|
| 49 |
+ //a void* to the data or a void** to the data |
|
| 50 |
+ void *v; |
|
| 51 |
+}; |
|
| 52 |
+ |
|
| 53 |
+//extern savestates_t savestates[NB_STATES]; |
|
| 54 |
+ |
|
| 55 |
+//void clear_savestates(); |
|
| 56 |
+//void scan_savestates(); |
|
| 57 |
+uint8_t sram_read (uint32_t address); |
|
| 58 |
+void sram_write (uint32_t address, uint8_t value); |
|
| 59 |
+int sram_load (const char *file_name); |
|
| 60 |
+int sram_save (const char *file_name); |
|
| 61 |
+ |
|
| 62 |
+//bool savestate_load (const char *file_name); |
|
| 63 |
+//bool savestate_save (const char *file_name); |
|
| 64 |
+ |
|
| 65 |
+//void savestate_slot(int num); |
|
| 66 |
+//void loadstate_slot(int num); |
|
| 67 |
+ |
|
| 68 |
+void loadstate(); |
|
| 69 |
+bool savestate_load(class EMUFILE* is); |
|
| 70 |
+//bool savestate_save(class EMUFILE* outstream, int compressionLevel); |
|
| 71 |
+ |
|
| 72 |
+//void dorewind(); |
|
| 73 |
+//void rewindsave(); |
|
| 74 |
+ |
|
| 75 |
+#endif |