mirror of
https://github.com/mwpenny/portal64-still-alive.git
synced 2024-11-23 20:39:41 +00:00
Dynamically get level count for all levels cheat
This commit is contained in:
parent
bf482724bc
commit
7e699a4324
@ -5,6 +5,7 @@
|
|||||||
#include "../scene/scene.h"
|
#include "../scene/scene.h"
|
||||||
#include "../build/src/audio/clips.h"
|
#include "../build/src/audio/clips.h"
|
||||||
#include "../savefile/savefile.h"
|
#include "../savefile/savefile.h"
|
||||||
|
#include "../levels/levels.h"
|
||||||
|
|
||||||
struct CheatCodePattern gCheatCodes[CheatCodeCount] = {
|
struct CheatCodePattern gCheatCodes[CheatCodeCount] = {
|
||||||
[CheatCodeUnlockGun] = {
|
[CheatCodeUnlockGun] = {
|
||||||
@ -46,7 +47,7 @@ void cheatCodeApply(enum CheatCode cheat) {
|
|||||||
playerToggleInvincibility(&gScene.player);
|
playerToggleInvincibility(&gScene.player);
|
||||||
break;
|
break;
|
||||||
case CheatCodeAllLevels:
|
case CheatCodeAllLevels:
|
||||||
savefileMarkChapterProgress(7);
|
savefileMarkChapterProgress(levelCount() - 1);
|
||||||
break;
|
break;
|
||||||
case CheatCodeCount:
|
case CheatCodeCount:
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user