-
Notifications
You must be signed in to change notification settings - Fork 5
/
hacks_TDU_ULES00637.ini.db
51 lines (51 loc) · 2.08 KB
/
hacks_TDU_ULES00637.ini.db
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
42
43
44
45
46
47
48
49
50
51
_S ULES00637
_G Test Drive Unlimited [EUR]
// * Original ULUS patch by LunaMoo,
// https://github.com/LunaMoo/PPSSPP_workarounds/
// * Inspired by https://github.com/LunaMoo/PPSSPP_workarounds/issues/2
//
//
_C0 Remove stupid GBA-like pixelisation
//This patches stuff on boot, aka requires restarting emulation/starting the game with cheat activated
_L 0xE0020406 0x002DC288
_L 0x202DC288 0x00003021
_L 0x202DC28C 0x00000000
//
_C0 Remove stupid GBA-like pixelisation [Disable]
_L 0x202DC288 0x3C060406
_L 0x202DC28C 0x34C60002
//
// # Usage
// 1. Activate the cheat of "Paint in secret colour [Enable]"
// 2. Travel to a paint shop
// 3. Paint with any colour (the same colour should be OK)
// 4. Enjoy the amazing (or sometimes boring) secret colour called "DESIGNO MOCHA BLACK"
// 5. (Optional) Go back to the paint shop, ensure you get the secret colour of "DESIGNO MOCHA BLACK"
//
_C0 Paint in secret colour [Enable]
_L 0xE0020011 0x00154B10 // check, 1/2
_L 0xE00110A3 0x00154B12 // check, 2/2
_L 0x20154B10 0x2405FFFE // asm("li a1, hex(-2)"). Notice for halfword, -2 => FFFE
//
_C0 Paint in secret colour [Disable]
_L 0xE002FFFE 0x00154B10 // check, 1/2
_L 0xE0012405 0x00154B12 // check, 2/2
_L 0x20154B10 0x10A30011 // original boring instruction
//
// # For developers
// 08954B10:10A30011 // orig, performs a useless check
// 08954B10:2405FFFE // mod
//
// ## Known ranges (from observations, may be incorrect)
// * ( -inf .. -2 ] -> "DESIGNO MOCHA BLACK" [Often causes crashes at not-equal -2]
// * -1 -> (last used colour)
// * [0 .. ~10] -> valid colour ranges
// * (10 .. +inf ] -> same as colour at 0 (first colour at the paint shop)
//
// ## Misc
// Direct port from the ULUS game release
// "DESIGNO MOCHA BLACK" - the textbox seems to be malfunctioning
// Pointer to the currently driven vehicle doesn't (seem to) exist. The functions (seem to) look up the currently driven vehicle every time, among all owned vehicles. Hence, and also from the realism perspectve, the hack is implemented at the paint shop
// For further discussion, feel free to contact at PPSSPP Discord -> patches-textures-mods
// Cheers!
//