convert jpn ui/text changes to runtime checks

This commit is contained in:
TakaRikka
2026-07-17 18:12:28 -07:00
parent 1654d256ec
commit ce386d8dbd
37 changed files with 2467 additions and 442 deletions
+16 -2
View File
@@ -17,6 +17,20 @@ class dSelect_cursor_c;
class dMenu_Option_c : public dDlst_base_c {
public:
enum {
PROC_ATTEN_e,
#if TARGET_PC || VERSION == VERSION_GCN_JPN
PROC_RUBY_e,
#endif
PROC_VIB_e,
PROC_SOUND_e,
PROC_CHANGE_MOVE_e,
PROC_CONFIRM_OPEN_MOVE_e,
PROC_CONFIRM_MOVE_MOVE_e,
PROC_CONFIRM_SELECT_MOVE_e,
PROC_CONFIRM_CLOSE_MOVE_e,
};
dMenu_Option_c(JKRArchive*, STControl*);
void _create();
void _delete();
@@ -31,7 +45,7 @@ public:
bool _close();
void atten_init();
void atten_move();
#if VERSION == VERSION_GCN_JPN
#if TARGET_PC || VERSION == VERSION_GCN_JPN
void ruby_init();
void ruby_move();
#endif
@@ -189,7 +203,7 @@ private:
/* 0x3E2 */ u8 field_0x3e2;
/* 0x3E3 */ u8 field_0x3e3;
/* 0x3E4 */ u8 field_0x3e4;
#if VERSION == VERSION_GCN_JPN
#if TARGET_PC || VERSION == VERSION_GCN_JPN
/* 0x3E5 */ u8 field_0x3e5_JPN;
#endif
/* 0x3E5 */ u8 field_0x3e5;
+5 -1
View File
@@ -7,7 +7,11 @@
#include "helpers/endian.h"
#include "helpers/string.hpp"
#if REGION_JPN
#if TARGET_PC
#define D_MSG_CLASS_PAGE_CNT_MAX 40
#define D_MSG_CLASS_CHAR_CNT_MAX 0x210
#define D_MSG_CLASS_LINE_MAX 12
#elif REGION_JPN
#define D_MSG_CLASS_PAGE_CNT_MAX 30
#define D_MSG_CLASS_CHAR_CNT_MAX 0x210
#define D_MSG_CLASS_LINE_MAX 9
+4
View File
@@ -8,6 +8,10 @@ public:
dMsgUnit_c();
void setTag(int, int, TEXT_SPAN, bool);
#if TARGET_PC
void setTag_jpn(int, int, TEXT_SPAN, bool);
#endif
virtual ~dMsgUnit_c();
};
+1 -1
View File
@@ -52,7 +52,7 @@ public:
s32 createStart(u16);
bool checkStartAnimeEnd();
void playBckAnimation(f32);
#if VERSION == VERSION_GCN_JPN
#if TARGET_PC || VERSION == VERSION_GCN_JPN
bool isLeadByte(int);
#endif
void drawPikari(int);