Skip to content

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

Merged
26 commits merged into
EasyRPG:masterfrom
Ghabry:android
Aug 25, 2024
Merged

Android: Add LZH support, refactor GameBrowser Game Searching#3230
26 commits merged into
EasyRPG:masterfrom
Ghabry:android

Conversation

@Ghabry

@Ghabry Ghabry commented May 23, 2024

Copy link
Copy Markdown
Member

.

Ghabry added 7 commits May 23, 2024 12:39
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

Ghabry commented May 23, 2024

Copy link
Copy Markdown
Member Author

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
Ghabry added 2 commits May 23, 2024 20:32
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.
Ghabry added 2 commits May 24, 2024 15:41
The title is then reencoded based on the users encoding setting.
@Ghabry

Ghabry commented May 24, 2024

Copy link
Copy Markdown
Member Author

@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

Ghabry commented May 24, 2024

Copy link
Copy Markdown
Member Author

image

Ghabry added 3 commits May 25, 2024 23:48
Originally they were generated by a Header generator but by now Android Studio handles this which is more flexible.
@ghost ghost 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

Ghabry commented Jul 18, 2024

Copy link
Copy Markdown
Member Author

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
Copy Markdown
Member

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

@Ghabry

Ghabry commented Aug 25, 2024

Copy link
Copy Markdown
Member Author

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.

@ghost
ghost merged commit 382767f into EasyRPG:master Aug 25, 2024
sevenc-nanashi pushed a commit to sevenc-nanashi/easyrpg-player that referenced this pull request May 31, 2026
Android: Add LZH support, refactor GameBrowser Game Searching
This pull request was closed.
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.

2 participants