Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tweak] Support for PAL1.1 Change Language option #3124

Merged
merged 1 commit into from
Sep 10, 2023

Conversation

Archez
Copy link
Contributor

@Archez Archez commented Aug 16, 2023

This adds the "Change Language" option from PAL N64 to the Main Menu Options screen.
To achieve this, I had to search for the additional assets provided in the pal1.1 rom and add unique definitions for them to be extracted, as well as headers for them.

The render code for the options menu will look at which platform type and region type is loaded by the active OTR and decide what to render (as not all OTRs will have the expected assets). This will most likely be extended once we add support for NTSC later on.

The input detection also will now take into account if there is 2 or 3 rows of settings. Once the language is changed, the CVar is automatically updated to ensure the setting takes place and is not overwritten on the next frame. TTS additions are provided to read out the language names.

Without a proper PAL N64 decomp to reference, I can't say for sure if this is 1-1 with how it would have been coded, but I consider this a functional enough match for the feature, as well as preserving PAL GC behavior.

I've added the PAL N64 headers to soh-assets.h but I think long term we will want to figure out a way to run the extract headers step on multiple roms and merge them together so that xml defined headers are always auto generated, and soh-assets.h is strictly for custom assets.

2023-08-16.13-54-55.mp4

Build Artifacts

Copy link
Member

@PurpleHato PurpleHato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM and I'm very pleased to see this feature coming in for the PAL releases!
Good job!

@garrettjoecox garrettjoecox merged commit b2ad348 into HarbourMasters:develop Sep 10, 2023
8 checks passed
@Archez Archez deleted the pal11-change-language branch September 10, 2023 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants