Line 49... |
Line 49... |
49 |
void ParseExe(const Utils::String &line);
|
49 |
void ParseExe(const Utils::String &line);
|
50 |
int ParseFlags(const Utils::String &flags);
|
50 |
int ParseFlags(const Utils::String &flags);
|
51 |
bool ReadFile(const Utils::String &file);
|
51 |
bool ReadFile(const Utils::String &file);
|
52 |
|
52 |
|
53 |
int AddExe(const Utils::String &exe);
|
53 |
int AddExe(const Utils::String &exe);
|
54 |
SGameExe *gameExe(const Utils::String &exe);
|
54 |
SGameExe *gameExe(const Utils::String &exe) const;
|
55 |
|
55 |
|
56 |
int FindVersion(const Utils::String &exe, int size, Utils::String *fVersion);
|
56 |
int FindVersion(const Utils::String &exe, int size, Utils::String *fVersion);
|
57 |
|
57 |
|
58 |
int GetGameType(const Utils::String &gameExe);
|
58 |
int GetGameType(const Utils::String &gameExe) const;
|
59 |
int GetGameVersion(const Utils::String &gameExe, Utils::String *fVersion);
|
59 |
int GetGameVersion(const Utils::String &gameExe, Utils::String *fVersion) const;
|
60 |
bool GetGameVersionName(const Utils::String &gameExe, Utils::String *versionName);
|
60 |
bool GetGameVersionName(const Utils::String &gameExe, Utils::String *versionName) const;
|
61 |
Utils::String ExtractGameName(const Utils::String &dir);
|
61 |
Utils::String ExtractGameName(const Utils::String &dir) const;
|
62 |
Utils::String GetGameRunExe(const Utils::String &dir);
|
62 |
Utils::String GetGameRunExe(const Utils::String &dir) const;
|
63 |
Utils::String GetGameName(const Utils::String &gameExe);
|
63 |
Utils::String GetGameName(const Utils::String &gameExe) const;
|
64 |
Utils::String GetGameNameFromType(int type);
|
64 |
Utils::String GetGameNameFromType(int type) const;
|
65 |
Utils::String GetGameVersionFromType(int game, int gameVersion, const Utils::String &fGameVersion);
|
65 |
Utils::String GetGameVersionFromType(int game, int gameVersion, const Utils::String &fGameVersion) const;
|
66 |
Utils::String GetGameDir(const Utils::String &dir);
|
66 |
Utils::String GetGameDir(const Utils::String &dir) const;
|
67 |
Utils::String GetProperDir(const Utils::String &dir);
|
67 |
Utils::String GetProperDir(const Utils::String &dir) const;
|
68 |
Utils::String GetAddonDir(const Utils::String &dir);
|
68 |
Utils::String GetAddonDir(const Utils::String &dir) const;
|
- |
|
69 |
bool isAddon(const Utils::String &ext) const;
|
- |
|
70 |
int getTextID(const Utils::String &dir) const;
|
69 |
int GetGameAddons(const Utils::String &dir, CyStringList &exe);
|
71 |
int GetGameAddons(const Utils::String &dir, Utils::CStringList &exe);
|
70 |
int GetGameFlags(int game);
|
72 |
int GetGameFlags(int game);
|
71 |
int GetMaxPatch(int game);
|
73 |
int GetMaxPatch(int game);
|
72 |
Utils::String GetModKey(int game);
|
74 |
Utils::String GetModKey(int game);
|
73 |
|
75 |
|
74 |
int ConvertGameType(int gametype, int *version);
|
76 |
int ConvertGameType(int gametype, int *version);
|
Line 76... |
Line 78... |
76 |
int GetNumGames() { return m_lExe.size(); }
|
78 |
int GetNumGames() { return m_lExe.size(); }
|
77 |
SGameExe *GetGame(int game) { if ( game >= 0 && game < m_lExe.size() ) return m_lExe[game]; return NULL; }
|
79 |
SGameExe *GetGame(int game) { if ( game >= 0 && game < m_lExe.size() ) return m_lExe[game]; return NULL; }
|
78 |
|
80 |
|
79 |
private:
|
81 |
private:
|
80 |
int _findExe(const Utils::String &exe) const;
|
82 |
int _findExe(const Utils::String &exe) const;
|
81 |
int _findVersion(int exe, int size, Utils::String *fVersion);
|
83 |
int _findVersion(int exe, int size, Utils::String *fVersion) const;
|
82 |
|
84 |
|
83 |
void _SetExeName(Utils::String *sName, int *iName, const Utils::String &n);
|
85 |
void _SetExeName(Utils::String *sName, int *iName, const Utils::String &n);
|
84 |
Utils::String _textFileName(const Utils::String &sGameDir);
|
86 |
Utils::String _textFileName(const Utils::String &sGameDir) const;
|
85 |
Utils::String _readTextFile(const Utils::String &sGameDir);
|
87 |
Utils::String _readTextFile(const Utils::String &sGameDir) const;
|
86 |
Utils::String _extractTextData(const Utils::String &sData, long iPage, long iID);
|
88 |
Utils::String _extractTextData(const Utils::String &sData, long iPage, long iID, int iGameID) const;
|
87 |
};
|
89 |
};
|
88 |
|
90 |
|
89 |
|
91 |
|
90 |
#endif //__GAME_EXE_H__
|
92 |
#endif //__GAME_EXE_H__
|