| 1 | #cxx . . $ `<file>/mednafen/state.h`/ifndef _STATE_H |
| 2 | #define _STATE_Hcxx . . $ `mednafen/state.h:2:9`! |
| 3 | |
| 4 | #include <stdint.h> |
| 5 | |
| 6 | #include <boolean.h>cxx . . $ `<file>/libretro-common/include/boolean.h`/ |
| 7 | #include <retro_inline.h>cxx . . $ `<file>/libretro-common/include/retro_inline.h`/ |
| 8 | |
| 9 | typedef structcxx . . $ $anonymous_type_8d6ca9fa7c8baca5_0# |
| 10 | { |
| 11 | uint8_tcxx . . $ uint8_t# *datacxx . . $ $anonymous_type_8d6ca9fa7c8baca5_0#data.; |
| 12 | uint32_tcxx . . $ uint32_t# loccxx . . $ $anonymous_type_8d6ca9fa7c8baca5_0#loc.; |
| 13 | uint32_tcxx . . $ uint32_t# lencxx . . $ $anonymous_type_8d6ca9fa7c8baca5_0#len.; |
| 14 | uint32_tcxx . . $ uint32_t# mallocedcxx . . $ $anonymous_type_8d6ca9fa7c8baca5_0#malloced.; |
| 15 | uint32_tcxx . . $ uint32_t# initial_malloccxx . . $ $anonymous_type_8d6ca9fa7c8baca5_0#initial_malloc.; /* A setting! */ |
| 16 | } StateMemcxx . . $ StateMem#; |
| 17 | |
| 18 | #ifdef __cplusplus |
| 19 | extern "C" { |
| 20 | #endif |
| 21 | |
| 22 | int MDFNSS_SaveSMcxx . . $ MDFNSS_SaveSM(d855d810c36bab0b).(void *st, int, int, const void*, const void*, const void*); |
| 23 | int MDFNSS_LoadSMcxx . . $ MDFNSS_LoadSM(4d015e8c0eefb98e).(void *st, int, int); |
| 24 | |
| 25 | /* Flag for a single, >= 1 byte native-endian variable */ |
| 26 | #define MDFNSTATE_RLSBcxx . . $ `mednafen/state.h:26:9`! 0x80000000 |
| 27 | /* 32-bit native-endian elements */ |
| 28 | #define MDFNSTATE_RLSB32cxx . . $ `mednafen/state.h:28:9`! 0x40000000 |
| 29 | /* 16-bit native-endian elements */ |
| 30 | #define MDFNSTATE_RLSB16cxx . . $ `mednafen/state.h:30:9`! 0x20000000 |
| 31 | /* 64-bit native-endian elements */ |
| 32 | #define MDFNSTATE_RLSB64cxx . . $ `mednafen/state.h:32:9`! 0x10000000 |
| 33 | |
| 34 | #define MDFNSTATE_BOOLcxx . . $ `mednafen/state.h:34:9`! 0x08000000 |
| 35 | |
| 36 | typedef structcxx . . $ $anonymous_type_8d6ca9fa7c8baca5_1# |
| 37 | { |
| 38 | void *vcxx . . $ $anonymous_type_8d6ca9fa7c8baca5_1#v.; /* Pointer to the variable/array */ |
| 39 | uint32_tcxx . . $ uint32_t# sizecxx . . $ $anonymous_type_8d6ca9fa7c8baca5_1#size.; /* Length, in bytes, of the data to be saved EXCEPT: |
| 40 | * In the case of MDFNSTATE_BOOL, it is the number |
| 41 | * of bool elements to save(bool is not always 1-byte). |
| 42 | * |
| 43 | * If 0, the subchunk isn't saved. |
| 44 | */ |
| 45 | uint32_tcxx . . $ uint32_t# flagscxx . . $ $anonymous_type_8d6ca9fa7c8baca5_1#flags.; /* Flags */ |
| 46 | const char *namecxx . . $ $anonymous_type_8d6ca9fa7c8baca5_1#name.; /* Name */ |
| 47 | } SFORMATcxx . . $ SFORMAT#; |
| 48 | |
| 49 | /* State-Section Descriptor */ |
| 50 | struct SSDescriptorcxx . . $ SSDescriptor# |
| 51 | { |
| 52 | |
| 53 | SFORMATcxx . . $ SFORMAT# *sfcxx . . $ SSDescriptor#sf.; |
| 54 | const char *namecxx . . $ SSDescriptor#name.; |
| 55 | }; |
| 56 | |
| 57 | int MDFNSS_StateActioncxx . . $ MDFNSS_StateAction(3f628545d3b0df83).(void *st, int load, int data_only, SFORMATcxx . . $ SFORMAT# *sf, const char *name, boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! optional); |
| 58 | |
| 59 | #ifdef __cplusplus |
| 60 | } |
| 61 | #endif |
| 62 | |
| 63 | #endif |