| 1 | #cxx . . $ `<file>/mednafen/file.h`/ifndef MDFN_FILE_H |
| 2 | #define MDFN_FILE_Hcxx . . $ `mednafen/file.h:2:9`! |
| 3 | |
| 4 | #include <string> |
| 5 | |
| 6 | #define MDFNFILE_EC_NOTFOUNDcxx . . $ `mednafen/file.h:6:9`! 1 |
| 7 | #define MDFNFILE_EC_OTHERcxx . . $ `mednafen/file.h:7:9`! 2 |
| 8 | |
| 9 | class MDFNFILEcxx . . $ MDFNFILE# |
| 10 | { |
| 11 | public: |
| 12 | |
| 13 | MDFNFILEcxx . . $ MDFNFILE#MDFNFILE(49f6e7a06ebc5aa8).(); |
| 14 | // WIP constructors: |
| 15 | MDFNFILEcxx . . $ MDFNFILE#MDFNFILE(9c85eaa12893977b).(const char *path, const void *known_ext, const char *purpose = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!); |
| 16 | |
| 17 | ~cxx . . $ MDFNFILE#`~MDFNFILE`(49f6e7a06ebc5aa8).MDFNFILEcxx . . $ MDFNFILE#(); |
| 18 | |
| 19 | bool Opencxx . . $ MDFNFILE#Open(eb4f300025480a43).(const char *path, const void *known_ext, const char *purpose = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, const bool suppress_notfound_pe = FALSEcxx . . $ `mednafen/mednafen-types.h:109:9`!); |
| 20 | INLINEcxx . . $ `mednafen/mednafen-types.h:21:11`! bool Opencxx . . $ MDFNFILE#Open(5acc14a28fc1f16c).(const stdcxx . . $ std/::stringcxx . . $ std/string# &path, const void *known_ext, const char *purpose = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, const bool suppress_notfound_pe = FALSEcxx . . $ `mednafen/mednafen-types.h:109:9`!) |
| 21 | { |
| 22 | return(Opencxx . . $ MDFNFILE#Open(eb4f300025480a43).(path.c_strcxx . . $ std/__cxx11/basic_string#c_str(8e614c7de0b1573e).(), known_ext, purpose, suppress_notfound_pe)); |
| 23 | } |
| 24 | |
| 25 | bool ApplyIPScxx . . $ MDFNFILE#ApplyIPS(db00c6a08f501612).(void*); |
| 26 | bool Closecxx . . $ MDFNFILE#Close(c9857a73d68e59ba).(void); |
| 27 | |
| 28 | uint64cxx . . $ uint64# freadcxx . . $ MDFNFILE#fread(e2eaf0fd878a292f).(void *ptr, size_t size, size_t nmemb); |
| 29 | int fseekcxx . . $ MDFNFILE#fseek(4a3ed3c01b538bac).(int64cxx . . $ int64# offset, int whence); |
| 30 | |
| 31 | inline uint64cxx . . $ uint64# ftellcxx . . $ MDFNFILE#ftell(f708dce9a8856c70).(void) |
| 32 | { |
| 33 | return(locationcxx . . $ MDFNFILE#location.); |
| 34 | } |
| 35 | |
| 36 | inline void rewindcxx . . $ MDFNFILE#rewind(49f6e7a06ebc5aa8).(void) |
| 37 | { |
| 38 | locationcxx . . $ MDFNFILE#location. = 0; |
| 39 | } |
| 40 | |
| 41 | int read32lecxx . . $ MDFNFILE#read32le(4ebf403dd87dd80).(uint32cxx . . $ uint32# *Bufo); |
| 42 | int read16lecxx . . $ MDFNFILE#read16le(910e03eb156beb90).(uint16cxx . . $ uint16# *Bufo); |
| 43 | |
| 44 | inline int _fgetccxx . . $ MDFNFILE#_fgetc(b126dc7c1de90089).(void) |
| 45 | { |
| 46 | if(locationcxx . . $ MDFNFILE#location. < f_sizecxx . . $ MDFNFILE#f_size.) |
| 47 | return f_datacxx . . $ MDFNFILE#f_data.[locationcxx . . $ MDFNFILE#location.++]; |
| 48 | |
| 49 | return EOFcxx . . $ `<external>/232824719582829767/stdio.h:105:9`!; |
| 50 | } |
| 51 | |
| 52 | inline int fisarchivecxx . . $ MDFNFILE#fisarchive(b126dc7c1de90089).(void) |
| 53 | { |
| 54 | return(0); |
| 55 | } |
| 56 | |
| 57 | char *fgetscxx . . $ MDFNFILE#fgets(ad13dc7cd1ddbf0a).(char *s, int size); |
| 58 | uint8cxx . . $ uint8# *f_datacxx . . $ MDFNFILE#f_data.; |
| 59 | int64cxx . . $ int64# f_sizecxx . . $ MDFNFILE#f_size.; |
| 60 | char *f_extcxx . . $ MDFNFILE#f_ext.; |
| 61 | |
| 62 | private: |
| 63 | |
| 64 | int64cxx . . $ int64# locationcxx . . $ MDFNFILE#location.; |
| 65 | |
| 66 | bool MakeMemWrapAndClosecxx . . $ MDFNFILE#MakeMemWrapAndClose(db00c6a08f501612).(void *tz); |
| 67 | }; |
| 68 | |
| 69 | #endif |