2021-03-21 18:35:04 +00:00
|
|
|
#pragma option -zCSHARED
|
2020-09-06 18:49:20 +00:00
|
|
|
|
2021-01-26 15:33:06 +00:00
|
|
|
#include "master.hpp"
|
2021-01-04 15:07:07 +00:00
|
|
|
#include "th02/core/initexit.h"
|
2020-09-06 18:49:20 +00:00
|
|
|
|
2021-05-03 06:38:40 +00:00
|
|
|
// TODO: Remove this macro once those functions are part of the actual SHARED
|
|
|
|
// segment (not SHARED_) in TH04 and TH05, after graph_putsa_fx() has been
|
|
|
|
// turned into its own translation unit.
|
|
|
|
#define game_exit() __asm { nop; push cs; call near ptr game_exit; }
|
|
|
|
|
2020-09-06 18:49:20 +00:00
|
|
|
void game_exit_to_dos(void)
|
|
|
|
{
|
|
|
|
game_exit();
|
|
|
|
key_beep_on();
|
2021-01-26 15:33:06 +00:00
|
|
|
text_systemline_show();
|
|
|
|
text_cursor_show();
|
2020-09-06 18:49:20 +00:00
|
|
|
}
|