mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 21:27:52 -04:00
89ccb8cbc7
* cleanup `main` * whitespace * start `progress` decomp pt1 * fill in more stuff * Update label_types.jsonc * run cheats * clang * make most of `progress` decompile * `progress` pt 2 * [decompiler] support dynamic format strings * Make `progress-draw` decompile and almost all `progress` * make clang shut up * fix unhandled format string * fix `progress-draw` * Update DecompilerTypeSystem.cpp * fix? * fixes * fix a few functions * make `language-enum` * warn on weird floats * fix minor pad bug * dump stuff in `progress` * make `progress-screen` enum * progress progress * update refs and fix stupid bug * trying to get it to work * it works!? * disable sound functions * fixes * final touches * tests * tests * add process allocations * use the right register for windows * another try for windows, counting is hard * one more try * use process allocations Co-authored-by: water <awaterford111445@gmail.com>
70 lines
1.5 KiB
C
70 lines
1.5 KiB
C
#pragma once
|
|
|
|
/*!
|
|
* @file kboot.h
|
|
* GOAL Boot. Contains the "main" function to launch GOAL runtime.
|
|
*/
|
|
|
|
#include "common/common_types.h"
|
|
|
|
#define GAME_TERRITORY_SCEA 0 // sony america
|
|
#define GAME_TERRITORY_SCEE 1 // sony europe
|
|
#define GAME_TERRITORY_SCEI 2 // sony inc. (japan)
|
|
|
|
struct MasterConfig {
|
|
u16 language; //! GOAL language 0
|
|
u16 aspect; //! SCE_ASPECT 2
|
|
u16 disable_game; // 4
|
|
u16 inactive_timeout; // todo 6
|
|
u16 timeout; // todo 8
|
|
u16 volume; // todo 12
|
|
|
|
u16 territory; // added. this is normally burnt onto the disc executable.
|
|
};
|
|
|
|
// Level to load on boot
|
|
extern char DebugBootLevel[64];
|
|
|
|
// Pass to GOAL kernel on boot
|
|
extern char DebugBootMessage[64];
|
|
|
|
// Set to 1 to kill GOAL kernel
|
|
extern u32 MasterExit;
|
|
|
|
// Set to 1 to enable debug heap
|
|
extern u32 MasterDebug;
|
|
|
|
// Set to 1 to load debug code
|
|
extern u32 DebugSegment;
|
|
|
|
// Set to 1 to load game engine after boot automatically
|
|
extern u32 DiskBoot;
|
|
|
|
extern MasterConfig masterConfig;
|
|
|
|
/*!
|
|
* Initialize global variables for kboot
|
|
*/
|
|
void kboot_init_globals();
|
|
|
|
/*!
|
|
* Launch the GOAL Kernel (EE).
|
|
* See InitParms for launch argument details.
|
|
* @param argc : argument count
|
|
* @param argv : argument list
|
|
* @return 0 on success, otherwise failure.
|
|
*/
|
|
s32 goal_main(int argc, const char* const* argv);
|
|
|
|
/*!
|
|
* Run the GOAL Kernel.
|
|
*/
|
|
void KernelCheckAndDispatch();
|
|
|
|
/*!
|
|
* Stop running the GOAL Kernel.
|
|
*/
|
|
void KernelShutdown();
|
|
|
|
extern u32 MasterUseKernel;
|