Commit Graph

186 Commits

Author SHA1 Message Date
Ilya Shurumov
4177c9af3d - implement LongQuaternion2Matrix
- fix LongQuaternion2Matrix
2020-04-18 02:41:26 +06:00
Ilya Shurumov
79d27f4cf2 - implement InitCarPhysics, RebuildCarMatrix 2020-04-18 02:16:10 +06:00
Ilya Shurumov
fd2209d69a - implement UpdatePlayers 2020-04-18 02:03:48 +06:00
Ilya Shurumov
318ced465e - implement StepSim 2020-04-18 01:55:41 +06:00
Ilya Shurumov
88b4ba3bcf - implement InitFelonyDelayArray, GetCarHeading, GetCarDirectionOfTravel 2020-04-18 01:55:31 +06:00
Ilya Shurumov
c18f549148 - implement UpdatePlayerInformation 2020-04-18 00:54:55 +06:00
Ilya Shurumov
5b2b242613 - implement CloseShutters, SetupFadePolys, DrawFadePoly, DisplayMissionTitle
- LOADVIEW.C fully decompiled
2020-04-18 00:44:01 +06:00
Ilya Shurumov
79849de4a1 - implement DrawMission, DisplayPlayerPosition, DrawMessage, DrawWorldTargets, DrawFullscreenTargets, DrawMultiplayerTargets, DrawOverheadTarget 2020-04-18 00:27:24 +06:00
Ilya Shurumov
f429479ac9 - implement ModifyCamera, TurnHead 2020-04-18 00:02:24 +06:00
Ilya Shurumov
351976215b - sky globals renames 2020-04-17 23:14:50 +06:00
Ilya Shurumov
4ee57f00f3 - implement StepGame 2020-04-17 23:14:36 +06:00
Ilya Shurumov
6a05bf7db0 - implement _RotMatrixX, _RotMatrixY, _RotMatrixZ, RotMatrixXYZ 2020-04-17 04:54:10 +06:00
Ilya Shurumov
00933aed4b - implement PlaceCameraFollowCar 2020-04-17 01:50:53 +06:00
Ilya Shurumov
a2ae245f86 - implement DoScenaryCollisions, BuildCollisionCopList, SetCopListCell, RaySlabsIntersection, CellAtPositionEmpty 2020-04-17 01:49:56 +06:00
Ilya Shurumov
01388d3b1d - implement InitCar (partially) 2020-04-17 01:27:17 +06:00
Ilya Shurumov
4ff4c06082 - implement InitPlayer 2020-04-17 01:15:33 +06:00
Ilya Shurumov
56d2a0de15 - implement InitCamera 2020-04-17 01:14:56 +06:00
Ilya Shurumov
3cf1c7fb5b - implement InvertMatrix, BuildWorldMatrix, ScaleCamera 2020-04-17 00:20:21 +06:00
Ilya Shurumov
0bb37aadce - implement DrawSkyDome, PlotHorizonMDL 2020-04-17 00:19:33 +06:00
Ilya Shurumov
6418d4d88f - implement DrawTILES, TileNxN 2020-04-15 20:15:54 +06:00
Ilya Shurumov
81a14e5d32 - [EMU] add signed GTE functions 2020-04-15 19:47:00 +06:00
Ilya Shurumov
7320469b5f - fix DrawMapPSX 2020-04-15 19:32:48 +06:00
Ilya Shurumov
7fce162ef3 - implement Apply_InvCameraMatrixSet* (2 ASM funcs) 2020-04-15 19:30:14 +06:00
Ilya Shurumov
5b9158f66f - implement SetCameraVector, Apply_Inv_CameraMatrix, FrustrumCheck16 2020-04-15 19:14:24 +06:00
Ilya Shurumov
45683cd95c - complete implementing DrawMapPSX 2020-04-15 18:51:36 +06:00
Ilya Shurumov
7a27e36fab - implement InitFrustrumMatrix, SetFrustrumMatrix, Set_Inv_CameraMatrix 2020-04-15 18:27:49 +06:00
Ilya Shurumov
257606b8a8 - implement PVSDecode
- fix GetPVSRegionCell2
2020-04-13 23:15:07 +06:00
Ilya Shurumov
0d8a324fe8 - fix ControlMap 2020-04-13 21:29:32 +06:00
Ilya Shurumov
9eced0134f - implement GetPVSRegionCell2 2020-04-13 20:54:39 +06:00
Ilya Shurumov
c627a9aa23 - implement GetFirstPackedCop, GetNextPackedCop 2020-04-13 19:55:40 +06:00
Ilya Shurumov
8165920d5f - partially implement DrawMapPSX
- implement ClearCopUsage
2020-04-13 19:45:34 +06:00
Ilya Shurumov
958c04d483 - implement SetupDrawMapPSX 2020-04-13 17:43:10 +06:00
Ilya Shurumov
529026d211 - implement Havana3DOcclusion 2020-04-13 14:31:09 +06:00
Ilya Shurumov
d8842db103 - implement PrintStringRightAligned 2020-04-13 14:14:55 +06:00
Ilya Shurumov
7ae60816e3 - implement TransparencyOn 2020-04-13 14:10:50 +06:00
Ilya Shurumov
9e19ac4fdd - implement InitOverlays, InitPercentageBar, DisplayOverlays, DrawPercentageBar, SetColourByValue 2020-04-13 03:30:03 +06:00
Ilya Shurumov
295018a47a - implement RenderGame2
- added missing DrawMission
2020-04-13 02:09:59 +06:00
Ilya Shurumov
636fd0242d - update README 2020-04-12 23:08:03 +06:00
Ilya Shurumov
a5d5b9add4 - show mission loading errors 2020-04-12 22:34:07 +06:00
Ilya Shurumov
fdf5b16a4a - [EMU] fix timestep errors with TOMB5 2020-04-12 22:15:14 +06:00
Ilya Shurumov
d2c3a8c8b0 - remove nasty hack and do with Mutex instead 2020-04-12 21:48:56 +06:00
Ilya Shurumov
ce6c7eb36a - add volatile flag to 'int quickSpool' 2020-04-12 21:32:13 +06:00
Ilya Shurumov
4aa2bd6f3c - add delay hack to spool thread for QuickSpoolSpecial 2020-04-12 21:29:49 +06:00
Ilya Shurumov
87799cda0d - fix spooler thread 2020-04-12 19:56:52 +06:00
Ilya Shurumov
b447fb2725 - Temporarily fix crash when exiting/restarting game 2020-04-12 19:36:26 +06:00
Ilya Shurumov
9c9ff94f3d - [EMU] remove EndScene from VSync and put it to the end of DrawOTag 2020-04-12 19:36:14 +06:00
Ilya Shurumov
37aef8da1d - implement SfxVolume, MusicVolume
- update pause strings
- update Ghidra DB
2020-04-12 19:26:25 +06:00
Ilya Shurumov
c17e09945a - implement ControlMenu, SetupMenu 2020-04-12 19:04:54 +06:00
Ilya Shurumov
6e99edce58 - little changes 2020-04-12 17:59:06 +06:00
Ilya Shurumov
22fbc4e934 Merge branch 'FETCH_HEAD' into Fireboyd78/master 2020-04-12 17:57:45 +06:00
Ilya Shurumov
5342dcaa40 Merge branch 'master' into Fireboyd78/master 2020-04-12 17:51:03 +06:00
Ilya Shurumov
e70524d57a - 'volatile spoolactive' to fix blocking issue on SpoolSync 2020-04-12 17:41:42 +06:00
Ilya Shurumov
526b5fc703 - teporarily disable ProcessDentLump 2020-04-12 17:40:27 +06:00
Ilya Shurumov
a331e962ba - implement MaxMenuStringLength
- fix pause menu rectangle
2020-04-12 03:57:32 +06:00
Ilya Shurumov
8c2fe08356 - fix ordering table size
- fixed SetupDrawBuffers
2020-04-12 03:25:03 +06:00
Ilya Shurumov
c5b878f63d - correct pause strings 2020-04-12 03:24:54 +06:00
Ilya Shurumov
f8190cf54a - attempt to draw pause menus
- implement bunch of functions
2020-04-12 03:02:26 +06:00
Ilya Shurumov
c0ab1a4627 - implement SwapDrawBuffers2 2020-04-12 01:25:49 +06:00
Ilya Shurumov
d7ba985945 - implement SwapDrawBuffers 2020-04-12 01:21:06 +06:00
Ilya Shurumov
87cfbffc82 - implement InitaliseDrawEnv, UpdatePadData, SetupDrawBuffers, SetupDrawBufferData 2020-04-12 01:13:54 +06:00
Ilya Shurumov
51d3938035 - implement LoadSky 2020-04-12 00:54:44 +06:00
Ilya Shurumov
2e39693ea5 - commented out printfs 2020-04-12 00:33:58 +06:00
Ilya Shurumov
dff435a4e8 - fixed spool thread ready callback 2020-04-12 00:15:11 +06:00
Fireboyd78
956f135c73 Fixed bugs in ProcessTextureInfo. 2020-04-11 10:48:12 -07:00
Fireboyd78
3751016845 Merge branch 'master' of https://github.com/SoapyMan/REDRIVER2 2020-04-11 09:52:08 -07:00
Ilya Shurumov
3da3d2044b Merge branch 'master' into Fireboyd78/master 2020-04-11 22:37:35 +06:00
Ilya Shurumov
5c90d922ba - fixed bug in SendTPage
- assign callbacks in 'changemode'
2020-04-11 22:34:58 +06:00
Ilya Shurumov
fd0ae8e6b7 - fixed callback invoke for getLevSectorPC 2020-04-11 22:04:19 +06:00
Ilya Shurumov
5241105487 - implement test spooling
- LoadInAreaTSets back to UNIMPLEMENTED
2020-04-11 21:04:02 +06:00
Ilya Shurumov
63be8e1ce4 - implement data_ready, sector_ready, loadsectors (for PSX)
- dummy CdDiskReady function
2020-04-11 17:21:25 +06:00
Fireboyd78
7e26777504 Fixed incorrect ordering type changes. 2020-04-10 19:02:32 -07:00
Fireboyd78
29b2a181f3 Implemented some DRAW stuff.
* Added DrawAllBuildings

* Added RenderModel

* Defined Apply_InvCameraMatrixSetTrans
 - TODO: Implement code

* Defined Apply_InvCameraMatrixAndSetMatrix
 - TODO: Implement code
2020-04-10 18:40:49 -07:00
Fireboyd78
b162dfbd49 Fixed a bug where OTTYPE would select the wrong size. 2020-04-10 18:36:44 -07:00
Fireboyd78
55d450bbbd Fixed more invalid arguments for coprocessor stuff. 2020-04-10 16:06:01 -07:00
Fireboyd78
05b0bdf10d Implemented EnablePause, CheckForPause. 2020-04-10 15:44:35 -07:00
Fireboyd78
2ddcda382c Implemented various functions + code cleanup.
* Added GetCarPalIndex

* Added GetRandomChase

* Added FindMissionLadderPos

* Added FindPrevMissionFromLadderPos

* Added EndGame

* Added Find_TexID

* Updated GameStart
 - Improved code flow
 - Removed gotos
 - Removed garbage "debug check"
 - Fixed code for cheats
 - Added inline helper functions to reduce bloat

* Updated ProcessLumps
 - Cleaned up code

* Updated DrawGame
 - Cleaned up code
 - Better VSync waiting

* Updated ProcessTextureInfo
 - Improved code flow
 - Cleaned up garbled non-sense code

* Updated SetVariable
 - Improved code flow
 - Removed gotos
 - Fixed code for cheats

* Updated HandleKeyPress
 - Improved code flow
 - Fixed decompilation bugs

* Updated PadChecks
 - Improved code flow
2020-04-10 15:12:50 -07:00
Fireboyd78
70e66207e4 Moved PolySizes from CARS into DRAW. 2020-04-10 14:54:19 -07:00
Fireboyd78
bf5b85591c Added coprocessor macros and fixed invalid arguments. 2020-04-10 14:48:36 -07:00
Ilya Shurumov
478f059614 - implemented almost all SPOOL.C (except unused sound bank loading) 2020-04-10 17:56:11 +06:00
Ilya Shurumov
c455065eda - implement SetupSpecDenting
- update Ghidra DB
2020-04-10 06:11:21 +06:00
Ilya Shurumov
433370e9a4 - implement SetupSpecCosmetics 2020-04-10 05:52:52 +06:00
Ilya Shurumov
a850509963 - implement Tada 2020-04-10 05:52:35 +06:00
Ilya Shurumov
a9493ae5d5 - implement CleanSpooled, LowSpooled 2020-04-10 05:42:53 +06:00
Ilya Shurumov
2ed3733842 - implement LowModelSpooled 2020-04-10 05:42:04 +06:00
Ilya Shurumov
7437040070 - implement DamagedModelSpooled 2020-04-10 05:37:32 +06:00
Ilya Shurumov
1e637cb53f - implement CleanModelSpooled 2020-04-10 05:37:20 +06:00
Ilya Shurumov
da53db487b - implement lots of spooling sh*tcode 2020-04-10 05:29:12 +06:00
Ilya Shurumov
83f0d3ee34 - implement DrawGame, fix RenderGame 2020-04-10 05:28:27 +06:00
Ilya Shurumov
7783d9923a - compile fix 2020-04-10 01:32:19 +06:00
Ilya Shurumov
6f3330ed5b - implement RequestSpool, StartSpooling, UpdateSpool 2020-04-10 00:50:34 +06:00
Ilya Shurumov
7bf256235e - implement GotRegion, unpack_cellpointers 2020-04-10 00:22:38 +06:00
Ilya Shurumov
1559f6e420 - implement CheckUnpackNewRegions 2020-04-10 00:16:26 +06:00
Ilya Shurumov
ca85ad878a - implement LoadRegionData 2020-04-09 23:45:55 +06:00
Ilya Shurumov
9984d347c1 - implement ControlMap 2020-04-09 23:45:25 +06:00
Ilya Shurumov
87a54b18ce - implement ClearRegion 2020-04-09 23:15:54 +06:00
Ilya Shurumov
f5d943e8c5 - implement InitMap, InitSpooling 2020-04-09 23:10:34 +06:00
Ilya Shurumov
739c2ce5f7 - implement ProcessDentLump & LoadDenting
- implement ClearMem
2020-04-09 22:41:58 +06:00
Ilya Shurumov
b4ac9d8240 - implement ProcessLowDetailTable 2020-04-09 22:11:35 +06:00
Ilya Shurumov
630e8c9c73 - implement GetCarModel 2020-04-09 21:53:52 +06:00
Ilya Shurumov
2ce93b0265 - fix ProcessLumps not processing LUMP_CAR_MODELS 2020-04-09 21:42:17 +06:00