mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-11-24 14:29:20 +03:00
Add VVV_exit()
This is just a function that calls the cleanup() in main.cpp, as well as calls exit(). I would have liked to use SDL_ExitProcess() here, because that function has ifdefs for different runtime environments. But alas, it's an internal function and isn't exported. Ah well; exit() seems to be fine anyway.
This commit is contained in:
1 parent
efbaeeffde
commit
4964cb7bc3
2 files changed
+12
No files matched your search
@@ -0,0 +1,6 @@
|
||||
#ifndef VVV_EXIT_H
|
||||
#define VVV_EXIT_H
|
||||
|
||||
void VVV_exit(const int exit_code);
|
||||
|
||||
#endif /* VVV_EXIT_H */
|
||||
@@ -377,6 +377,12 @@ static void cleanup()
|
||||
FILESYSTEM_deinit();
|
||||
}
|
||||
|
||||
void VVV_exit(const int exit_code)
|
||||
{
|
||||
cleanup();
|
||||
exit(exit_code);
|
||||
}
|
||||
|
||||
static void inline deltaloop()
|
||||
{
|
||||
//timestep limit to 30
|
||||
|
||||
Reference in new issue
Block a user