/* ReC98 * ----- * 1st part of code segment #2 of TH02's MAIN.EXE */ #pragma option -zCSHARED #include #include "platform.h" #include "pc98.h" #include "planar.h" #include "master.hpp" #include "th02/formats/tile.hpp" extern "C" { #include "th02/formats/mpn.hpp" int pascal mpn_load(const char *fn) { extern bool mpn_show_palette_on_load; int ret; mpn_show_palette_on_load = false; ret = mpn_load_palette_show(fn); mpn_show_palette_on_load = true; return ret; } void mpn_free(void) { if(mpn_images) { HMem::free(mpn_images); } mpn_images = nullptr; } }