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

Android: Add LZH support, refactor GameBrowser Game Searching #3230

Merged
merged 26 commits into from
Aug 25, 2024

Conversation

Ghabry
Copy link
Member

@Ghabry Ghabry commented May 23, 2024

.

Reduces confusion in Weblate due to the Read only strings.
Can be added in the Layout editor.
The JNIEnv-Pointer is now set from the outside.
Makes it possible to call these functions without having SDL initialized.

Remove DeleteLocalRef, as these references are garbage collected automatically when the function returns.
…ser.

Allows to drop most of the Java scanning code and makes maintanance easier.
@Ghabry Ghabry added this to the 0.8.1 milestone May 23, 2024
@Ghabry
Copy link
Member Author

Ghabry commented May 23, 2024

Well this is ready. Happy testing/crashing the Android Player xD

grafik

@Ghabry Ghabry marked this pull request as ready for review May 23, 2024 13:53
1. If only one title image: Use this one
2. By parsing the database
3. By taking the first image in the title folder

This approach is surprisingly fast and the caching skips the scan after the first time.
The title is then reencoded based on the users encoding setting.
@Ghabry
Copy link
Member Author

Ghabry commented May 24, 2024

@fdelapena suggested to grab the game title from the INI as I'm already parsing the folder anyway.

This went a bit down the rabbit hole then because my code already failed to guess the encoding of the title string of Yume2kki (ゆめ2っき) correctly. So I added two workarounds:

  1. When a "game region" is set the game title is reencoded based on it
  2. The user can provide a custom game name (this was surprisingly easy to add xD)

@Ghabry
Copy link
Member Author

Ghabry commented May 24, 2024

image

Originally they were generated by a Header generator but by now Android Studio handles this which is more flexible.
@fdelapena fdelapena added the Awaiting Rebase Pull requests with conflicting files due to former merge label Jul 2, 2024
@Ghabry Ghabry removed the Awaiting Rebase Pull requests with conflicting files due to former merge label Jul 18, 2024
@Ghabry
Copy link
Member Author

Ghabry commented Jul 18, 2024

okay rebased. Also added the Font preview and the RTP status commits as previously discussed in the AudioCfg PR.

Happy testing. ;)

grafik

@carstene1ns
Copy link
Member

I think we should merge this and push to the beta channel to get more feedback.

@Ghabry
Copy link
Member Author

Ghabry commented Aug 25, 2024

Made a small fix to the save path code and had to bump the target SDK because we are behind... Is ready for merge now.

@fdelapena fdelapena merged commit 382767f into EasyRPG:master Aug 25, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants