ADD: Debug Warp Restoration + Translations (#2386)

* Finish translations for Map Select

* First Pass

* TWEAK: Add back Japanese as default to conserve vanilla

* TWEAK: replace some array with structs + some translations

* TWEAK: loading messages [TODO: proper translations]

* TWEAK: forgot to push z64.h for loading messages + translated scene type

* TWEAK: spacing

* TWEAK: comment

* TWEAK: Small german OPT position

* TWEAK: german typo

* TWEAK: translation to cutsceneLabels

* TWEAK: Nabooru's name + Lairs

* TWEAK: Updated Cvar to new way to call them

* ADD: German

* Debug localization

* TWEAK: Age

They are noted as a flag thingy and not a literal age

* Tweak: Frogot the Great Fairy

* TWEAK: adressed comment

Co-authored-by: Amaro Martínez <xoas@airmail.cc>
This commit is contained in:
PurpleHato 2023-01-23 21:36:28 +01:00 committed by GitHub
parent cb5faa1ac8
commit e79bd2587d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 734 additions and 537 deletions

View File

@ -1215,18 +1215,45 @@ typedef struct {
struct SelectContext;
typedef struct {
/* 0x00 */ char* name;
/* 0x04 */ void (*loadFunc)(struct SelectContext*, s32);
/* 0x08 */ s32 entranceIndex;
} SceneSelectEntry; // size = 0xC
/* 0x00 */ char* japaneseName;
/* 0x04 */ char* englishName;
/* 0x08 */ char* germanName;
/* 0x0C */ char* frenchName;
/* 0x10 */ void (*loadFunc)(struct SelectContext*, s32);
/* 0x14 */ s32 entranceIndex;
} SceneSelectEntry; // size = 0x18
typedef struct {
/* */ char* name;
/* */ char* japaneseAge;
/* */ char* englishAge;
/* */ char* germanAge;
/* */ char* frenchAge;
} SceneSelectAgeLabels;
typedef struct {
/* */ char* japaneseMessage;
/* */ char* englishMessage;
/* */ char* germanMessage;
/* */ char* frenchMessage;
} SceneSelectLoadingMessages;
typedef struct {
/* */ char* englishAge;
/* */ char* germanAge;
/* */ char* frenchAge;
} BetterSceneSelectAgeLabels;
typedef struct {
/* */ char* englishName;
/* */ char* germanName;
/* */ char* frenchName;
/* */ s32 entranceIndex;
} BetterSceneSelectEntrancePair;
typedef struct {
/* */ char* name;
/* */ char* englishName;
/* */ char* germanName;
/* */ char* frenchName;
/* */ void (*loadFunc)(struct SelectContext*, s32);
/* */ s32 count;
/* */ BetterSceneSelectEntrancePair entrancePairs[18];

View File

@ -22,6 +22,7 @@ void BootCommands_Init()
{
CVarRegisterInteger("gDebugEnabled", 0);
CVarRegisterInteger("gLanguages", LANGUAGE_ENG);
CVarRegisterInteger("gDebugWarpScreenTranslation", 1);
CVarRegisterInteger("gInvertYAxis", 1);
CVarSetInteger("gRandoGenerating", 0); // Clear when a crash happened during rando seed generation
#if defined(__SWITCH__) || defined(__WIIU__)

View File

@ -1121,6 +1121,8 @@ namespace GameMenuBar {
UIWidgets::Tooltip("Hides the game version and build details in the boot logo start screen");
UIWidgets::PaddedEnhancementCheckbox("Better Debug Warp Screen", "gBetterDebugWarpScreen", true, false);
UIWidgets::Tooltip("Optimized debug warp screen, with the added ability to chose entrances and time of day");
UIWidgets::PaddedEnhancementCheckbox("Debug Warp Screen Translation", "gDebugWarpScreenTranslation", true, false);
UIWidgets::Tooltip("Translate the Debug Warp Screen based on the game language");
UIWidgets::PaddedSeparator();
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(12.0f, 6.0f));
ImGui::PushStyleVar(ImGuiStyleVar_ButtonTextAlign, ImVec2(0,0));

File diff suppressed because it is too large Load Diff