2021-12-25 15:18:17 +00:00
|
|
|
/* ReC98
|
|
|
|
* -----
|
|
|
|
* 1st part of code segment #2 of TH02's MAIN.EXE
|
|
|
|
*/
|
|
|
|
|
2023-06-17 15:51:26 +00:00
|
|
|
#pragma option -zCSHARED
|
2021-12-25 15:18:17 +00:00
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
#include "platform.h"
|
|
|
|
#include "pc98.h"
|
|
|
|
#include "planar.h"
|
|
|
|
#include "master.hpp"
|
2023-10-05 12:19:00 +00:00
|
|
|
#include "th02/formats/tile.hpp"
|
2022-06-19 20:08:10 +00:00
|
|
|
extern "C" {
|
2021-12-25 15:18:17 +00:00
|
|
|
#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<mpn_image_t>::free(mpn_images);
|
|
|
|
}
|
2022-06-26 09:32:25 +00:00
|
|
|
mpn_images = nullptr;
|
2021-12-25 15:18:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|