aboutsummaryrefslogtreecommitdiff
path: root/sword2/resman.h
diff options
context:
space:
mode:
Diffstat (limited to 'sword2/resman.h')
-rw-r--r--sword2/resman.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/sword2/resman.h b/sword2/resman.h
index 7fabf907c7..42ebda120d 100644
--- a/sword2/resman.h
+++ b/sword2/resman.h
@@ -64,7 +64,7 @@ private:
Sword2Engine *_vm;
- int _curCd;
+ int _curCD;
uint32 _totalResFiles;
uint32 _totalClusters;
@@ -116,9 +116,18 @@ public:
}
// Prompts the user for the specified CD.
- void getCd(int cd);
+ void askForCD(int cd);
- int whichCd();
+ void setCD(int cd) {
+ if (cd == CD1)
+ _curCD = 1;
+ else if (cd == CD2)
+ _curCD = 2;
+ }
+
+ int getCD() {
+ return _curCD;
+ }
void remove(int res);
void removeAll();