Port_Exit

This commit is contained in:
krystalgamer 2024-09-15 18:27:26 +02:00
parent d99b8d9021
commit 51b51c586f
4 changed files with 57 additions and 2 deletions

View File

@ -1 +1,13 @@
#include "Sbinit.h"
#include "Sbinit.h"
// @SMALLTODO
void sbExitSystem(void)
{
printf("void sbExitSystem(void)");
}
// @SMALLTODO
void sbInitSystem(KMDISPLAYMODE,KMBPPMODE,i32)
{
printf("sbInitSystem(KMDISPLAYMODE,KMBPPMODE,i32)");
}

View File

@ -3,4 +3,15 @@
#ifndef SBINIT_H
#define SBINIT_H
#endif
#include "export.h"
// @FIXME
typedef i32 KMDISPLAYMODE;
// @FIXME
typedef i32 KMBPPMODE;
EXPORT void sbExitSystem(void);
EXPORT void sbInitSystem(KMDISPLAYMODE,KMBPPMODE,i32);
#endif

View File

@ -35,6 +35,7 @@
#include "physics.h"
#include "m3dzone.h"
#include "reloc.h"
#include "SpideyDX.h"
EXPORT Texture* gShadowBit;
EXPORT i32 gPsxSpArmorIndex;
@ -69,6 +70,30 @@ INLINE void DeleteList(CBody *pLst)
void Init_AtEnd(void)
{
printf("Init_AtEnd(void)");
DXERR_printf("\nStart of Init_AtEnd\n");
Spool_Sync();
DXERR_printf("1,");
DrawSync();
DXERR_printf("2,");
Pause(1);
//dword_5598B8 = 0;
SFX_Off();
DXERR_printf("3,");
//j_MemCardStop(v0);
Pause(1);
DXERR_printf("6,");
SetDispMask();
DXERR_printf("7,");
PCGfx_Exit();
//j__sbExitSystem(v1);
DXERR_printf("13a,");
DXERR_printf("14,");
DXERR_printf("17,");
DXERR_printf("\nEnd of Init_AtEnd\n");
}
EXPORT i32 dword_60D218;

View File

@ -4,6 +4,7 @@
#include <cstring>
#include "ob.h"
#include "m3dcolij.h"
#include "Sbinit.h"
#include <cstdlib>
@ -601,3 +602,9 @@ void Port_InitAtStart(void)
{
printf("void Port_InitAtStart(void)");
}
// @Ok
void Port_Exit(void)
{
sbExitSystem();
}