PokeMe64/include/scenes
Philippe Symons dce6864795
Feature/add support for other game languages (#13)
* Add support for other game localizations/languages

* Increase PokeMe64 version to v0.3

* Update README.md

* Slightly improve the text in docs/Why_I_Had_To_Give_Up_On_Batteryless_Repros.md

* Update libpokemegb submodule to commit 3d86aa8

* Add Japanese characters to the fonts

* Make validating Japanese save files work correctly

Turns out these Japanese cartridges are using an MBC1 controller. There's a notable difference between it and
MBC3: by default it is doing banking mode 0. But in this mode, you can't switch SRAM banks!

So in order to make japanese cartridges work, we must switch to mode 1.

* Update Arial font: add Japanese glyphs from Osaka Regular-Mono.ttf

In order to render japanese characters, we need to have a font which has japanese characters and make sure they
are added to the .font64 file with mkfont during compilation.

I wrote a small program before to figure out which Japanese characters are actually used in the Japanese gameboy
cartridges.

I only added those unicode ranges to the fonts to keep them small.

There was no easy way to have a font that has both latin and Japanese characters, especially not free. So I
used FontForge to merge the japanese glyphs from Osaka Regular-Mono into Arial.ttf

* Update libpokemegb to commit 0ef7a3a

* Update libpokemegb submodule

* Update libpokemegb submodule to commit d6f3423

* Various changes

- Upgrade libpokemegb to commit c47f8b3

- [Korean gen II games]: Make the UI show Trainer and Pokémon instead of the actual trainer name and pokémon name.
  This is needed because our font does not include the necessary characters for the Korean games. And while I could attempt to add them, I don't sufficiently care to do so.

- Attempt to randomize random values. This is needed for random IVs and shininess chances.
  It's not entirely clear to me whether the rand() function would actually return random values in previous versions of PokeMe64.
  While libdragon does gather entropy at bootup and implements a getentropy() function, I don't see this function referenced anywhere.
  That being said, it DOES look like libstdc++ would call a getentropy() function, so perhaps this is a way in which getentropy() from libdragon would get called.
  But I'm not using libstdc++'s functionality to obtain random values, I'm using libc's rand() function. And I don't see any reference from libc (for rand()) to getentropy(), so...
  At the very least we might need to use values from getentropy() to seed with srand(). But because I have trust issues with randomizing pseudo-random values in a system
  that doesn't have a system clock, I also added trainerID, trainerName and the number of elapsed cpu cycles until we are going to the main menu to the seed. I might consider
  adding the RTC values for gen II games to the seed as well later.

* Update README.md

* More README.md

* Update libpokemegb to commit 17232c4
2025-02-10 21:29:22 +01:00
..
AboutScene.h Feature/add support for other game languages (#13) 2025-02-10 21:29:22 +01:00
AbstractUIScene.h Feature/backup cartridge save to flashcart sd (#7) 2024-09-11 22:31:50 +02:00
DataCopyScene.h Feature/backup cartridge save to flashcart sd (#7) 2024-09-11 22:31:50 +02:00
DistributionPokemonListScene.h Feature/show party icons on distribution pokemon selection screen (#8) 2024-09-30 23:29:09 +02:00
InitTransferPakScene.h Feature/add support for other game languages (#13) 2025-02-10 21:29:22 +01:00
IScene.h Feature/add support for other game languages (#13) 2025-02-10 21:29:22 +01:00
MenuScene.h Feature/backup cartridge save to flashcart sd (#7) 2024-09-11 22:31:50 +02:00
PokeTransporterGBRefScene.h Feature/add support for other game languages (#13) 2025-02-10 21:29:22 +01:00
SceneManager.h Add StatsScene for showing obtained pokemon 2024-08-13 19:18:14 +02:00
SceneWithDialogWidget.h Feature/add support for other game languages (#13) 2025-02-10 21:29:22 +01:00
SceneWithProgressBar.h Feature/backup cartridge save to flashcart sd (#7) 2024-09-11 22:31:50 +02:00
SelectFileScene.h Feature/add icons to selectfilescene (#9) 2024-09-30 23:31:24 +02:00
StatsScene.h Feature/add support for other game languages (#13) 2025-02-10 21:29:22 +01:00
TestScene.h Feature/backup cartridge save to flashcart sd (#7) 2024-09-11 22:31:50 +02:00