Skip to content
This repository was archived by the owner on Sep 26, 2024. It is now read-only.

Commit 2bbb256

Browse files
committed
Remove English texts to save space.
1 parent 03457bf commit 2bbb256

File tree

263 files changed

+12
-646
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

263 files changed

+12
-646
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
1515
include(devkitPro)
1616
include(grit)
1717

18-
file(GLOB_RECURSE DIR_SRCS src/*.h src/*.inc src/*.c src/*.s src/*.S src/res/text/*.txt)
18+
file(GLOB_RECURSE DIR_SRCS src/*.h src/*.inc src/*.c src/*.s src/*.S src/res/text/S????.txt)
1919
set_source_files_properties(src/dummy.c PROPERTIES OBJECT_DEPENDS ${CMAKE_SOURCE_DIR}/linkerscript)
2020

2121
process_gfx(GFX_SRCS font.grit title_screen_book_1.grit title_screen_book_2.grit title_screen_book_3.grit title_screen_book_4.grit title_screen_book_5.grit title_screen_book_6.grit stat_screen_page_name_skill.grit special_skill_icon.grit skill_page_icons_1.grit skill_page_icons_2.grit item_icons.grit trophy.grit standing_sprite_Alfonse.grit moving_sprite_Alfonse.grit standing_sprite_Anna.grit moving_sprite_Anna.grit standing_sprite_Sharena.grit moving_sprite_Sharena.grit standing_sprite_MageKnight.grit moving_sprite_MageKnight.grit portrait_Lord_classcard.grit classcard_MageKnight.grit classcard_Halberdier.grit chapter_opening_background.grit option_menu_icons.grit standing_sprite_Halberdier.grit moving_sprite_Halberdier.grit

src/chapter_event.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,8 @@ const u8 ** const events[] = {
615615
//[0x100 + 244 + 1] = event_chap_233,
616616
};
617617

618+
#ifdef SUPPORT_ENGLISH
619+
618620
extern const u8 * const event_chap_246_EN[];
619621
extern const u8 * const event_chap_245_EN[];
620622
extern const u8 * const event_chap_244_EN[];
@@ -1181,6 +1183,8 @@ const u8 ** const events_EN[] = {
11811183
//[0x100 + 244 + 1] = event_chap_233_EN,
11821184
};
11831185

1186+
#endif
1187+
11841188
const u8 *** const pEvents = events;
11851189

11861190
char getCurrentGameLanguage();
@@ -1212,8 +1216,10 @@ u8 ** GetChapterEventDataPointerForMultiLanguage(u32 chapterId)
12121216
switch(getCurrentGameLanguage())
12131217
{
12141218
case LANGUAGE_EN:
1219+
#ifdef SUPPORT_ENGLISH
12151220
if(events_EN[eventId])
12161221
return events_EN[eventId];
1222+
#endif
12171223
case LANGUAGE_JP:
12181224
default:
12191225
return events[eventId];

src/game_option.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ struct OptionMenuInfo {
1616
const u8 optionMenuList1[] = {0, 5, 4, 1, 2, 0xa, 0xe, 0xf, 0xb, 3, 6, 7, 8};
1717
const u8 optionMenuList2[] = {0, 5, 4, 1, 2, 0xa, 0xe, 0xb, 3, 0xc, 6, 7, 8};
1818
const u8 optionMenuList3[] = {0, 5, 4, 1, 2, 0xa, 0xe, 0xb, 3, 0xc, 6, 7, 8};
19+
#ifdef SUPPORT_ENGLISH
1920
const u8 optionMenuListAll[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xa, 0xb, 0xc, 0xd, 0xe, 0xf, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16};
21+
#else
22+
const u8 optionMenuListAll[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xa, 0xb, 0xc, 0xd, 0xe, 0xf, 0x10, 0x12, 0x13, 0x14, 0x15, 0x16};
23+
#endif
2024

2125
const struct OptionMenuInfo OptionMenuInfos[] = {
2226
//{0xd, optionMenuList1},

0 commit comments

Comments
 (0)