Commit graph

392 commits

Author SHA1 Message Date
Silent
ce0fe83e66 Fixes for C++17 conformance 2017-12-22 00:13:16 +01:00
Silent
70efc863c8 Tidied up 2017-11-30 18:19:43 +01:00
Silent
ff823f1eb9 Exposed ColouredZoneNames to debug menu (on 1.0 only) 2017-11-15 00:20:17 +01:00
Silent
2272250483 DirectionalFromSun exposed to INI
Debug menu even in Master builds
2017-11-15 00:06:36 +01:00
Silent
fbe5c6c6bf Corrected zone name colour blending 2017-11-10 00:24:27 +01:00
Silent
7c831ee2a9 Use structured bindings instead of std::tie 2017-11-09 12:31:03 +01:00
Silent
a76b06a400 Make CAEDataStream methods pure virtual so intellisense doesn't complain (and those methods shouldn't be used anyway) 2017-10-23 00:25:37 +02:00
Silent
771fd96ba7 "number_type - The numbering scheme used for the frame. As a convenience, the decoder will always convert a frame number to a sample number because the rules are complex." 2017-10-20 01:12:17 +02:00
Silent
71ebe0d9eb Stricter constness
Marked AE decoder classes as final to encourage devirtualization
2017-10-20 00:58:06 +02:00
Silent
4827c94a98 Use kernel32 export in ModuleList if possible
Make ModuleList a local variable
2017-10-04 19:12:33 +02:00
Silent
e8b07f9f50 Cleaned up imports
Delay load shlwapi/shell32/psapi as we don't need those in DllMain (shell32 is used MUCH later) and stock game doesn't link them so we may speed up startup
2017-10-03 23:32:14 +02:00
Silent
080cc24f34 Unnamed CdStream semaphore (allows to run III/VC/SA all at once) 2017-10-03 22:24:01 +02:00
Silent
4b2c145028 Replaced GetASIModuleHandle with ModuleList (locate modules matching only by name without extension) 2017-10-03 21:34:21 +02:00
Silent
f35b637b9e Unsupported 3.0 message 2017-09-28 23:48:08 +02:00
Silent
53debb778b Removed two pass rendering 2017-09-28 21:43:16 +02:00
Silent
ede1d92f0b NVC shader removed 2017-09-28 21:13:14 +02:00
Silent
32fa0c9e51 Bomb ownership bug fix in III/VC + small corrections
Project fixes
2017-09-27 23:12:05 +02:00
Silent
a545d5f28f Fixed check (should be case insensitive like in stock game) 2017-09-27 00:02:48 +02:00
Silent
d596ec7d1e CdStream fix future proof for new FLA 2017-09-26 18:03:13 +02:00
Silent
d6e0f3e74f Skip cdstream fix if FLA uses enhanced IMGs 2017-09-26 16:36:49 +02:00
Silent
258d1cccc9 Extra assertions added
Fixed bomb ownership/bombs saving for bikes - SA 1.0
2017-09-24 14:35:10 +02:00
Silent
a66876f85f Cargens placed in interiors tie to area 13 (visible everywhere) 2017-09-23 21:04:46 +02:00
Silent
e272cce1f3 Dancing timers fix 2017-09-23 19:34:28 +02:00
Silent
498ef74988 Fixed GetOverlappedResult return values (more future proof)
ModloaderCdStreamRaceConditionAware so SP knows when ML patches cdstream race condition
2017-09-23 13:21:10 +02:00
Silent
5c48418aae Use VP overloads explicitly for CdStreamSyncOnObject in case it's in hoodlum code space and it's not unprotected 2017-09-21 19:15:13 +02:00
Silent
4fbd372d57 Don't patch moonphases if skygfx already does that 2017-09-21 17:43:32 +02:00
Silent
ab6f2609d8 Small code clarity fixes 2017-09-20 20:41:58 +02:00
Silent
4a3a867b0c Fixed an issue with hoodlum 2017-09-20 17:11:57 +02:00
Silent
c645fc56ee Missing patch 2017-09-20 15:57:28 +02:00
Silent
a3bbfd2cd3 XP-friendly CVs 2017-09-20 15:15:29 +02:00
Silent
bda0c717a6 Moved InitializeCriticalSectionAndSpinCount before original function so critsec is here BEFORE cdstreamthread spawns 2017-09-20 15:00:21 +02:00
Silent
21d0c51519 Improved CdStream fix by using condition variable (without modloader for now only) 2017-09-20 14:58:55 +02:00
Silent
3df6ae1854 Fixed a deadlock in CdStream 2017-09-20 02:08:29 +02:00
Silent
2e85ac3dec Hooked up debugmenu.dll
Don't include an extra D3DLIGHT on vehicles since we fixed directional already
2017-09-19 21:40:48 +02:00
Silent
d3cb0bb72c Aaron's sun corrected 2017-09-19 17:46:42 +02:00
Silent
6559a04732 Modulo over CLoadingScreen::m_currDisplayedSplash - SA 1.0 2017-09-19 00:47:38 +02:00
Silent
bf8f58970d Unified code between ddraw and ASIs 2017-09-18 22:13:02 +02:00
Silent
fb672f079b Simplified ScopedUnprotect selection
Made SA use safer ScopedUnprotect
2017-09-18 12:52:35 +02:00
Silent
f1cb027642 Fixed impounding of random vehicles (because CVehicle::~CVehicle doesn't remove cars from apCarsToKeep) - SA 1.0 2017-09-15 20:24:26 +02:00
Silent
4b934419bf Proper metric-imperial conversion constants 2017-09-12 22:35:45 +02:00
Silent
4a2d93c44e Fixed new warnings 2017-09-12 18:06:55 +02:00
Silent
99503818dd Safer CdStreamSetFilePointer 2017-09-12 18:04:42 +02:00
Silent
e4a3d81e81 Only hook DOUBLE_RHWEELS exception list if there are any entries listed in INI 2017-09-12 16:14:07 +02:00
Silent
7413bab68c Less invasive INI options (don't hook if option is commented out/removed) 2017-09-12 16:08:22 +02:00
Silent
43babcd405 GetASIModuleHandle to account for stupid people having their mods as DLL and not ASI 2017-09-12 14:21:20 +02:00
Silent
9cb66601f8 Master builds (Release = optimizations + assertions) 2017-09-12 13:48:15 +02:00
Silent
f0a53778ee Remove FILE_FLAG_NO_BUFFERING from CdStreams - III (all), VC (all), SA (1.0) 2017-09-12 13:31:57 +02:00
Silent
8901d95359 Fixup for SA timers 2017-09-11 00:39:08 +02:00
Silent
14a31c21e8 Beagle moving aileron 2017-09-10 00:16:16 +02:00
Silent
539398dd68 Stuntplane ailerons
Programmatically fixed props on Predator and Tropic
2017-09-09 23:39:30 +02:00
Silent
df32c8ab6a Once again cleaned up FLA integration 2017-09-09 20:46:10 +02:00
Silent
5050c6510e Rotate Newsvan dish when player is using the car 2017-09-09 20:29:01 +02:00
Silent
88de5b8f00 Only animate Sweeper brushes when needed 2017-09-09 20:04:48 +02:00
Silent
36d9f1a29a Make freeing temp objects more aggressive to fix vending crash - SA 1.0 2017-09-09 18:47:07 +02:00
Silent
49796ff0cf Tweaked Sweeper/Phoenix constants 2017-09-08 00:16:31 +02:00
Silent
fb679617de Disabled C++ exceptions and RTTI 2017-09-07 22:43:10 +02:00
Silent
30190e74ef Merge branch 'fla-r28'
# Conflicts:
#	SilentPatch/TheFLAUtils.cpp
#	SilentPatch/TheFLAUtils.h
#	SilentPatchSA/ModelInfoSA.h
2017-09-07 22:35:16 +02:00
Silent
7e30befb6f Refactored FLA compatibility
Car colours compatible with FLA

# Conflicts:
#	SilentPatchSA/ModelInfoSA.h
2017-09-07 22:28:17 +02:00
Silent
63ebc3efa1 Recompiled libflac 2017-09-07 21:24:34 +02:00
Silent
09f3d7ca34 Minor improvements to CMatrix 2017-06-25 14:27:10 +02:00
Silent
1da99647b5 Stop BF Injection/Bandito/Hotknife rotating engine components when engine is off 2017-06-25 14:09:30 +02:00
Silent
6006e253b1 SetComponentRotation moved to code 2017-06-25 12:32:22 +02:00
Silent
9b75302ba5 Updated Maths.h 2017-06-25 12:32:07 +02:00
Silent
5f6ad2157d Sweeper animations
Fixed Phoenix anims
2017-06-25 12:17:09 +02:00
Silent
07776b44cb % switch Z writing later to narrow down var scope more 2017-06-23 01:25:15 +02:00
Silent
9236463f88 Animated Phoenix hood scoop 2017-06-23 00:11:17 +02:00
Silent
9eec64ab83 More merge fixes (ugh) 2017-06-20 20:32:25 +02:00
Silent
22c484a9f9 Merge fixes 2017-06-20 18:33:31 +02:00
Silent
38705cf740 Merge branch 'fla-r28'
# Conflicts:
#	SilentPatchSA/SilentPatchSA.cpp
#	SilentPatchSA/SilentPatchSA.vcxproj
#	SilentPatchSA/SilentPatchSA.vcxproj.filters
#	SilentPatchSA/VehicleSA.cpp
2017-06-20 18:27:50 +02:00
Silent
35cc3a1562 use int32 instead of uint32 for model IDs 2017-06-20 17:15:44 +02:00
Silent
4b42bf8f10 Lightbeam fix compatible with FLA 2017-06-20 16:58:21 +02:00
Silent
625720904d Only patch IMG sizes if FLA isn't doing so already 2017-06-20 16:20:59 +02:00
Silent
3cde64abbc FLA 32-bit model IDs compatibility 2017-06-19 20:00:02 +02:00
Silent
c81ab5f3f9 + Pattern.for_each_result 2017-05-27 21:44:22 +02:00
Silent
64168d3301 fixup decoder constructors 2017-05-14 00:29:45 +02:00
Silent
71cfde4d8e Perform static initialization with lambdas 2017-05-14 00:23:06 +02:00
Silent
ace01292eb Read CCustomCarPlateMgr::GeneratePlateText from InjectDelayedPatches - adds compatibility with Deji's Custom Plate Format 2017-04-27 16:17:38 +02:00
Silent
396f013961 MountainCloudBoysFix using patternies instead of a hardcoded offset 2017-04-27 02:19:27 +02:00
Silent
e037250b1e can use get_pattern here 2017-04-12 21:40:46 +02:00
Silent
47323e014d reverse more RW functions 2017-04-12 21:33:23 +02:00
Silent
758186aa50 Simplified resource loading 2017-04-12 00:47:27 +02:00
Silent
6fa6ff2afe Update new dirt fix for steam 2017-04-10 13:23:39 +02:00
Silent
db1481d219 Support arbitrary amount of numberplates 2017-04-10 13:18:23 +02:00
Silent
ca1d2c2496 Support any amount of editable materials 2017-04-10 13:02:50 +02:00
Silent
a1f4744dcf memory validator 2017-04-10 12:32:31 +02:00
Silent
87e6f81883 keep remainder while ticking SCM timers 2017-04-10 01:01:43 +02:00
Silent
fe46468e7c Safer CPNGFile::ReadFromMemory 2017-04-09 23:17:49 +02:00
Silent
6e470ab20d increased numplate and car dirt code safety (null entries properly now, don't allow for a buffer overrun in strcpy_s) 2017-04-09 23:17:31 +02:00
Silent
98055b9f3f safer resource management 2017-04-09 22:00:43 +02:00
Silent
f39c7c8d2c more security improvements 2017-04-09 20:25:19 +02:00
Silent
6bdd02ffdd Fully migrate on utf-16 strings where possible 2017-04-09 18:43:54 +02:00
Silent
f170201068 safer ini reading 2017-04-09 18:13:52 +02:00
Silent
550841b60a std::string_view 2017-04-02 21:08:57 +02:00
Silent
546f7cfe54 suppress or fix all warnings 2017-04-02 19:41:50 +02:00
Silent
ba93639693 Reverse more RW functions 2017-04-02 19:00:49 +02:00
Silent
8a1729370b use perfect forwarding properly 2017-04-02 18:59:08 +02:00
Silent
55fef20267 shouldn't be this way 2017-04-02 18:58:32 +02:00
Silent
7d13fbc441 perfect forwarding in C++ style ForAll RW functions 2017-04-02 18:54:53 +02:00
Silent
0fa6e0964b Reversed RwMatrixTranslate 2017-03-29 01:14:38 +02:00
Silent
a5c0dd54eb refactored to use templated predicates for RW callbacks 2017-03-28 00:36:05 +02:00
Silent
1e69da6ce5 Correct imshadows a bit 2017-03-25 18:44:28 +01:00
Silent
b9dff82bcc updated libflac 2017-03-25 13:46:16 +01:00
Silent
9304b6a060 Double rear wheels whitelist 2017-03-25 13:46:07 +01:00
Silent
b2c9b188b3 DelimStringReader 2017-03-23 11:30:06 +01:00
Silent
d40fff0b05 random constexpr 2017-03-20 23:09:03 +01:00
Silent
82115849b1 InitializeScriptGlobals for 3.0 2017-03-20 22:57:28 +01:00
Silent
6488336842 Linear filtering on script sprites 2017-03-20 22:52:41 +01:00
Silent
9247b2c38d new timers fix (only 1.0 in SA!!) 2017-03-20 21:10:50 +01:00
Silent
72542d521e Update version info 2017-03-20 20:27:41 +01:00
Silent
52be8001d1 fix 1.0 eu crash 2017-03-18 15:15:57 +01:00
Silent
8254c1da58 Increased safety of INI path query 2017-03-18 01:43:51 +01:00
Silent
91d14c80b7 this is better 2017-03-17 10:07:25 +01:00
Silent
bf5e54c60f Quadruple stunt bonus 2017-03-17 01:24:33 +01:00
Silent
560c925235 possible hoodlum fix (virtual protect again) 2017-03-14 21:06:58 +01:00
Silent
ef233ec205 014C cargen counter fix (by spaceeinstein) 2017-03-11 18:48:04 +01:00
Silent
cf59b58353 fix GetCurrentZoneLockedOrUnlocked regression in 3.0 2017-03-11 15:43:55 +01:00
Silent
c8eddf93f8 add versioninfo 2017-03-11 14:37:36 +01:00
Silent
cebfa9e9f5 FuckCarCompletely not fixing panels (SA) 2017-03-10 23:54:04 +01:00
Silent
34e86d74fa CarAI timers reset in SA (all versions) 2017-03-10 16:19:05 +01:00
Silent
0778ae7cbc minor refactor in mirrors 2017-03-09 00:58:51 +01:00
Silent
cffabce8ab fix rand() misuse 2017-03-09 00:58:24 +01:00
Silent
2e82d001e1 Update to VS2017 (with fixes) 2017-03-08 16:34:00 +01:00
Silent
6b8a0c093d Alt+F4 fix (SA) 2017-03-07 00:40:51 +01:00
Silent
3d730fd42c fix timers return value (hopefully never affected anything) 2017-03-06 22:44:06 +01:00
Silent
f2bfe03d10 suppress warning 2017-03-06 12:11:13 +01:00
Silent
928a641669 1000fps cap 'fix' removed 2017-03-06 11:27:44 +01:00
Silent
06a018f9aa this is better 2017-03-05 23:31:59 +01:00
Silent
868256f690 AI accuracy fix for 3.0 and newsteam 2017-03-05 23:05:02 +01:00
Silent
1d7f1f4a90 Fix newsteam regression after Memory refactor 2017-03-05 22:45:56 +01:00
Silent
943a3acc24 add Patternies 2017-03-05 22:25:46 +01:00
Silent
6496eb4441 AI accuracy issue (SA 1.0 only so far) - III/VC are unaffected 2017-03-04 15:17:59 +01:00
Silent
0a439cc963 refactored WAV decoder 2017-03-03 21:20:30 +01:00
Silent
1b4859ac25 fix delete 2017-03-03 19:35:55 +01:00
Silent
dda51ec845 Correct samples counting 2017-03-03 19:02:04 +01:00
Silent
7925d3853c refactor FLAC decoder 2017-03-03 02:03:50 +01:00
Silent
80cc6f07bc reduce pollution in precompiled header 2017-03-02 21:59:06 +01:00
Silent
91070f80d0 refactor linked lists 2017-03-02 21:47:09 +01:00
Silent
77aa28bbc7 Rename function 2017-03-02 21:23:17 +01:00
Silent
e4bed9f427 Cleaned up AudioHardwareSA
Extra security checks
2017-03-02 01:35:13 +01:00
Silent
94fe7f01bd Audio decoders split into separate files 2017-03-02 00:40:55 +01:00
Silent
005436d348 updated to libflac 1.3.2 2017-03-02 00:40:15 +01:00
Silent
99f14e4c60 possible bug in one pass alpha render 2017-02-26 13:24:47 +01:00
Silent
8baf3a6321 why Macro? 2017-02-26 13:02:49 +01:00
Silent
cfb5e67339 Tidied up AudioHardwareSA.h (deleting constructors ftw) 2017-02-05 22:52:22 +01:00
Silent
2b51f5f187 Fix linked list 2016-11-20 16:18:48 +01:00
Silent
4bcf3ba89a Handle IMGs bigger than 4GB 2016-11-20 15:54:59 +01:00
Silent
6c5a025c60 Misc fixes 2016-11-12 18:28:46 +01:00
Silent
7e7aaa5db9 Sweet's Girl fix 2016-10-23 20:05:44 +02:00
Silent
7fc873fb71 Similarly nice change to SCM fixes 2016-10-23 19:12:04 +02:00
Silent
d5b28a127d Nice compatibility measure to GetCurrentZoneLockedOrUnlocked 2016-10-23 18:56:34 +02:00
Silent
afd6fc49ea Misc changes 2016-09-12 00:11:17 +02:00
Silent
b27ec3a264 Adapted for new Memory version 2016-09-12 00:09:21 +02:00
Silent
55a480fed0 Read RotorFixExceptions using a WinAPI function 2016-08-11 01:29:54 +02:00
Silent
e78ff41605 Update code for new Memory 2016-08-10 22:27:58 +02:00
Silent
b14dcf88da Fixed ammo for melee weapons in cheats -SA 2016-07-27 02:00:18 +02:00
Silent
1d8b5d4216 stream mem fix for other SA EXEs 2016-07-26 20:12:56 +02:00
Silent
20550b5ed0 "Streaming memory bug" fix - 1.0 2016-07-26 19:43:45 +02:00
Silent
5816666e55 SunSizeHack INI option 2016-07-26 18:26:14 +02:00
Silent
cb80efbf53 rip SilentBlock 2016-07-04 03:20:40 +02:00
Silent
c728251873 Also recompile those libs just to be sure 2016-07-04 00:52:31 +02:00
Silent
90d99eb32f Fix Windows XP launch crash
Fix warning
2016-07-04 00:36:24 +02:00
Silent
17020f1bc2 Nazi newsteam r2 support 2016-05-29 14:33:07 +02:00
Silent
80e569b7bb newsteam r2 support 2016-05-29 00:37:29 +02:00
Silent
688d4039b7 Ported fixes to SA 3.0 2016-05-28 22:44:33 +02:00
Silent
f6cf13fb8a Car explosion fix fixed for hoodlum exe 2016-05-28 20:14:29 +02:00
Silent
181f492a03 Reduce stencil shadows memory usage 2016-04-24 22:00:51 +02:00
Silent
27d80800a0 Fixed escalators crash - SA 1.0 2016-04-24 20:37:14 +02:00
Silent
fcd036595b Nicer looping in fixed bouncing panel functions 2016-04-22 21:55:15 +02:00
Silent
ac349ec844 Crash when entering advanced display options on a dual monitor machine - 1.0 2016-04-22 21:42:10 +02:00
Silent
0f91f1d3e0 Block FLA donation window 2016-04-22 20:54:32 +02:00
Silent
b906331d15 More generic Memory defines 2016-04-22 20:54:20 +02:00
Silent
7cbd4a59bf Car explosion crash with multimonitor - 1.0/newsteam r2 2016-04-22 20:45:33 +02:00
Silent
36ca4ec879 Migrated to VS2015 2016-04-03 14:40:21 +02:00
Silent
06c0264236 Fixed mirrors crash
Mirrors depth fix & bumped quality
Fixed MSAA options
Fixed car collisions
Lens flare for other EXEs
2016-03-31 20:45:49 +02:00
Silent
b64fb9b389 safe sprintfs 2016-03-31 19:51:14 +02:00
Silent
1c40c65c05 Mountain Cloud Boys freeze fix 2016-03-13 13:33:52 +01:00
Silent
cc0280254a Don't lock mouse Y axis during fadeins - SA 2016-03-12 15:47:28 +01:00
Silent
63c6356db7 Fixed buffer overflow 2016-03-12 14:18:24 +01:00
Silent
737fa005c0 Y axis sensitivity fix - SA 2016-03-11 23:54:20 +01:00
Silent
45133d12c4 Fine to use strcpy here 2016-03-11 21:11:35 +01:00
Silent
f3311da509 % new paths 2016-03-07 18:59:19 +01:00
Silent
2fe9915ce7 Fixed lensflare 2016-01-11 23:55:25 +01:00
Silent
ce785d5352 Fixes ported to other EXEs 2015-09-20 21:21:36 +02:00
Silent
c9e900fc87 31-bit randomizer for fixing missing ped paths 2015-09-14 01:00:39 +02:00
Silent
f3218c9ee3 More stable framelimiter - SA 2015-06-28 22:17:29 +02:00
Silent
3c3a25933b SSE instructions disallowed 2015-06-21 00:44:55 +02:00
Silent
c63bdf748d SA-MP User Files fix 2015-05-05 23:32:50 +02:00
Silent
46969bf88f Rotor fix exceptions 2015-05-05 23:29:15 +02:00
Silent
49e73bd130 Project files updated for MSVC2013 2015-05-02 00:27:30 +02:00
Silent
c50c0a2c1d Optimized NVC shader 2015-04-23 18:41:20 +02:00
Silent
403df49335 SHGetFolderPath on User Files - in SA 2015-04-23 17:32:18 +02:00
Silent
785ad0d3ad Updated project files 2015-04-22 15:20:40 +02:00