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

Commit

Permalink
Remove English texts to save space.
Browse files Browse the repository at this point in the history
  • Loading branch information
laqieer committed Jul 7, 2022
1 parent 03457bf commit 2bbb256
Show file tree
Hide file tree
Showing 263 changed files with 12 additions and 646 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
include(devkitPro)
include(grit)

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

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
Expand Down
6 changes: 6 additions & 0 deletions src/chapter_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,8 @@ const u8 ** const events[] = {
//[0x100 + 244 + 1] = event_chap_233,
};

#ifdef SUPPORT_ENGLISH

extern const u8 * const event_chap_246_EN[];
extern const u8 * const event_chap_245_EN[];
extern const u8 * const event_chap_244_EN[];
Expand Down Expand Up @@ -1181,6 +1183,8 @@ const u8 ** const events_EN[] = {
//[0x100 + 244 + 1] = event_chap_233_EN,
};

#endif

const u8 *** const pEvents = events;

char getCurrentGameLanguage();
Expand Down Expand Up @@ -1212,8 +1216,10 @@ u8 ** GetChapterEventDataPointerForMultiLanguage(u32 chapterId)
switch(getCurrentGameLanguage())
{
case LANGUAGE_EN:
#ifdef SUPPORT_ENGLISH
if(events_EN[eventId])
return events_EN[eventId];
#endif
case LANGUAGE_JP:
default:
return events[eventId];
Expand Down
4 changes: 4 additions & 0 deletions src/game_option.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ struct OptionMenuInfo {
const u8 optionMenuList1[] = {0, 5, 4, 1, 2, 0xa, 0xe, 0xf, 0xb, 3, 6, 7, 8};
const u8 optionMenuList2[] = {0, 5, 4, 1, 2, 0xa, 0xe, 0xb, 3, 0xc, 6, 7, 8};
const u8 optionMenuList3[] = {0, 5, 4, 1, 2, 0xa, 0xe, 0xb, 3, 0xc, 6, 7, 8};
#ifdef SUPPORT_ENGLISH
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};
#else
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};
#endif

const struct OptionMenuInfo OptionMenuInfos[] = {
//{0xd, optionMenuList1},
Expand Down
Loading

0 comments on commit 2bbb256

Please sign in to comment.