Skip to content

Commit

Permalink
Fixed font size for completion screen for JP version
Browse files Browse the repository at this point in the history
  • Loading branch information
UltiNaruto committed Dec 18, 2023
1 parent 5be801d commit bf5daeb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/patches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9104,9 +9104,13 @@ fn patch_credits(
fn patch_completion_screen(
res: &mut structs::Resource,
mut results_string: String,
version: Version,
)
-> Result<(), String>
{
if version == Version::NtscJ {
results_string = format!("&line-extra-space=4;&font=C29C51F1;{}", results_string);
}
results_string += "\nPercentage Complete\0";

let strg = res.kind.as_strg_mut().unwrap();
Expand Down Expand Up @@ -16428,7 +16432,7 @@ fn build_and_run_patches<'r>(gc_disc: &mut structs::GcDisc<'r>, config: &PatchCo
if config.results_string.is_some() {
patcher.add_resource_patch(
resource_info!("STRG_CompletionScreen.STRG").into(),
|res| patch_completion_screen(res, config.results_string.clone().unwrap())
|res| patch_completion_screen(res, config.results_string.clone().unwrap(), config.version)
);
}

Expand Down

0 comments on commit bf5daeb

Please sign in to comment.