| 1 | #ifndef _GENERAL_H |
| 2 | #define _GENERAL_H |
| 3 | |
| 4 | #include <string> |
| 5 | |
| 6 | void GetFileBase(const char *f); |
| 7 | |
| 8 | std::string MDFN_MakeFName(int type, int id1, const char *cd1); |
| 9 | |
| 10 | typedef enum |
| 11 | { |
| 12 | MDFNMKF_STATE = 0, |
| 13 | MDFNMKF_SNAP, |
| 14 | MDFNMKF_SAV, |
| 15 | MDFNMKF_CHEAT, |
| 16 | MDFNMKF_PALETTE, |
| 17 | MDFNMKF_IPS, |
| 18 | MDFNMKF_MOVIE, |
| 19 | MDFNMKF_AUX, |
| 20 | MDFNMKF_SNAP_DAT, |
| 21 | MDFNMKF_CHEAT_TMP, |
| 22 | MDFNMKF_FIRMWARE |
| 23 | } MakeFName_Type; |
| 24 | |
| 25 | std::string MDFN_MakeFName(MakeFName_Type type, int id1, const char *cd1); |
| 26 | |
| 27 | #ifdef __cplusplus |
| 28 | extern "C" { |
| 29 | #endif |
| 30 | |
| 31 | const char * GetFNComponent(const char *str); |
| 32 | |
| 33 | #ifdef __cplusplus |
| 34 | } |
| 35 | #endif |
| 36 | |
| 37 | #endif |