mirror of
https://github.com/cemu-project/cemu_graphic_packs.git
synced 2024-12-23 00:11:51 +01:00
[BotW] Add weather mod
This commit is contained in:
parent
a85380ff8b
commit
8dc4c7017b
23
Mods/BreathOfTheWild_Weather/patches.txt
Normal file
23
Mods/BreathOfTheWild_Weather/patches.txt
Normal file
@ -0,0 +1,23 @@
|
||||
[BotwV208]
|
||||
moduleMatches = 0x6267BFD0
|
||||
|
||||
codeCaveSize = 0x14
|
||||
|
||||
# Constants
|
||||
0x00000000 = .byte $weatherByte
|
||||
_weatherConst = 0x00000000
|
||||
|
||||
# Code that changes the weather to our constant
|
||||
_changeWeather = 0x00000004
|
||||
0x00000004 = lis r26, _weatherConst@ha
|
||||
0x00000008 = lbz r26, _weatherConst@l(r26)
|
||||
0x0000000C = stb r26, 0x18(r30)
|
||||
0x00000010 = blr
|
||||
|
||||
0x3668FEC = bla _changeWeather
|
||||
|
||||
# Original Instructions
|
||||
# .text:03668FE4 stfs f28, 0x14(r30)
|
||||
# .text:03668FE8 stb r0, 0x19(r30)
|
||||
# .text:03668FEC stb r26, 0x18(r30) # Here we jump to our code cave since it originally sets the weather byte in the game.
|
||||
# .text:03668FF0 b loc_3669434
|
43
Mods/BreathOfTheWild_Weather/rules.txt
Normal file
43
Mods/BreathOfTheWild_Weather/rules.txt
Normal file
@ -0,0 +1,43 @@
|
||||
[Definition]
|
||||
titleIds = 00050000101C9300,00050000101C9400,00050000101C9500
|
||||
name = Weather
|
||||
path = "The Legend of Zelda: Breath of the Wild/Mods/Weather"
|
||||
description = Changes the weather
|
||||
version = 3
|
||||
|
||||
[Preset]
|
||||
name = Clear weather
|
||||
$weatherByte:int = 0
|
||||
|
||||
[Preset]
|
||||
name = Raining
|
||||
$weatherByte:int = 2
|
||||
|
||||
[Preset]
|
||||
name = Raining (dark clouds and winds blowing)
|
||||
$weatherByte:int = 3
|
||||
|
||||
[Preset]
|
||||
name = Clear weather (distant thunder)
|
||||
$weatherByte:int = 6
|
||||
|
||||
[Preset]
|
||||
name = Raining (thundering clouds)
|
||||
$weatherByte:int = 7
|
||||
|
||||
[Preset]
|
||||
name = Raining (fog)
|
||||
$weatherByte:int = 8
|
||||
|
||||
# If anyone finds accurate names for these, feel free to fill them in.
|
||||
[Preset]
|
||||
name = MISC 1
|
||||
$weatherByte:int = 1
|
||||
|
||||
[Preset]
|
||||
name = MISC 2
|
||||
$weatherByte:int = 4
|
||||
|
||||
[Preset]
|
||||
name = MISC 3
|
||||
$weatherByte:int = 5
|
Loading…
Reference in New Issue
Block a user