2015-03-14 22:25:50 +00:00
|
|
|
/* ReC98
|
|
|
|
* -----
|
|
|
|
* 1st part of code segment #2 of TH02's MAIN.EXE
|
|
|
|
*/
|
|
|
|
|
2020-11-03 15:25:41 +00:00
|
|
|
#pragma codeseg SHARED
|
2020-10-01 14:34:46 +00:00
|
|
|
#pragma option -3
|
|
|
|
|
2020-06-26 10:19:15 +00:00
|
|
|
extern "C" {
|
2021-01-28 18:08:00 +00:00
|
|
|
#include "platform.h"
|
2021-02-07 20:03:00 +00:00
|
|
|
#include "x86real.h"
|
2021-01-28 18:08:00 +00:00
|
|
|
#include "pc98.h"
|
|
|
|
#include "planar.h"
|
2021-01-26 15:33:06 +00:00
|
|
|
#include "master.hpp"
|
2020-09-05 21:55:18 +00:00
|
|
|
#include "th02/hardware/frmdelay.h"
|
2021-01-28 18:08:00 +00:00
|
|
|
#include "th02/formats/mptn.hpp"
|
2015-03-14 22:25:50 +00:00
|
|
|
|
|
|
|
#include "th02/hardware/keydelay.c"
|
|
|
|
|
|
|
|
int pascal mptn_load(const char *fn)
|
|
|
|
{
|
2021-01-28 18:08:00 +00:00
|
|
|
extern bool mptn_show_palette_on_load;
|
|
|
|
|
2015-03-14 22:25:50 +00:00
|
|
|
int ret;
|
2021-01-28 18:08:00 +00:00
|
|
|
mptn_show_palette_on_load = false;
|
|
|
|
ret = mptn_load_palette_show(fn);
|
|
|
|
mptn_show_palette_on_load = true;
|
2015-03-14 22:25:50 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2021-01-28 18:08:00 +00:00
|
|
|
void mptn_free(void)
|
2015-03-14 22:25:50 +00:00
|
|
|
{
|
|
|
|
if(mptn_buffer) {
|
|
|
|
hmem_free(FP_SEG(mptn_buffer));
|
|
|
|
}
|
|
|
|
mptn_buffer = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#include "th01/hardware/vplanset.c"
|
2020-06-26 10:19:15 +00:00
|
|
|
}
|