Debian Codegraph @

mednafen/general.h

raw symbols SCIP
1 #ifndef _GENERAL_H
2 #define _GENERAL_H
3
4 #include <string>
5
6 extern uint32 MDFN_RoundUpPow2(uint32);
7
8 void GetFileBase(const char *f);
9
10 // File-inclusion for-read-only path, for PSF and CUE/TOC sheet usage.
11 bool MDFN_IsFIROPSafe(const std::string &path);
12
13 std::string MDFN_MakeFName(int type, int id1, const char *cd1);
14
15 void MDFN_ltrim(std::string &string);
16 void MDFN_rtrim(std::string &string);
17 void MDFN_trim(std::string &string);
18
19 typedef enum
20 {
21 MDFNMKF_STATE = 0,
22 MDFNMKF_SNAP,
23 MDFNMKF_SAV,
24 MDFNMKF_CHEAT,
25 MDFNMKF_PALETTE,
26 MDFNMKF_IPS,
27 MDFNMKF_MOVIE,
28 MDFNMKF_AUX,
29 MDFNMKF_SNAP_DAT,
30 MDFNMKF_CHEAT_TMP,
31 MDFNMKF_FIRMWARE
32 } MakeFName_Type;
33
34 std::string MDFN_MakeFName(MakeFName_Type type, int id1, const char *cd1);
35
36 const char * GetFNComponent(const char *str);
37
38 void MDFN_GetFilePathComponents(const std::string &file_path, std::string *dir_path_out, std::string *file_base_out = NULL, std::string *file_ext_out = NULL);
39 std::string MDFN_EvalFIP(const std::string &dir_path, const std::string &rel_path, bool skip_safety_check = false);
40 #endif