resonance 1.0.1
Loading...
Searching...
No Matches
GameOptions Class Reference

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ GameOptions()

GameOptions::GameOptions ( )

Start with the first and third settings on and the second off.

Ghidra address:
NTSC-U/C: 0x0032e780
Ghidra address:
PAL: 0x00356cc8

◆ ~GameOptions()

GameOptions::~GameOptions ( )
Ghidra address:
NTSC-U/C: 0x0032e798
Ghidra address:
PAL: 0x00356ce0

Member Function Documentation

◆ Save()

void GameOptions::Save ( OBStream & stream)

Write the second, the third, and the first setting, in that order.

Parameters
streamThe stream to write to.
Ghidra address:
NTSC-U/C: 0x0032e7c8
Ghidra address:
PAL: 0x00356d10

◆ Load()

void GameOptions::Load ( IBStream & stream)

Read the settings back in the order Save() wrote them.

Parameters
streamThe stream to read from.
Ghidra address:
NTSC-U/C: 0x0032e810
Ghidra address:
PAL: 0x00356d58

Member Data Documentation

◆ mStereo

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

◆ mExpansionPack

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

◆ mForceFeedback

int GameOptions::mForceFeedback

Enable controller force feedback.

Starts at 1. Handed to ForceFeedbackMgr::SetEnabled(). +0x08


The documentation for this class was generated from the following file: