aboutsummaryrefslogtreecommitdiff
path: root/sword2/controls.h
diff options
context:
space:
mode:
authorTorbjörn Andersson2003-10-29 07:53:05 +0000
committerTorbjörn Andersson2003-10-29 07:53:05 +0000
commitd7bd7d44b83fb3dce91567fd0d241758ea706b78 (patch)
tree52294c5c40f09427fa6730c68f201d8b3b8fade7 /sword2/controls.h
parent494d5269a2a0274a58e6bb30f211383cdaf5465f (diff)
downloadscummvm-rg350-d7bd7d44b83fb3dce91567fd0d241758ea706b78.tar.gz
scummvm-rg350-d7bd7d44b83fb3dce91567fd0d241758ea706b78.tar.bz2
scummvm-rg350-d7bd7d44b83fb3dce91567fd0d241758ea706b78.zip
Use the ScummVM config manager instead of a separate BS2-specific config
file, plus some other cleanup. I don't know how the config manager decides if/when to save the settings to file, but we can worry about that later. svn-id: r11001
Diffstat (limited to 'sword2/controls.h')
-rw-r--r--sword2/controls.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/sword2/controls.h b/sword2/controls.h
index ea5ff2fd8e..2e11459877 100644
--- a/sword2/controls.h
+++ b/sword2/controls.h
@@ -23,17 +23,19 @@
namespace Sword2 {
class Gui {
+private:
+ int _musicVolume[17];
+ int _soundVolume[15];
+
public:
int _baseSlot;
uint8 _currentGraphicsLevel;
- uint8 _subtitles;
- uint8 _speechSelected;
- uint8 _stereoReversed;
- uint8 _pointerTextSelected;
+ bool _subtitles;
+ bool _stereoReversed;
+ bool _pointerTextSelected;
- Gui() : _baseSlot(0), _stereoReversed(0),
- _pointerTextSelected(0) {}
+ Gui();
uint32 restoreControl(void);
void saveControl(void);
@@ -41,7 +43,8 @@ public:
void restartControl(void);
void optionControl(void);
void readOptionSettings(void);
- void updateGraphicsLevel(uint8 newLevel);
+ void writeOptionSettings(void);
+ void updateGraphicsLevel(int newLevel);
};
extern Gui gui;