Skip to content

Commit

Permalink
Use ff7_japanese_edition as flag
Browse files Browse the repository at this point in the history
  • Loading branch information
julianxhokaxhiu committed Sep 28, 2024
1 parent 4a04623 commit b46ce00
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
8 changes: 6 additions & 2 deletions misc/FFNx.toml
Original file line number Diff line number Diff line change
Expand Up @@ -688,9 +688,13 @@ ff7_external_opening_music = false
#~~~~~~~~~~~~~~~~~~~~~~~~~~~
ff7_field_center = true

# This flag enables Japanese text rendering mode
# Native Japanese edition
#~~~~~~~~~~~~~~~~~~~~~~~~~~~
ff7_japanese_text = false
# This flag will force the game to use the native Japanese font rendering.
# Native eStore release will auto-enable this flag.
# NOTE: This WILL NOT work on non-Japanese releases. You need the official Japanese release to make use of it.
#~~~~~~~~~~~~~~~~~~~~~~~~~~~
ff7_japanese_edition = false

## MODDER OPTIONS - These options are mostly useful to modders and should not be enabled during normal play.

Expand Down
3 changes: 1 addition & 2 deletions src/cfg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ std::vector<std::string> disable_animated_textures_on_field;
long ff7_fps_limiter;
bool ff7_footsteps;
bool ff7_field_center;
bool ff7_japanese_text;
bool enable_analogue_controls;
bool enable_inverted_vertical_camera_controls;
bool enable_inverted_horizontal_camera_controls;
Expand Down Expand Up @@ -288,7 +287,7 @@ void read_cfg()
ff7_fps_limiter = config["ff7_fps_limiter"].value_or(FPS_LIMITER_DEFAULT);
ff7_footsteps = config["ff7_footsteps"].value_or(false);
ff7_field_center = config["ff7_field_center"].value_or(true);
ff7_japanese_text = config["ff7_japanese_text"].value_or(false);
ff7_japanese_edition = config["ff7_japanese_edition"].value_or(false);
enable_analogue_controls = config["enable_analogue_controls"].value_or(false);
enable_inverted_vertical_camera_controls = config["enable_inverted_vertical_camera_controls"].value_or(false);
enable_inverted_horizontal_camera_controls = config["enable_inverted_horizontal_camera_controls"].value_or(false);
Expand Down
1 change: 0 additions & 1 deletion src/cfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ extern std::vector<std::string> disable_animated_textures_on_field;
extern long ff7_fps_limiter;
extern bool ff7_footsteps;
extern bool ff7_field_center;
extern bool ff7_japanese_text;
extern bool enable_analogue_controls;
extern bool enable_inverted_vertical_camera_controls;
extern bool enable_inverted_horizontal_camera_controls;
Expand Down
2 changes: 1 addition & 1 deletion src/ff7_opengl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ void ff7_init_hooks(struct game_obj *_game_object)
// ###########################
// japanese text
// ###########################
if (ff7_japanese_text)
if (ff7_japanese_edition)
{
replace_function(ff7_externals.field_submit_draw_text_640x480_6E706D, field_submit_draw_text_640x480_6E706D_jp);
replace_function((uint32_t)ff7_externals.engine_load_menu_graphics_objects_6C1468, engine_load_menu_graphics_objects_6C1468_jp);
Expand Down

0 comments on commit b46ce00

Please sign in to comment.