10 Commits

Author SHA1 Message Date
Spotlight
e17dbf9ce1
Migrate instruction encoding to external library
The PowerPC instruction encoder and patching logic is now available at https://github.com/wii-tools/powerpc.
2022-04-10 23:20:37 -05:00
Spotlight
2e7860a7af
Fix branch conditional address for Wii 2022-01-20 21:54:46 -06:00
Spotlight
060331284e
Remap DBAT7 to cover full IOS range 2022-01-20 19:51:14 -06:00
Spotlight
3338ff8f02
Properly apply BAT changes for vWii
It was determined that Opera mapped out things within the 0xe0000000 range. We remap 0x93xxxxxx to be as wide as possible, in order to write over ES. Nintendo, by default, appears only maps 8 megabytes(?) (mask 0xff) - too little for us.

We then change our IOS patch address to write at 0x92a73ad4 instead of 0xd3a73ad4, as some unknown shenanigans appear to be in play. Writes fully commit via 0x92.

Lastly, we switch to utilize ipl::Exception::__ct in order to have exceptions displayed should any errors occur.
2022-01-15 03:30:08 -06:00
Spotlight
88763a4cf0
Utilize ipl::scene::Setting::prepare for patch
This is early enough in the boot cycle that it does not appear to throw any exceptions, and if such should occur, we have our exception handler present.
2022-01-13 01:00:38 -06:00
Spotlight
70af333c7d
Load from main instead of ES_InitLib 2022-01-12 16:02:31 -06:00
Spotlight
0403609bf7
Properly check if on Wii U
This is still broken for vWiis, but on a physical Wii and under Dolphin it functions as intended.
2022-01-11 22:36:57 -06:00
Spotlight
d721238346
Add vWii support
However, this appears to be broken on a vWii itself, and needs some tweaks. These will be determined at a later date. However, the changes are extremely large, so this commit is being made.
2022-01-11 06:22:22 -06:00
Spotlight
42957bf13f
Add EC title check patch 2021-12-31 03:28:36 -06:00
Spotlight
75c8a4d4cf
Have more precise name for patches source
Other patches are more lengthy, and should reside in their own file. We rename the existing `patches.go` to a more appropriate name so that other patch sets can be separate.
2021-12-30 22:38:43 -06:00