Commit Graph

2002 Commits

Author SHA1 Message Date
Ilya Shurumov
03310e8697 - added D_CHECK_ERROR, change overlay loading method, fix PSX spooling crashes 2021-04-25 19:55:50 +06:00
Ilya Shurumov
9b0267fff1 - bug fixes 2021-04-25 05:09:16 +06:00
Ilya Shurumov
a79cd93daf - PSX memory layout figured out. Partially running. 2021-04-25 04:30:34 +06:00
Ilya Shurumov
6a36fcb36e - fix PSX compile
- remove CD change imitation for PC
2021-04-19 01:52:27 +06:00
Ilya Shurumov
7c14ddbb6e - make XA subtitles appear even if no XA audio is available 2021-04-19 00:46:19 +06:00
Ilya Shurumov
7f6f98670a - added command-line options to change config ini & CD image files 2021-04-19 00:41:49 +06:00
Ilya Shurumov
38680eeb7a - [Psy-X] added CD Image extraction functions 2021-04-18 17:28:04 +06:00
Ilya Shurumov
561c28e75c - fix crash when returning to menu (if command-line runs) 2021-04-17 21:29:10 +06:00
Ilya Shurumov
a87b39a02a - fix post-replay pause state 2021-04-17 21:28:33 +06:00
Ilya Shurumov
f787df5d5d - [Psy-X] fix CD warnings 2021-04-17 20:59:52 +06:00
Ilya Shurumov
176b096a65 - [Psy-X] misc GTE_RotTransPers changes 2021-04-17 16:12:11 +06:00
Ilya Shurumov
ef59968ab2 - fix returning to frontend after FMV
- fix other frontend bugs
2021-04-17 16:11:52 +06:00
Ilya Shurumov
ea8b10d50b - call CheckForPause after FilterFrameTime 2021-04-17 14:35:41 +06:00
Ilya Shurumov
6ce3bd92ad - added FilterFrameTime, fix name entry framerate 2021-04-15 11:49:48 +06:00
Ilya Shurumov
6661545c81 - fix director after refactoring 2021-04-15 11:49:07 +06:00
Ilya Shurumov
c4fbab5dd2 - fix cutscene skipping freeze after refactor 2021-04-15 01:50:38 +06:00
Ilya Shurumov
1f07a8e7da - [Psy-X] fast approximate vblank count (Web only) 2021-04-15 01:12:49 +06:00
Ilya Shurumov
e85df8ef74 - refactor pause menus (unwind into single loop)
- main render loop unwinded
2021-04-15 01:02:54 +06:00
Ilya Shurumov
12c44bf17a - reduce stack memory usage by refactoring game into states 2021-04-14 22:27:06 +06:00
Ilya Shurumov
acf4291916 - [Psy-X] better interrupt callbacks for emscripten 2021-04-14 22:13:53 +06:00
Ilya Shurumov
9370234d5c - fix getting back to demo frontend 2021-04-12 20:34:36 +06:00
Ilya Shurumov
2bf00b10a4 - [Psy-X] rework vblank for emscripten 2021-04-12 20:34:20 +06:00
Ilya Shurumov
4cb68d8e54 - fix timer Util_GetHPCTime precision issues 2021-04-12 17:03:48 +06:00
Ilya Shurumov
51b5e84f9a - [Psy-X] fix again emscripten framerate issues 2021-04-12 14:04:26 +06:00
Ilya Shurumov
c4701ee21c - [Psy-X] added stencil, GL ES 2.0 shader fixes 2021-04-12 13:25:03 +06:00
Ilya Shurumov
df512caefa - [Psy-X] fix timer problems with Web version 2021-04-12 13:24:34 +06:00
Ilya Shurumov
1e0e80d68f - better demo content support 2021-04-11 18:42:27 +06:00
Ilya Shurumov
3b9aab5002 - [Psy-X] disable WebGL framebuffer blitting until better times
- [Psy-X] shaders refactor
2021-04-11 14:29:05 +06:00
Ilya Shurumov
55b9a7efbb - [Psy-X] fix emscripten firefox slowdown 2021-04-11 05:03:34 +06:00
Ilya Shurumov
6172b52ab8 - [Psy-X] Fix SPU-AL not working in emscripten 2021-04-11 01:45:19 +06:00
Ilya Shurumov
612b03f261 - added emscripten_sleep to some critical loops 2021-04-11 01:24:05 +06:00
Ilya Shurumov
4241a8a2c4 - [Psy-X] fix texture format issues 2021-04-11 01:19:05 +06:00
Ilya Shurumov
66e50f6823 - [Psy-X] added emscripten Asyncify sleep calls 2021-04-11 01:18:49 +06:00
Ilya Shurumov
b79bd70f50 - [Psy-X] test running iterrupt thread as animation frame 2021-04-10 20:04:22 +06:00
Ilya Shurumov
5abeec38b1 - emscripten WIP 2021-04-10 20:03:53 +06:00
Ilya Shurumov
970822aa27 - [Psy-X] fix OpenGL ES shaders 2021-04-10 19:24:41 +06:00
Ilya Shurumov
b3074fc098 - remove unused code which has been already refactored 2021-04-10 18:20:51 +06:00
Ilya Shurumov
a6757ca43a - fix of the fix 2021-04-10 18:17:16 +06:00
Ilya Shurumov
b4a265db69 - [Psy-X] reorganize platform setup headers and cleanup 2021-04-10 15:17:25 +06:00
Ilya Shurumov
b67b66a261 - emscripten compile errors fixed 2021-04-09 22:29:45 +06:00
Ilya Shurumov
eb67d47d6f - fix bad warnings 2021-04-09 22:00:28 +06:00
Ilya Shurumov
c90b4e3bfd - fix leadAI UpdateRoadPosition syntax error 2021-04-09 21:59:57 +06:00
Ilya Shurumov
51a32cbc2b - hold special car cosmetics in RAM 2021-04-09 19:01:38 +06:00
Ilya Shurumov
8a9b42ee2c - warn about CdSearchFile called doring CdlReadS 2021-04-09 18:40:34 +06:00
Ilya Shurumov
3693d5beff - option to run game using ISO/BIN 2021-04-09 15:45:09 +06:00
Ilya Shurumov
09034713e6 - added content override option for unpacked game 2021-04-09 15:44:49 +06:00
Ilya Shurumov
f2b58ba72d - [Psy-X] added PsyX_CDFS_Init for direct CD image initialization 2021-04-09 15:44:16 +06:00
Ilya Shurumov
3153a9b3e7 - remove spooler thread in favor of Psy-X LibCD
- reconfigure to use PC filesystem only for PC
2021-04-09 14:33:27 +06:00
Ilya Shurumov
93624ba60d - command names instead of IDs for XAplay 2021-04-09 14:12:20 +06:00
Ilya Shurumov
8061f27206 - [Psy-X] misc SPU changes 2021-04-09 14:11:12 +06:00
Ilya Shurumov
5136df8624 - [Psy-X] implement CdlReadS for data reading 2021-04-09 14:10:53 +06:00
Ilya Shurumov
d0f21edb94 - added simple PAL/NTSC screens auto-detection 2021-04-09 12:45:07 +06:00
Ilya Shurumov
eaa27e3930 - add filesystem defines and prioritizing PC-style access over CDFS
- fix PSX LoadfileSeg bug
2021-04-09 03:37:29 +06:00
Ilya Shurumov
8aa9251e66 - [Psy-X] stub few commands of LibCD 2021-04-09 03:36:12 +06:00
Ilya Shurumov
595e4be8ea - [Psy-X] improve ISO9660 image reading support 2021-04-09 02:57:21 +06:00
Ilya Shurumov
dcb7f4e5b6 - apply gDoOverlays check to mission related overlays 2021-04-08 16:01:38 +06:00
Ilya Shurumov
b7098f1dc0 - increase pitch for cone hitting sound 2021-04-07 23:35:48 +06:00
Ilya Shurumov
7071a4ddb5 - remove loading of menu sounds for game 2021-04-07 23:27:05 +06:00
Ilya Shurumov
9dd315736b - disable New York (now Rio) fast wheel replacement 2021-04-07 00:55:09 +06:00
Ilya Shurumov
ca93367a0e - [Psy-X] proper multi-tap indexing 2021-04-06 23:43:52 +06:00
Ilya Shurumov
f069e77aa1 - [Psy-X] fullscreen toggle only with Right Alt 2021-04-06 22:40:47 +06:00
Ilya Shurumov
adf26d0f2e - [Psy-X] added Alt-Enter to toggle fullscreen mode 2021-04-06 22:37:29 +06:00
Ilya Shurumov
9bb5333d80 - [Psy-X] improve controller support, allow slot configuration 2021-04-06 22:06:32 +06:00
Ilya Shurumov
693d802f18 - misc code changes again 2021-04-06 22:05:51 +06:00
Ilya Shurumov
50e3a602a9 - optimize animated objects 2021-04-06 02:23:39 +06:00
Ilya Shurumov
09fc3195d7 - change some declarations to support old compilers 2021-04-05 01:33:58 +06:00
Ilya Shurumov
cee65e7324 - little refactor 2021-04-05 01:08:56 +06:00
Ilya Shurumov
1d182b0cc6 - volatile all memory buffer addresses 2021-04-04 15:24:16 +06:00
Ilya Shurumov
32194a7f88 - try removing some redundant checks 2021-04-04 14:37:21 +06:00
Ilya Shurumov
10bbc39d45 - hide cheated overlays only when cheat is not enabled from menu 2021-04-01 11:30:39 +06:00
Ilya Shurumov
4bde5035e7 - added BARRIER1_TASTIC to smashables 2021-03-31 14:20:54 +06:00
Ilya Shurumov
8a0d1e4cc3 - Italian translation & QuitToSystem position fix
- implemented FEStringWidth
2021-03-31 14:20:33 +06:00
Ilya Shurumov
ae78de63ca - [Psy-X] attempt to fix broken SDL2 haptics 2021-03-31 14:19:43 +06:00
Ilya Shurumov
1086d3f937 - misc changes to cell object code 2021-03-31 14:19:24 +06:00
Ilya Shurumov
c6a5c2eea8 - optimize sky drawing (by not calling big ass ScaleMatrix) 2021-03-30 12:12:10 +06:00
Ilya Shurumov
cc7f3a972b - reverted dirty hack to display gates in Chicago 2021-03-30 10:41:07 +06:00
Ilya Shurumov
b2b7d1f796 - display gates near Chicago bridges 2021-03-30 03:45:12 +06:00
Ilya Shurumov
81ee5a3a1d - fix SetupResidentModels 2021-03-30 03:05:22 +06:00
Ilya Shurumov
460198ae27 - optimize GetFirstPackedCop and event cell iteration 2021-03-30 03:05:09 +06:00
Ilya Shurumov
4ac1515d2f - fix FE time of day 2021-03-28 16:26:19 +06:00
Ilya Shurumov
4fc19ac046 - reflections depends on wetness better 2021-03-28 03:20:05 +06:00
Ilya Shurumov
ac81375296 - miscellaneous changes & cleanups 2021-03-27 23:23:37 +06:00
Ilya Shurumov
6e08f2452b - small fix 2021-03-27 19:37:31 +06:00
Ilya Shurumov
f1d79da262 - remove Driver1 level support 2021-03-27 19:26:07 +06:00
Ilya Shurumov
e0c3667666 - frontend misc fixes 2021-03-27 19:25:46 +06:00
Ilya Shurumov
06e0cd3b9f - added day time and weather selection in frontend
- remove some badly used vars
2021-03-27 16:06:27 +06:00
Ilya Shurumov
b168a52c9b - rename MALLOC_* to D_MALLOC_* 2021-03-27 16:05:39 +06:00
Ilya Shurumov
78b9653222 - physics broadphase optimization bugfix 2021-03-27 00:31:32 +06:00
Ilya Shurumov
b42b1b6922 - DrawAllBuildings: support cut low detail models 2021-03-26 00:44:47 +06:00
Ilya Shurumov
8901de6472 - misc changes 2021-03-26 00:44:08 +06:00
Ilya Shurumov
c607f73017 - optimize hubcap storage 2021-03-25 18:42:57 +06:00
Ilya Shurumov
2431c7425f - use car cosmetics for hubcap positions 2021-03-25 18:33:05 +06:00
Ilya Shurumov
d789ae4937 - optimize car vs car collisions 2021-03-25 18:32:49 +06:00
Ilya Shurumov
2f272a5375 - [Psy-X] fix port numbers in PadGetState & PadSetAct 2021-03-25 11:39:38 +06:00
Ilya Shurumov
a235dffd3a - increase car wheel landing vibration sensitivity 2021-03-25 03:00:53 +06:00
Ilya Shurumov
46c8c7fccf - fix bugs in HandlePadVibration & HandleDualShock 2021-03-25 02:46:33 +06:00
Ilya Shurumov
171070bdc7 - [Psy-X] Pad vibration support 2021-03-25 02:46:08 +06:00
Ilya Shurumov
85f60b3196 - better 1.0 room hardcoding for Havana3DOcclusion 2021-03-25 01:10:09 +06:00
Ilya Shurumov
973f24fa5d - autodetect Havana 1.0 and 1.1 2021-03-24 23:56:18 +06:00
Ilya Shurumov
1ba93d2ecf - implement 1.1 Havana3DOcclusion
- other misc changes
2021-03-24 23:56:01 +06:00
Ilya Shurumov
c635a22d32 - misc stuff 2021-03-24 23:28:23 +06:00
Ilya Shurumov
666026f4ee - refactored sdGetCell_alpha16, RoadInCell_alpha16 2021-03-24 21:55:26 +06:00
Ilya Shurumov
060cb31b1c - improve RoadInCell readability 2021-03-24 21:55:06 +06:00
Ilya Shurumov
fb60ac1f35 - disable Havana3DOcclusion for demo levels 2021-03-24 19:36:54 +06:00
Ilya Shurumov
c8d2f70f86 - disable events #2 2021-03-24 19:32:54 +06:00
Ilya Shurumov
0fa6f3e783 - disable events on demo levels 2021-03-24 19:24:18 +06:00
Ilya Shurumov
8aeca727a4 - implement RoadInCell_alpha16 2021-03-24 19:21:23 +06:00
Ilya Shurumov
d31391ce48 - support alpha 1.6 heightmap and fix crashes on Demo levels 2021-03-24 19:02:12 +06:00
Ilya Shurumov
1f68e272ae - sky model lifted a little bit 2021-03-24 19:01:38 +06:00
Ilya Shurumov
71dfece717 - fix newest Car bomb getaway pursuit 2021-03-20 13:49:29 +06:00
Ilya Shurumov
c360158ea7 - Frontend: allow holding buttons to change volume 2021-03-20 02:04:47 +06:00
Ilya Shurumov
4421fb88b8 - auto save when quitting game 2021-03-20 02:04:04 +06:00
Ilya Shurumov
1c46d5b121 - resolve mission-requested car creation delay 2021-03-18 12:07:05 +06:00
Ilya Shurumov
0926fd4df1 - add MAX_MISSION_THRADS/TARGETS constant 2021-03-18 12:06:15 +06:00
Ilya Shurumov
e20a61b470 - describe car target flags, remove some bad hardcoding 2021-03-17 23:19:54 +06:00
Ilya Shurumov
6600d5021f - fix "Bank Job" cars blow up after cutscene 2021-03-17 20:50:31 +06:00
Ilya Shurumov
9b985fac0c - final fix for car save-restore 2021-03-16 22:11:25 +06:00
Ilya Shurumov
e526124933 - added Targa loading code 2021-03-16 14:13:04 +06:00
Ilya Shurumov
6d0cbd749c - [Psy-X] support for RGBA texture creation 2021-03-16 01:44:05 +06:00
Ilya Shurumov
c5cbfd36ea - [Psy-X] added custom DR_PSYX_TEX primitive 2021-03-16 01:43:40 +06:00
Ilya Shurumov
8b69472094 - revert back lol 2021-03-16 01:21:25 +06:00
Ilya Shurumov
6e79863e38 - disable poly subdivision when PGXP-Z is ON 2021-03-16 01:12:11 +06:00
Ilya Shurumov
db8461afb0 - [Psy-X] PGXP-Z near and far planes made for individual game adjustment 2021-03-16 00:56:40 +06:00
Ilya Shurumov
d8f5d1d4b8 - tune Z-offset 2021-03-16 00:52:46 +06:00
Ilya Shurumov
e34badb653 - fix tile/ground Z-fighting with PGXP-Z Z-scale 2021-03-16 00:36:15 +06:00
Ilya Shurumov
f37fb68768 - fix sky scaling with PGXP-Z Z-scale 2021-03-16 00:35:39 +06:00
Ilya Shurumov
5b71010fe9 - [Psy-X] implement Z offset for PGXP-Z 2021-03-16 00:35:13 +06:00
Ilya Shurumov
606951e7ed - fix InCar camera rotation in big vehicles 2021-03-15 23:26:44 +06:00
Ilya Shurumov
3bea19235b - added user replay file loading from frontend 2021-03-15 22:43:42 +06:00
Ilya Shurumov
d419f0b4ff - restore cheats and cop difficulty after replays 2021-03-15 00:00:56 +06:00
Ilya Shurumov
eebc85a024 - revert back some Reflections constant 2021-03-14 23:49:52 +06:00
Ilya Shurumov
39527ee03c - fix non-working lightsOnDelay 2021-03-14 23:49:11 +06:00
Ilya Shurumov
fd080ff062 - fix civ AI incorrect lane clamping when contining via connection 2021-03-14 23:30:45 +06:00
Ilya Shurumov
54532236b0 - [Psy-X] adjust perspectivae near clipping plane 2021-03-14 23:29:44 +06:00
Ilya Shurumov
b0d862820f - added DEBUG_PATHFINDING_VIEW switch 2021-03-14 23:29:09 +06:00
Ilya Shurumov
87d75d52f1 - fix missing overhead map transparency 2021-03-10 20:37:54 +06:00
Ilya Shurumov
677bdf2c1c - additional car light brightness and color correction 2021-03-10 17:06:34 +06:00
Ilya Shurumov
4ddf4d4c06 - tune lights sizes and brightness 2021-03-10 16:19:47 +06:00
Ilya Shurumov
8393c28f70 - misc stuff 2021-03-10 01:01:48 +06:00
Ilya Shurumov
345a4f5563 - better cell indexing 2021-03-10 01:01:38 +06:00
Ilya Shurumov
5b1ddb2d40 - fix pathfinding bug caused by dumb replacement 2021-03-05 02:09:35 +06:00
Ilya Shurumov
66685e6922 - [Psy-X] don't allow app window to be topmost 2021-03-04 20:32:25 +06:00
Ilya Shurumov
d0d3f5009a - HandleDualShock to be processed on PC version 2021-03-04 20:31:53 +06:00
Ilya Shurumov
e2e9b691a2 - overmap misc 2021-03-04 20:31:29 +06:00
Ilya Shurumov
94a666959b - fix bug with constantly appearing message in "Escape Brazillians" 2021-03-04 20:31:13 +06:00
Ilya Shurumov
981319bd2a - no more funky crashes caused by leaves, debris, smoke and sparks 2021-03-02 02:10:38 +06:00
Ilya Shurumov
d9f17077a5 - bug fix 2021-03-02 00:43:15 +06:00
Ilya Shurumov
81de80878f - [Psy-X] proper double-buffer VRAM texture and vertex buffer 2021-03-02 00:38:42 +06:00
Ilya Shurumov
6101f2373d - [Psy-X] optimized version of half floats 2021-03-02 00:08:11 +06:00
Ilya Shurumov
15ce33b102 - [Psy-X] optimized version of gte_leadingzerocount 2021-03-02 00:07:54 +06:00