Subversion Repositories spk

Rev

Rev 94 | Rev 101 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 94 Rev 95
Line 4... Line 4...
4
#include "spkdefines.h"
4
#include "spkdefines.h"
-
 
5
#include "Utils/StringList.h"
5
 
6
 
6
class CPackages;
7
class CPackages;
-
 
8
class CGameExe;
7
 
9
 
8
namespace SPK {
10
namespace SPK {
9
 
11
 
10
	class CVirtualFileSystem;
12
	class CVirtualFileSystem;
11
 
13
 
Line 20... Line 22...
20
 
22
 
21
	tclass CGameDirectories
23
	tclass CGameDirectories
22
	{
24
	{
23
	private:
25
	private:
24
		std::vector<SGameDir *> *_pDirs;
26
		std::vector<SGameDir *> *_pDirs;
-
 
27
		Utils::CStringList	_lControlledDirs;
25
		SGameDir	*_pCurrentItr;
28
		SGameDir	*_pCurrentItr;
26
		SGameDir	*_pSelected;
29
		SGameDir	*_pSelected;
27
		SGameDir	*_pTemporary;
30
		SGameDir	*_pTemporary;
28
		int			 _iLanguage;
31
		int			 _iLanguage;
29
 
32
 
30
	public:
33
	public:
31
		CGameDirectories(void);
34
		CGameDirectories(const Utils::String &mydoc);
32
		~CGameDirectories(void);
35
		~CGameDirectories(void);
33
 
36
 
34
		bool add(const Utils::String &dir, const Utils::String &name, int iGame, const Utils::String &addon, bool bLoad);
37
		bool add(const Utils::String &dir, const Utils::String &name, int iGame, const Utils::String &addon, bool bLoad);
35
		bool remove(const Utils::String &dir);
38
		bool remove(const Utils::String &dir);
36
 
39
 
Line 55... Line 58...
55
 
58
 
56
		Utils::String currentName() const;
59
		Utils::String currentName() const;
57
		int currentGame() const;
60
		int currentGame() const;
58
		bool currentLoad() const;
61
		bool currentLoad() const;
59
		CVirtualFileSystem *selectedVFS() const;
62
		CVirtualFileSystem *selectedVFS() const;
-
 
63
 
-
 
64
		void syncWithControlled(CGameExe *exe);
60
 
65
 
61
		Utils::String findText(int iGame, int iLanguage, int iPage, int iID);
66
		Utils::String findText(int iGame, int iLanguage, int iPage, int iID);
62
		Utils::String findText(int iLanguage, int iPage, int iID, Utils::String missing = Utils::String::Null());
67
		Utils::String findText(int iLanguage, int iPage, int iID, Utils::String missing = Utils::String::Null());
63
 
68
 
64
		Utils::String first(int iGame = -1);
69
		Utils::String first(int iGame = -1);
Line 81... Line 86...
81
 
86
 
82
	private:
87
	private:
83
		SGameDir *_findGameDir(int iGame) const;	
88
		SGameDir *_findGameDir(int iGame) const;	
84
		SGameDir *_findGameDir(const Utils::String &dir) const;	
89
		SGameDir *_findGameDir(const Utils::String &dir) const;	
85
		void _add(const Utils::String &dir, const Utils::String &name, int iGame, const Utils::String &addon, bool bLoad);
90
		void _add(const Utils::String &dir, const Utils::String &name, int iGame, const Utils::String &addon, bool bLoad);
-
 
91
 
-
 
92
		void _updateControlledDirs(const Utils::String &mydoc);
86
	};
93
	};
87
 
94
 
88
}
95
}