Files
Microtransactions64/src/s2d_engine/init.c
someone2639 8240262c07 Update S2DEX Text Engine to latest version; fix build issues (#532)
Now its just part of HackerSM64 entirely, and HackerSM64 will be the source of all changes (as long as said changes can reasonably apply to homebrew games)
2023-06-17 16:51:03 -04:00

25 lines
428 B
C

#include <ultra64.h>
#include <PR/gs2dex.h>
#include "s2d_config.h"
#include "init.h"
#include "debug.h"
#include "s2d_error.h"
void s2d_init(void) {
s2d_error_y = TEX_HEIGHT;
if (gIsEmulator)
gSPLoadUcode(gdl_head++, s2d_text, s2d_data);
}
void s2d_stop(void) {
if (gIsEmulator) {
gSPLoadUcode(gdl_head++, zex_text, zex_data);
if deinit_cond {
my_rdp_init();
my_rsp_init();
}
}
s2d_reset_defer_index();
}