#include "platform.h"
#include "x86real.h"
#include "master.hpp"
#include "th02/core/initexit.h"
void game_exit(void)
{
pfend();
graph_clear_both();
#if (GAME >= 4)
mem_unassign();
vsync_end();
#else
#endif
text_clear();
#if (GAME >= 3)
js_end();
egc_start();
bgm_finish();
}