Lauriethefish / QuestPatcher

Generic il2cpp modding tool for Oculus Quest (1/2/3) apps.
zlib License
296 stars 392 forks source link

Replace Strings with Localizable Resources #173

Closed qe201020335 closed 4 months ago

qe201020335 commented 7 months ago

Using localizable resources allows others to properly localize the app without replacing string in a fork.

I tried to put the new resource files in the Assets folder, but it didn't work, so I had to create a new folder for them.

image

qe201020335 commented 7 months ago

I will squash the small commits later Squashed

qe201020335 commented 7 months ago

I think I have extracted all the strings. There could be some that I have missed

Lauriethefish commented 4 months ago

Heya, getting round to this now, sorry for the delay.

Lauriethefish commented 4 months ago

Currently attempting to find a workaround to refresh the UI without restarting the app. It seems changing theme does the trick but that's a bit too jank for my liking.

Lauriethefish commented 4 months ago

Seems there's no way to do it because StaticResources have no event handler because they're, well, static. We could make them dynamic resources but that would use more memory, so I think a restart is a good compromise for now.

Lauriethefish commented 4 months ago

Now lgtm, awaiting build