resonance 1.0.1
Loading...
Searching...
No Matches
gameparams.h File Reference
#include <iostream>
#include "os/hxstr.h"
#include "stream/ibstream.h"
#include "stream/obstream.h"
Include dependency graph for gameparams.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  GameParams
 Settings a game session is started with. More...

Functions

int GetDoWinSequence ()
 Report whether a won game plays the win sequence.
void SetDoWinSequence (int nDoWinSequence)
 Enable or disable the win sequence.

Function Documentation

◆ GetDoWinSequence()

int GetDoWinSequence ( )

Report whether a won game plays the win sequence.

A free function of this translation unit over a file-scope word at 0x0067e798. Only this pair reads and writes the word. Overlay::OnWin() is the one caller and plays the win sequence only when the result is non-zero. The name follows the script function do_win_sequence_cheat, whose handler sets the word. The title is inferred.

Returns
Non-zero when the win sequence is enabled.
Ghidra address:
NTSC-U/C: 0x00187b00
Ghidra address:
PAL: 0x0018d388

◆ SetDoWinSequence()

void SetDoWinSequence ( int nDoWinSequence)

Enable or disable the win sequence.

ScriptDoWinSequenceCheat() and PyInvokeDoWinSequenceCheat() pass 1, the MetRenderer constructor and the routine at 0x0036bcb8 pass 0, and MetLoadGameScreen::EnterAndShow() passes 1 or 0 by the result of the call before it. The title is inferred.

Parameters
nDoWinSequenceNon-zero to enable the win sequence.
Ghidra address:
NTSC-U/C: 0x00187b10
Ghidra address:
PAL: 0x0018d398