sdl back
This commit is contained in:
23
src/main.c
23
src/main.c
@@ -8,10 +8,27 @@
|
||||
#include "engine/engine.h"
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
engineInit();
|
||||
errorret_t ret;
|
||||
ret = engineInit();
|
||||
|
||||
if(ret.code != ERROR_OK) {
|
||||
errorCatch(errorPrint(ret));
|
||||
return ret.code;
|
||||
}
|
||||
|
||||
do {
|
||||
engineUpdate();
|
||||
ret = engineUpdate();
|
||||
if(ret.code != ERROR_OK) {
|
||||
errorCatch(errorPrint(ret));
|
||||
return ret.code;
|
||||
}
|
||||
} while(ENGINE.running);
|
||||
engineDispose();
|
||||
|
||||
ret = engineDispose();
|
||||
if(ret.code != ERROR_OK) {
|
||||
errorCatch(errorPrint(ret));
|
||||
return ret.code;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user