Line 35... |
Line 35... |
35 |
Utils::String sAddon;
|
35 |
Utils::String sAddon;
|
36 |
int iAddonTo;
|
36 |
int iAddonTo;
|
37 |
int iTextNum;
|
37 |
int iTextNum;
|
38 |
CLinkList<SGameExeVersion> lVersions;
|
38 |
CLinkList<SGameExeVersion> lVersions;
|
39 |
} SGameExe;
|
39 |
} SGameExe;
|
- |
|
40 |
|
- |
|
41 |
tstruct GameDirectory
|
- |
|
42 |
{
|
- |
|
43 |
Utils::String dir;
|
- |
|
44 |
Utils::String name;
|
- |
|
45 |
Utils::String version;
|
- |
|
46 |
int id;
|
- |
|
47 |
int langid;
|
- |
|
48 |
Utils::String langname;
|
- |
|
49 |
Utils::String logdir;
|
- |
|
50 |
Utils::String addon;
|
- |
|
51 |
Utils::String exe;
|
- |
|
52 |
Utils::String basename;
|
- |
|
53 |
} GameDirectory;
|
40 |
|
54 |
|
41 |
class SPKEXPORT CGameExe
|
55 |
class SPKEXPORT CGameExe
|
42 |
{
|
56 |
{
|
43 |
private:
|
57 |
private:
|
44 |
CLinkList<SGameExe> m_lExe;
|
58 |
CLinkList<SGameExe> m_lExe;
|
Line 59... |
Line 73... |
59 |
int GetGameVersion(const Utils::String &gameExe, Utils::String *fVersion) const;
|
73 |
int GetGameVersion(const Utils::String &gameExe, Utils::String *fVersion) const;
|
60 |
bool GetGameVersionName(const Utils::String &gameExe, Utils::String *versionName) const;
|
74 |
bool GetGameVersionName(const Utils::String &gameExe, Utils::String *versionName) const;
|
61 |
Utils::String ExtractGameName(const Utils::String &dir) const;
|
75 |
Utils::String ExtractGameName(const Utils::String &dir) const;
|
62 |
Utils::String GetGameRunExe(const Utils::String &dir) const;
|
76 |
Utils::String GetGameRunExe(const Utils::String &dir) const;
|
63 |
Utils::String GetGameName(const Utils::String &gameExe) const;
|
77 |
Utils::String GetGameName(const Utils::String &gameExe) const;
|
- |
|
78 |
Utils::String GetGameBaseName(const Utils::String &gameExe) const;
|
64 |
Utils::String GetGameNameFromType(int type) const;
|
79 |
Utils::String GetGameNameFromType(int type) const;
|
65 |
Utils::String GetGameVersionFromType(int game, int gameVersion, const Utils::String &fGameVersion) const;
|
80 |
Utils::String GetGameVersionFromType(int game, int gameVersion, const Utils::String &fGameVersion) const;
|
66 |
Utils::String GetGameDir(const Utils::String &dir) const;
|
81 |
Utils::String GetGameDir(const Utils::String &dir) const;
|
67 |
Utils::String GetProperDir(const Utils::String &dir) const;
|
82 |
Utils::String GetProperDir(const Utils::String &dir) const;
|
68 |
Utils::String GetAddonDir(const Utils::String &dir) const;
|
83 |
Utils::String GetAddonDir(const Utils::String &dir) const;
|
Line 70... |
Line 85... |
70 |
int getTextID(const Utils::String &dir) const;
|
85 |
int getTextID(const Utils::String &dir) const;
|
71 |
int GetGameAddons(const Utils::String &dir, Utils::CStringList &exe);
|
86 |
int GetGameAddons(const Utils::String &dir, Utils::CStringList &exe);
|
72 |
int GetGameFlags(int game);
|
87 |
int GetGameFlags(int game);
|
73 |
int GetMaxPatch(int game);
|
88 |
int GetMaxPatch(int game);
|
74 |
Utils::String GetModKey(int game);
|
89 |
Utils::String GetModKey(int game);
|
- |
|
90 |
void GetDirectoryData(GameDirectory *gameDir) const;
|
75 |
|
91 |
|
76 |
int ConvertGameType(int gametype, int *version);
|
92 |
int ConvertGameType(int gametype, int *version);
|
77 |
|
93 |
|
78 |
int GetNumGames() { return m_lExe.size(); }
|
94 |
int GetNumGames() { return m_lExe.size(); }
|
79 |
SGameExe *GetGame(int game) { if ( game >= 0 && game < m_lExe.size() ) return m_lExe[game]; return NULL; }
|
95 |
SGameExe *GetGame(int game) { if ( game >= 0 && game < m_lExe.size() ) return m_lExe[game]; return NULL; }
|