Files
dusk/src/main.c
2025-08-20 21:56:55 -05:00

34 lines
617 B
C

/**
* Copyright (c) 2025 Dominic Masters
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
#include "engine/engine.h"
int main(int argc, char **argv) {
errorret_t ret;
ret = engineInit();
if(ret.code != ERROR_OK) {
errorCatch(errorPrint(ret));
return ret.code;
}
do {
ret = engineUpdate();
if(ret.code != ERROR_OK) {
errorCatch(errorPrint(ret));
return ret.code;
}
} while(ENGINE.running);
ret = engineDispose();
if(ret.code != ERROR_OK) {
errorCatch(errorPrint(ret));
return ret.code;
}
return 0;
}