Nuked console

This commit is contained in:
2025-11-03 09:22:18 -06:00
parent 3feb43fdad
commit 3ef6205ea3
53 changed files with 127 additions and 1570 deletions

View File

@@ -6,23 +6,36 @@
*/
#include "engine/engine.h"
#include "console/console.h"
#include "asset/assetmanager.h"
#include "util/string.h"
#include "input/input.h"
int main(int argc, char **argv) {
errorret_t ret;
ret = engineInit();
// Init engine
ret = engineInit();
if(ret.code != ERROR_OK) {
errorCatch(errorPrint(ret));
return ret.code;
}
// Set console variable. This is commented out because at the moment;
// Engine init happens, which needs to happen to init console
// It also inits asset manager, and the problem is that asset manager
// needs to know where the sys_path is to find the asset file.
// if(argc > 0) consoleRegVar("sys_path", argv[0], NULL);
// Setup system path on asset manager
if(argc > 0) {
stringCopy(
ASSET_MANAGER.systemPath, argv[0],
sizeof(ASSET_MANAGER.systemPath) / sizeof(char_t)
);
}
// Init the defaults for all the platforms
// #if PSP
// #else
// #if SDL2_KEYBOARD
// inputBind(inputButtonGetByName("")
// #endif
// Begin main loop
do {
ret = engineUpdate();
if(ret.code != ERROR_OK) {