|
resonance 1.0.1
|
The three game option settings GlobalSettings records. More...
#include <gameoptions.h>
Public Member Functions | |
| GameOptions () | |
| Start with the first and third settings on and the second off. | |
| ~GameOptions () | |
| void | Save (OBStream &stream) |
| Write the second, the third, and the first setting, in that order. | |
| void | Load (IBStream &stream) |
| Read the settings back in the order Save() wrote them. | |
Public Attributes | |
| int | mStereo |
| Stereo rather than mono output. | |
| int | mExpansionPack |
| Offer the expansion pack disc. | |
| int | mForceFeedback |
| Enable controller force feedback. | |
The three game option settings GlobalSettings records.
The class is not polymorphic and emits no RTTI descriptor. The name is inferred from MetConfigGameOptionsScreen, which builds one, and from GlobalSettings, which embeds one at +0x30. The object is 12 bytes, which the GlobalSettings layout fixes. MetPersonaData's Load() builds and reads one as well.
| GameOptions::GameOptions | ( | ) |
Start with the first and third settings on and the second off.
| GameOptions::~GameOptions | ( | ) |
| void GameOptions::Save | ( | OBStream & | stream | ) |
Write the second, the third, and the first setting, in that order.
| stream | The stream to write to. |
| void GameOptions::Load | ( | IBStream & | stream | ) |
Read the settings back in the order Save() wrote them.
| stream | The stream to read from. |
| int GameOptions::mStereo |
Stereo rather than mono output.
Starts at 1. MetConfigGameOptionsScreen labels it STEREO or MONO and hands it to the synthesiser's SetStereo(). +0x00
| int GameOptions::mExpansionPack |
Offer the expansion pack disc.
Starts at 0. The expansion pack cheat toggles it, and MetConfigOptionsButtonsScreen shows its disc-change button only while it is set. +0x04
| int GameOptions::mForceFeedback |
Enable controller force feedback.
Starts at 1. Handed to ForceFeedbackMgr::SetEnabled(). +0x08