diff --git a/src/main.c b/src/main.c index cf4315ffc59b03c24f8e71598a80264c1d91be28..9e66f89c46906a91e3245e4e474269ccb4671ce5 100644 --- a/src/main.c +++ b/src/main.c @@ -921,7 +921,7 @@ int main(int argc, char *argv[]) core_def->define(core_def, "te4core", -1, NULL, NULL, NULL, NULL, 0, NULL); #ifdef SELFEXE_WINDOWS -// freopen ("te4_log.txt", "w", stdout); + freopen ("te4_log.txt", "w", stdout); #endif // Parse arguments @@ -1125,8 +1125,10 @@ int main(int argc, char *argv[]) } SDL_Quit(); + deinit_openal(); + printf("Thanks for having fun!\n"); #ifdef SELFEXE_WINDOWS -// fclose(stdout); + fclose(stdout); #endif }