[HW] Fix resolution pack issues and Character Swap

Character Swap would crash the game due to some change in Cemu 1.15.8 apparently (no real clue why although it's probably the hex values being weird). Reported by Revan.

Hyrule Warriors resolution pack has a pretty big blending bug in the menus for a bit too. Upscaling compressed formats never goes well. Reported by MelonSpeedruns.
This commit is contained in:
Crementif 2020-05-08 14:27:01 +02:00
parent e2255adfbf
commit 85fc675436
No known key found for this signature in database
GPG Key ID: 11A98E7DE0412B33
4 changed files with 67 additions and 76 deletions

View File

@ -0,0 +1,4 @@
[CharacterSwap_V208]
moduleMatches = 0xE159AE91
0x020EBF0C = li r11, $character

View File

@ -1,14 +0,0 @@
[HWCharacterSwapV208]
moduleMatches = 0xE159AE91
codeCaveSize = 0x010
_characterValue = 0x00000000
0x00000000 = .int $character
_loadCharacterValue = 0x00000004
0x00000004 = lis r11, _characterValue@ha
0x00000008 = lwz r11, _characterValue@l(r11)
0x0000000C = blr
0x020EBF10 = bla _loadCharacterValue

View File

@ -2,131 +2,131 @@
titleIds = 000500001017D800,000500001017D900,000500001017CD00 titleIds = 000500001017D800,000500001017D900,000500001017CD00
name = Character Swap name = Character Swap
path = "Hyrule Warriors/Mods/Character Swap (in adventure mode)" path = "Hyrule Warriors/Mods/Character Swap (in adventure mode)"
description = Allows you to use a character that isn't selectable from the character selection screen normally in adventure mode. description = Allows you to use a character that isn't selectable from the character selection screen normally in adventure mode. Only works on the latest game update.
version = 4 version = 4
[Preset] [Preset]
name = Link name = Link
$character:int = 0x0 $character = 0x00
[Preset] [Preset]
name = Zelda name = Zelda
$character:int = 0x1 $character = 0x01
[Preset] [Preset]
name = Sheik name = Sheik
$character:int = 0x2 $character = 0x02
[Preset] [Preset]
name = Impa name = Impa
$character:int = 0x3 $character = 0x03
[Preset] [Preset]
name = Ganondorf name = Ganondorf
$character:int = 0x4 $character = 0x04
[Preset] [Preset]
name = Darunia name = Darunia
$character:int = 0x5 $character = 0x05
[Preset] [Preset]
name = Ruto name = Ruto
$character:int = 0x6 $character = 0x06
[Preset] [Preset]
name = Agitha name = Agitha
$character:int = 0x7 $character = 0x07
[Preset] [Preset]
name = Midna name = Midna
$character:int = 0x8 $character = 0x08
[Preset] [Preset]
name = Fi name = Fi
$character:int = 0x9 $character = 0x09
[Preset] [Preset]
name = Ghirahim name = Ghirahim
$character:int = 0xA $character = 0x0A
[Preset] [Preset]
name = Zant name = Zant
$character:int = 0xB $character = 0x0B
[Preset] [Preset]
name = Lana name = Lana
$character:int = 0xD $character = 0x0D
[Preset] [Preset]
name = Cia name = Cia
$character:int = 0x2C $character = 0x2C
[Preset] [Preset]
name = Volga name = Volga
$character:int = 0x2D $character = 0x2D
[Preset] [Preset]
name = Wizzro name = Wizzro
$character:int = 0x2E $character = 0x2E
[Preset] [Preset]
name = Twilight Midna name = Twilight Midna
$character:int = 0x2F $character = 0x2F
[Preset] [Preset]
name = Young Link name = Young Link
$character:int = 0x30 $character = 0x30
[Preset] [Preset]
name = Tingle name = Tingle
$character:int = 0x31 $character = 0x31
[Preset]
name = Linkle
$character:int = 0x34
[Preset]
name = Skull Kid
$character:int = 0x35
[Preset]
name = Toon Link
$character:int = 0x36
[Preset]
name = Tetra
$character:int = 0x37
[Preset]
name = King Daphnes
$character:int = 0x38
[Preset]
name = Medli
$character:int = 0x39
[Preset]
name = Marin
$character:int = 0x3A
[Preset]
name = Toon Zelda
$character:int = 0x3B
[Preset]
name = Ravio
$character:int = 0x3C
[Preset]
name = Yuga
$character:int = 0x3D
[Preset] [Preset]
name = Ganon name = Ganon
$character = 50 $character = 0x32
[Preset] [Preset]
name = Giant Cucco name = Giant Cucco
$character = 51 $character = 0x33
[Preset]
name = Linkle
$character = 0x34
[Preset]
name = Skull Kid
$character = 0x35
[Preset]
name = Toon Link
$character = 0x36
[Preset]
name = Tetra
$character = 0x37
[Preset]
name = King Daphnes
$character = 0x38
[Preset]
name = Medli
$character = 0x39
[Preset]
name = Marin
$character = 0x3A
[Preset]
name = Toon Zelda
$character = 0x3B
[Preset]
name = Ravio
$character = 0x3C
[Preset]
name = Yuga
$character = 0x3D
# https://github.com/Dekirai/HyruleWarriors-Trainer/blob/23a42b4ad580dfb847d6ef4ebcaa4c7a30df3eea/Hyrule%20Warriors/Form1.cs#L382 # https://github.com/Dekirai/HyruleWarriors-Trainer/blob/23a42b4ad580dfb847d6ef4ebcaa4c7a30df3eea/Hyrule%20Warriors/Form1.cs#L382

View File

@ -503,6 +503,7 @@ overwriteHeight = ($height/$gameHeight) * (368*$2pScaling )
width = 640 width = 640
height = 360 height = 360
#formats = 0x816,0x80e,0x035,0x033,0x007 #formats = 0x816,0x80e,0x035,0x033,0x007
formatsExcluded = 0x035 # Exclude images on menu screens
tileModesExcluded = 0x001 tileModesExcluded = 0x001
overwriteWidth = ($width/$gameWidth) * (640*$2pScaling ) overwriteWidth = ($width/$gameWidth) * (640*$2pScaling )
overwriteHeight = ($height/$gameHeight) * (360*$2pScaling ) overwriteHeight = ($height/$gameHeight) * (360*$2pScaling )