[ckernel] split by game version (#1559)

* temp

* split up kprint, other than format

* start kmachine

* split kmachine

* split kscheme

* split klink

* split klisten

* split remaining

* jak2 ckernel gets to nokernel loop
This commit is contained in:
water111
2022-06-26 18:17:11 -04:00
committed by GitHub
parent 3b177d47c0
commit e630b50690
135 changed files with 7733 additions and 3159 deletions
+37
View File
@@ -0,0 +1,37 @@
#include "kboot.h"
#include <cstring>
// Set to 1 to kill GOAL kernel
RuntimeExitStatus MasterExit;
// Set to 1 to load game engine after boot automatically
u32 DiskBoot;
// Set to 1 to enable debug heap
u32 MasterDebug;
// Set to 1 to load debug code
u32 DebugSegment;
u32 MasterUseKernel;
// Level to load on boot
char DebugBootLevel[64];
// Pass to GOAL kernel on boot
char DebugBootMessage[64];
// game configuration
MasterConfig masterConfig;
void kboot_init_globals_common() {
MasterExit = RuntimeExitStatus::RUNNING;
DiskBoot = 0;
MasterDebug = 1;
DebugSegment = 1;
MasterUseKernel = 1;
strcpy(DebugBootLevel, "#f"); // no specified level
strcpy(DebugBootMessage, "play"); // play mode, the default retail mode
memset(&masterConfig, 0, sizeof(MasterConfig));
}