2021-04-20 18:02:54 +00:00
|
|
|
#pragma option -zCSHARED -3
|
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
#include <stddef.h>
|
|
|
|
#include "platform.h"
|
|
|
|
#include "pc98.h"
|
|
|
|
#include "planar.h"
|
|
|
|
#include "master.hpp"
|
2021-05-31 19:11:48 +00:00
|
|
|
#include "th04/main/playfld.hpp"
|
2021-06-11 19:19:12 +00:00
|
|
|
#include "th04/main/tile/tile.hpp"
|
2021-04-20 18:02:54 +00:00
|
|
|
#include "th04/formats/mpn.hpp"
|
|
|
|
|
|
|
|
void pascal mpn_free(int slot)
|
|
|
|
{
|
|
|
|
mpn_t near &mpn = mpn_slots[slot];
|
|
|
|
if(mpn.images) {
|
|
|
|
hmem_free(static_cast<mpn_image_t __seg *>(mpn.images));
|
|
|
|
mpn.images = NULL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|