Closed vichoca9 closed 2 weeks ago
This also means: fixing all warnings made by -Wcast-align.
Nevermind, I hacked around until it got into a playable state, I will close this and do a PR after some extra testing.
It is now playable, but crashes whenever it reads something misaligned (now it is automoves). Reopening this issue, hope someone else can look at the pragmas.
I managed to compile a build for the PSP by modifying the cmake file. Using latest source, the game crashes whenever a word is loaded, resulting possibly from unaligned addresses (
sh, lhu
instructions and so on).Examples:
play_seq
, load from ini (ini_process_word
),convert_digi_sound
and so on.Using another data type for them results in undefined behavior or weird bugs (prince falling endlessly after disabling sound and ini from code).