-
Notifications
You must be signed in to change notification settings - Fork 1
/
1.0.0.pchtxt
41 lines (37 loc) · 3.52 KB
/
1.0.0.pchtxt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
@nsobid-F18FF3CFCBAD0884D72ABBEB6C540D6B
# Splatoon 2 1.0.0
@flag offset_shift 0x100
//
// Licensed under GPLv3, see the included LICENSE.txt or visit
// https://www.gnu.org/licenses/gpl-3.0.en.html for more information.
//
// Do not use these patches in an online environment.
// Even for older versions of the game it's likely you'll be flagged and banned.
// These patches are solely intended for isolated emuMMC.
// Consider this your warning!
//
// Special thanks to everyone who has contributed patches to this file.
//
// Debug function to set save to fully unlocked
// Do not keep enabled! Only needs to be enabled once to set the save
// FullOpen [ashbinary]
@disabled
001A066C 1C000014
001263A0 1F000014
// DbgSetting over ShootingRange
@disabled
// first we need a way to access the scene
01455850 540F1A00 // add the ptr to Cstm::newScene<TitleForShow::Scene>(int,sead::Heap *) to ShootingRange (not possible to do it patching .text, you need to patch .rela.dyn otherwise it will be overwritten with the relocation stuff)
001A0F84 E0FF8152 // operator new(0x3F8) to operator new(0xFFF)
001A0F94 ABAD2594 // TitleForShow::Scene::Scene to DbgSetting::Scene::Scene
// then we need to replace the stubbed text render code
0120828C 82030014 // branch Lp::Sys::DbgTextWriter::pilotDraw(agl::lyr::RenderInfo const&, sead::Vector2<float> const&, Lp::Sys::DbgTextWriter::ArgEx const*, char const*)const to Lp::Sys::DbgTextWriter::productDraw(agl::lyr::RenderInfo const&, sead::Vector2<float> const&, Lp::Sys::DbgTextWriter::ArgEx const*, char const*)const
0120748C 16000014 // branch Lp::Sys::DbgTextWriter::pilotEntry(int, sead::Vector2<float> const&, Lp::Sys::DbgTextWriter::ArgEx const*, char const*) to Lp::Sys::DbgTextWriter::productEntry(int, sead::Vector2<float> const&, Lp::Sys::DbgTextWriter::ArgEx const*, char const*)
01207490 CF000014 // branch Lp::Sys::DbgTextWriter::pilotEntryF(int, sead::Vector2<float> const&, Lp::Sys::DbgTextWriter::ArgEx const*, char const*, ...) to Lp::Sys::DbgTextWriter::productEntryF(int, sead::Vector2<float> const&, Lp::Sys::DbgTextWriter::ArgEx const*, char const*, ...)
012074B4 18010014 // branch Lp::Sys::DbgTextWriter::pilotEntryV(int, sead::Vector2<float> const&, Lp::Sys::DbgTextWriter::ArgEx const*, char const*, std::__va_list) to Lp::Sys::DbgTextWriter::productEntryV(int, sead::Vector2<float> const&, Lp::Sys::DbgTextWriter::ArgEx const*, char const*, std::__va_list)
012074B8 55010014 // branch Lp::Sys::DbgTextWriter::pilotEntry(int, sead::Vector2<float> const&, Lp::Sys::DbgTextWriter::ArgEx const*, char16_t const*) to Lp::Sys::DbgTextWriter::productEntry(int, sead::Vector2<float> const&, Lp::Sys::DbgTextWriter::ArgEx const*, char16_t const*)
012074E0 57020014 // branch Lp::Sys::DbgTextWriter::pilotEntryV(int, sead::Vector2<float> const&, Lp::Sys::DbgTextWriter::ArgEx const*, char16_t const*, std::__va_list) to Lp::Sys::DbgTextWriter::productEntryV(int, sead::Vector2<float> const&, Lp::Sys::DbgTextWriter::ArgEx const*, char16_t const*, std::__va_list)
012074BC 0E020014 // branch Lp::Sys::DbgTextWriter::pilotEntryF(int, sead::Vector2<float> const&, Lp::Sys::DbgTextWriter::ArgEx const*, char16_t const*, ...) to Lp::Sys::DbgTextWriter::productEntryF(int, sead::Vector2<float> const&, Lp::Sys::DbgTextWriter::ArgEx const*, char16_t const*, ...)
// now to fix controls (tysm oatmealdome)
012AF368 E0031FAA // set w0 to 0 so getCtrl doesn't try using random garbage data
012AF36C 1BFFFF17 // branch Lp::Utl::Limit::getSceneDbgMixCtrl_Pilot(void) to Lp::Utl::getCtrl(int)