[HW] Fix character swap pack

Fixes https://github.com/slashiee/cemu_graphic_packs/issues/330
This commit is contained in:
Crementif 2019-05-29 17:49:16 +02:00
parent 439f4fbad8
commit b7655cd927
2 changed files with 44 additions and 34 deletions

View File

@ -1,5 +1,14 @@
[HWPlayAsCuccov208] [HWCharacterSwapV208]
moduleMatches = 0xE159AE91 moduleMatches = 0xE159AE91
0x020EBF10 = li r11, $character; codeCaveSize = 0x010
0x020EBF10 = li r11, $character;
_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

@ -1,123 +1,124 @@
[Definition] [Definition]
titleIds = 000500001017D800,000500001017D900,000500001017CD00 titleIds = 000500001017D800,000500001017D900,000500001017CD00
name = Character Swap name = Character Swap
path = "Hyrule Warriors/Mods/Character Swap" path = "Hyrule Warriors/Mods/Character Swap (in adventure mode)"
description = Swaps the character you're playing as to the one you've selected with the presets. description = Allows you to use a character that isn't selectable from the character selection screen normally in adventure mode.
version = 3 version = 3
[Preset] [Preset]
name = Link name = Link
$character:int = 0 $character:int = 0
[Preset] [Preset]
name = Zelda name = Zelda
$character:int = 1 $character:int = 1
[Preset] [Preset]
name = Sheik name = Sheik
$character:int = 2 $character:int = 2
[Preset] [Preset]
name = Impa name = Impa
$character:int = 3 $character:int = 3
[Preset] [Preset]
name = Ganondorf name = Ganondorf
$character:int = 4 $character:int = 4
[Preset] [Preset]
name = Darunia name = Darunia
$character:int = 5 $character:int = 5
[Preset] [Preset]
name = Ruto name = Ruto
$character:int = 6 $character:int = 6
[Preset] [Preset]
name = Agitha name = Agitha
$character:int = 7 $character:int = 7
[Preset] [Preset]
name = Midna name = Midna
$character:int = 8 $character:int = 8
[Preset] [Preset]
name = Fi name = Fi
$character:int = 9 $character:int = 9
[Preset] [Preset]
name = Ghirahim name = Ghirahim
$character:int = 10 $character:int = 10
[Preset] [Preset]
name = Zant name = Zant
$character:int = 11 $character:int = 11
[Preset] [Preset]
name = Lana name = Lana
$character:int = 13 $character:int = 13
[Preset] [Preset]
name = Cia name = Cia
$character:int = 44 $character:int = 44
[Preset] [Preset]
name = Volga name = Volga
$character:int = 45 $character:int = 45
[Preset] [Preset]
name = Wizzro name = Wizzro
$character:int = 46 $character:int = 46
[Preset] [Preset]
name = Twilight Midna name = Twilight Midna
$character:int = 47 $character:int = 47
[Preset] [Preset]
name = Young Link name = Young Link
$character:int = 48 $character:int = 48
[Preset] [Preset]
name = Tingle name = Tingle
$character:int = 49 $character:int = 49
[Preset] [Preset]
name = Linkle name = Linkle
$character:int = 50 $character:int = 50
[Preset] [Preset]
name = Skull Kid name = Skull Kid
$character:int = 51 $character:int = 51
[Preset] [Preset]
name = Toon Link name = Toon Link
$character:int = 52 $character:int = 52
[Preset] [Preset]
name = Tetra name = Tetra
$character:int = 53 $character:int = 53
[Preset] [Preset]
name = King Daphnes 54 name = King Daphnes
$character:int = 54
[Preset] [Preset]
name = Medli name = Medli
$character:int = 55 $character:int = 55
[Preset] [Preset]
name = Marin name = Marin
$character:int = 56 $character:int = 56
[Preset] [Preset]
name = Toon Zelda name = Toon Zelda
$character:int = 57 $character:int = 57
[Preset] [Preset]
name = Ravio name = Ravio
$character:int = 58 $character:int = 58
[Preset] [Preset]
name = Yuga name = Yuga
$character:int = 59 $character:int = 59
# 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