Fixed an error bug

This commit is contained in:
2025-09-02 09:23:46 -05:00
parent f915a4208b
commit 71080682cc
9 changed files with 111 additions and 24 deletions

View File

@@ -15,14 +15,17 @@ int main(int argc, char **argv) {
errorret_t ret;
ret = engineInit();
// Set console variable
if(argc > 0) consoleRegVar("sys_path", argv[0], NULL);
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);
do {
ret = engineUpdate();
if(ret.code != ERROR_OK) {