2021-02-01 07:12:52 +00:00
|
|
|
|
/* ReC98
|
|
|
|
|
* -----
|
|
|
|
|
* 1st part of ZUN_RES.COM. Initializes the resident structure and
|
|
|
|
|
* configuration file required in order to run TH02.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include <dos.h>
|
2022-03-12 23:14:12 +00:00
|
|
|
|
#include "platform.h"
|
2021-02-01 07:12:52 +00:00
|
|
|
|
#include "master.hpp"
|
2022-03-12 22:54:37 +00:00
|
|
|
|
#include "th01/rank.h"
|
2021-02-01 07:12:52 +00:00
|
|
|
|
#include "th02/resident.hpp"
|
|
|
|
|
#include "th02/snd/snd.h"
|
2024-01-17 08:03:39 +00:00
|
|
|
|
#include "th02/formats/cfg.hpp"
|
2021-02-01 07:12:52 +00:00
|
|
|
|
|
2024-01-17 08:03:39 +00:00
|
|
|
|
int pascal scoredat_verify(void);
|
2021-02-01 07:12:52 +00:00
|
|
|
|
|
|
|
|
|
char debug = 0;
|
|
|
|
|
const cfg_options_t OPTS_DEFAULT = {
|
2023-03-18 16:11:35 +00:00
|
|
|
|
RANK_NORMAL, SND_BGM_FM, CFG_BOMBS_DEFAULT, CFG_LIVES_DEFAULT, false
|
2021-02-01 07:12:52 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#include "th02/formats/cfg_init.c"
|
|
|
|
|
|
|
|
|
|
#define LOGO \
|
|
|
|
|
"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>^<5E>p<EFBFBD>@ <20>풓<EFBFBD>v<EFBFBD><76><EFBFBD>O<EFBFBD><4F><EFBFBD><EFBFBD><EFBFBD>@ZUN_RES.com Version1.01 (c)zun 1997"
|
|
|
|
|
|
|
|
|
|
#define RES_INIT_TOP \
|
|
|
|
|
if(scoredat_verify() == 1) { \
|
|
|
|
|
dos_puts2("<EFBFBD>n<EFBFBD>C<EFBFBD>X<EFBFBD>R<EFBFBD>A<EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>́A<CC81><41><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>x<EFBFBD><78><EFBFBD>s<EFBFBD><73><EFBFBD>ĂˁB\n"); \
|
|
|
|
|
return 1; \
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-09 19:40:53 +00:00
|
|
|
|
#define optimization_barrier()
|
2021-02-01 07:12:52 +00:00
|
|
|
|
|
|
|
|
|
#define RES_INIT_BOTTOM \
|
2023-06-27 20:10:47 +00:00
|
|
|
|
cfg_init(seg);
|
2021-02-01 07:12:52 +00:00
|
|
|
|
|
|
|
|
|
#include "th02/res_init.cpp"
|
|
|
|
|
|
|
|
|
|
#pragma codestring "\x00"
|