mirror of
https://github.com/krystalgamer/spidey-decomp.git
synced 2024-10-06 18:23:23 +00:00
PShell_Initialise
This commit is contained in:
parent
45542cbe46
commit
425784f9e8
@ -82,7 +82,7 @@ void PCGfx_ClipTriToNearPlane(_DXVERT **,_DXVERT *const *)
|
||||
// @MEDIUMTODO
|
||||
void PCGfx_DoModelPreview(void)
|
||||
{
|
||||
printf("PCGfx_DoModelPreview(void)");
|
||||
PShell_Initialise();
|
||||
}
|
||||
|
||||
// @MEDIUMTODO
|
||||
|
38
pshell.cpp
38
pshell.cpp
@ -1,11 +1,19 @@
|
||||
#include "pshell.h"
|
||||
#include "mess.h"
|
||||
#include "utils.h"
|
||||
#include "spool.h"
|
||||
#include "ps2lowsfx.h"
|
||||
#include "shell.h"
|
||||
#include "PCShell.h"
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include "validate.h"
|
||||
|
||||
EXPORT u16 OTPushback[3];
|
||||
EXPORT u8 gPShellCleanup = 1;
|
||||
EXPORT i32 gShellFromGame;
|
||||
EXPORT i32 gShellInitialized;
|
||||
EXPORT i32 JoelJewCheatCode;
|
||||
|
||||
SCheat gCheats[NUM_CHEATS] =
|
||||
@ -108,6 +116,36 @@ SCheat gCheats[NUM_CHEATS] =
|
||||
},
|
||||
};
|
||||
|
||||
// @Ok
|
||||
// @Matching
|
||||
void PShell_Initialise(void)
|
||||
{
|
||||
if (gShellFromGame)
|
||||
print_if_false(gShellInitialized == 0, "Shell initialised twice, fromgame");
|
||||
else
|
||||
print_if_false(gShellInitialized == 0, "Shell initialised twice, not fromgame");
|
||||
|
||||
gPShellCleanup = 0;
|
||||
|
||||
Spool_PSX("shell", 0);
|
||||
Spool_PSX("icons", 0);
|
||||
Spool_PSX("vmu", 0);
|
||||
Spool_PSX("control", 0);
|
||||
Mess_LoadFont("font_big.fnt", -1, -1, -1);
|
||||
Mess_LoadFont("sp_fnt02.fnt", -1, -1, -1);
|
||||
Mess_LoadFont("sp_fnt03.fnt", -1, -1, -1);
|
||||
SFX_SpoolInLevelSFX("menu");
|
||||
PShell_NormalFont();
|
||||
Spool_AnimAccess("menubg", &gBackgroundAnimFrame);
|
||||
|
||||
OTPushback[0] = 1;
|
||||
OTPushback[1] = -60;
|
||||
|
||||
PShell_MaybeUnlockStuff();
|
||||
PCSHELL_Initialize();
|
||||
gShellInitialized = 1;
|
||||
}
|
||||
|
||||
// @MEDIUMTODO
|
||||
i32 ActivateCheat(i32)
|
||||
{
|
||||
|
1
pshell.h
1
pshell.h
@ -45,6 +45,7 @@ EXPORT void PShell_NormalFont(void);
|
||||
EXPORT void PShell_DefaultText(void);
|
||||
EXPORT void PShell_SmallFont(void);
|
||||
EXPORT void PShell_InstructionalText(void);
|
||||
EXPORT void PShell_Initialise(void);
|
||||
|
||||
EXPORT i32 ActivateCheat(i32);
|
||||
EXPORT void DisplayScore(i32,i32,long,i32);
|
||||
|
@ -36,7 +36,7 @@ EXPORT SSkinGooParams gSuperDocOckSkinGooParams;
|
||||
EXPORT i32 gShellMysterioRelated;
|
||||
extern SPSXRegion PSXRegion[];
|
||||
|
||||
EXPORT SAnimFrame* gBackgroundAnimFrame;
|
||||
SAnimFrame* gBackgroundAnimFrame;
|
||||
|
||||
const i32 NUM_SAVE_GAME_SLOTS = 8;
|
||||
EXPORT SSaveGame gSaveGameSlots[NUM_SAVE_GAME_SLOTS];
|
||||
|
2
shell.h
2
shell.h
@ -294,6 +294,8 @@ EXPORT void Shell_StoryBoards(void);
|
||||
EXPORT void Shell_TitleScreen(void);
|
||||
EXPORT void Shell_VerySmallFont(void);
|
||||
|
||||
EXPORT extern SAnimFrame* gBackgroundAnimFrame;
|
||||
|
||||
void validate_CRudeWordHitterSpidey(void);
|
||||
void validate_CDummy(void);
|
||||
void validate_CWobblyGlow(void);
|
||||
|
Loading…
Reference in New Issue
Block a user