Fixed an error bug
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user