This commit is contained in:
2023-10-18 23:32:04 -05:00
parent 9ad9995663
commit b9493840f4
11 changed files with 134 additions and 96 deletions

View File

@ -10,6 +10,8 @@ using namespace Dawn;
int32_t main(int32_t argc, char **args) {
int32_t result;
memoryInit();
// Create the host
auto host = new DawnHost();
auto game = new DawnGame(host);
@ -40,9 +42,7 @@ int32_t main(int32_t argc, char **args) {
delete game;
delete host;
#if DAWN_DEBUG_BUILD
assertTrue(dawnAllocatedItemCount == 0, "DawnHostOSX: Failed to free all allocated items.");
#endif
memoryDispose();
// Success
return 0;