mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-12-29 23:33:02 +05:00
Compare commits
2 commits
fd0fb93011
...
52a2798b40
Author | SHA1 | Date | |
---|---|---|---|
|
52a2798b40 | ||
|
c733f3e7d1 |
2 changed files with 12 additions and 1 deletions
|
@ -71,6 +71,7 @@ All the remaining, non-critical fixes.
|
||||||
* Detached limbs now have properly working LODs, instead of rendering the normal and low-detail models at the same time.
|
* Detached limbs now have properly working LODs, instead of rendering the normal and low-detail models at the same time.
|
||||||
* Low Brightness options now load and save correctly, instead of reverting to overly bright values.
|
* Low Brightness options now load and save correctly, instead of reverting to overly bright values.
|
||||||
* Support for the `brakelights` dummy has been restored, allowing brake and reverse lights to work as they did in the PS2 version, rather than always sharing the same placement with the tail lights.
|
* Support for the `brakelights` dummy has been restored, allowing brake and reverse lights to work as they did in the PS2 version, rather than always sharing the same placement with the tail lights.
|
||||||
|
* The correct window icon is now displayed.
|
||||||
* ⚙️ Fixed siren corona placements in Firetruck, Ambulance, and Enforcer.
|
* ⚙️ Fixed siren corona placements in Firetruck, Ambulance, and Enforcer.
|
||||||
* ⚙️ Fixed taxi light corona placement for Taxi.
|
* ⚙️ Fixed taxi light corona placement for Taxi.
|
||||||
* ⚙️ Fixed police chopper's searchlight placement.
|
* ⚙️ Fixed police chopper's searchlight placement.
|
||||||
|
|
|
@ -229,6 +229,16 @@ namespace Common {
|
||||||
}
|
}
|
||||||
TXN_CATCH();
|
TXN_CATCH();
|
||||||
|
|
||||||
|
// III: Patch the icon handle to fix missing window icon
|
||||||
|
// (This is fixed since VC)
|
||||||
|
try
|
||||||
|
{
|
||||||
|
auto addr = get_pattern("c7 44 24 1c 00 00 00 00 c7 44 24 08 00 20 00", 0x4);
|
||||||
|
HICON wndIconIII = LoadIconA(GetModuleHandleA(nullptr), MAKEINTRESOURCEA(0x412)); // Group icon ID
|
||||||
|
|
||||||
|
Patch<HICON>(addr, wndIconIII);
|
||||||
|
}
|
||||||
|
TXN_CATCH();
|
||||||
|
|
||||||
// No censorships
|
// No censorships
|
||||||
try
|
try
|
||||||
|
@ -249,4 +259,4 @@ namespace Common {
|
||||||
TXN_CATCH();
|
TXN_CATCH();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue