Commit Graph

2893 Commits

Author SHA1 Message Date
horkthane
3a8b89af63 Assorted Joystick fixes
Implemented use of DirectInput sliders.  They were previously lumped in with axis and then not read or used at all.

Lots of use of joystick_type == 7 or joystick_type != 7 to detect if the joystick_type was none.  Changed this to a define.

The text to enumerate the types of joysticks was contained in a numbered LPARAM sheet.  Switched to using the name listed in the joystick struct.

Joysticks with more than 32 buttons would overflow the plat_joystick_state button array.  Added overflow checks.

Added a 4 axis 4 button joystick type that Win98 can pick up as a generic 4 axis 4 button controller.
2020-01-16 19:23:54 -05:00
OBattler
cf31b00d34 Fixed a bug in the SST Flash code that was causing the high Flash mapping to not be visible at all. 2020-01-17 00:36:19 +01:00
TC1995
7c15df1fd7 Added Matrox MGA (Mystique) emulation from PCem. 2020-01-17 00:24:18 +01:00
OBattler
6750e8b287 Optimized builds no longer unroll loops, produces smaller (by ~300k) and slightly faster binaries. 2020-01-16 20:50:28 +01:00
OBattler
ebf0d1ef3a Fixed MSR's on AMD CPU's - the VIA machine now works without issues with the high-speed AMD CPU's. 2020-01-16 20:49:58 +01:00
OBattler
8f17d4ed8d Fixed two warnings. 2020-01-16 20:48:10 +01:00
OBattler
4401a8d029 Ported some small fixes from PCem that only apply to the new recompiler. 2020-01-16 05:48:56 +01:00
OBattler
d516716b38 Changed the way device timers are run, fixes DesqView/X. 2020-01-16 05:48:36 +01:00
OBattler
9b80d4b151 Made the sanity fatal() milder in rom_load_linear() as well. 2020-01-16 00:40:42 +01:00
OBattler
fd71728588 Merge pull request #536 from nerd73/master
Fix the AMI ALi 1429's naming and CPUs on the old dynarec
2020-01-15 21:51:08 +01:00
David Hrdlička
a575bd7e8b fix more issues reported by coverity 2020-01-15 18:48:22 +01:00
Melissa Goad
94ba8ec38c Fix XTIDE ROM loading (#547) 2020-01-15 16:42:14 +01:00
OBattler
e44e60c660 Fixed the fourth batch of problems. 2020-01-15 05:24:33 +01:00
OBattler
932ad5595a Fixed the third batch of problems. 2020-01-15 04:58:28 +01:00
OBattler
af023ff5dd Fixed the second batch of problems 2020-01-15 03:48:33 +01:00
OBattler
fab0a368f1 Fixed a newly introduced bug. 2020-01-15 03:06:16 +01:00
OBattler
8749776144 Fixed the first batch of problems. 2020-01-15 03:04:59 +01:00
OBattler
714d77dedd Fixed a double free in the FDI2RAW code. 2020-01-15 02:46:16 +01:00
OBattler
a2867e6978 Added fall-through comments to several fall-throughs. 2020-01-15 02:43:25 +01:00
OBattler
e60b74e33b Added a sanity check to the video code. 2020-01-15 02:37:36 +01:00
OBattler
df1617f4ef Added a sanity check to the MFM image code. 2020-01-15 02:35:47 +01:00
OBattler
772a628278 Added a sanity check to the PGC code. 2020-01-15 02:34:50 +01:00
OBattler
05515187ee Various sanity measures in the Floppy image and TeleDisk codes. 2020-01-15 02:31:52 +01:00
OBattler
c5ac252eb1 Fixed two integer handling issues in the AMD PCnet code. 2020-01-15 02:28:24 +01:00
OBattler
d8e9d19cf4 Added a sanity fatal() to the SST Flash code. 2020-01-15 02:26:28 +01:00
OBattler
f3317c9d95 Fixed another potential overrun in the Discord support code. 2020-01-15 02:24:12 +01:00
OBattler
bb3c5a6f52 Fixed a potential overrun in the CD-ROM image backend code. 2020-01-15 02:22:30 +01:00
OBattler
ae9f8fb639 Fixed a potential NULL pointer dereference in the SCAT code. 2020-01-15 02:20:55 +01:00
OBattler
f5794eba11 Fixed code resulting in potentially non-NULL-terminated strings in the Discord support code. 2020-01-15 02:19:38 +01:00
OBattler
1464c0631b Fixed potential NULL pointer dereferences in the CD-ROM and Iomega ZIP codes. 2020-01-15 02:18:28 +01:00
OBattler
9f9883f8da Fixed a maintainability issue in the CD-ROM image backend code. 2020-01-15 02:16:25 +01:00
OBattler
d21ea09555 Fixed two more overruns in config.c. 2020-01-15 02:15:42 +01:00
OBattler
030059701b Fixed an overrun in the PostScript printer code. 2020-01-15 02:14:44 +01:00
OBattler
d861198960 Fixed an overrun in config.c. 2020-01-15 02:12:29 +01:00
OBattler
cdac8c1c11 Fixed win/win.c to not NULL-check that which is not NULL. 2020-01-15 02:10:52 +01:00
OBattler
9347986ebe Fixed the dynamic DLL load code to use the correct API call to free the library. 2020-01-15 01:10:41 +01:00
OBattler
47b61d5c42 Added a sanity fatal() to the x54x SCSI controller famility code. 2020-01-15 01:09:23 +01:00
OBattler
171cc75b1e Fixed another potential overrun in win/win_settings.c. 2020-01-15 01:07:06 +01:00
OBattler
21974c5fc5 Fixed an uninitialized variable in the Toshiba T1x00 code. 2020-01-15 01:05:54 +01:00
OBattler
8928ef3f66 Fixed an overrun in win/win_ui.c, a few newly introduced bugs, and a warning in the MPU-401 code. 2020-01-15 01:03:54 +01:00
OBattler
7d551af78b Fixed a bug in the IDE code. 2020-01-15 00:52:14 +01:00
OBattler
50dd49547b Increased the size of an array in config.c to fix an overrun. 2020-01-15 00:51:22 +01:00
OBattler
2b94cd2b96 Fixed potential SCSI ID overruns in the SCSI hard diks, CD-ROM, and Iomega ZIP codes. 2020-01-15 00:49:42 +01:00
OBattler
34bf074e8d Fixed a resource leak in the VHD part of the hard disk image code. 2020-01-15 00:45:15 +01:00
OBattler
1d2721b9bd Fixed a potential overrun in the Intel flash code. 2020-01-15 00:43:51 +01:00
OBattler
d5100ec287 Applied a mask to the return values of the two calls to fgetc() in the ROM code. 2020-01-15 00:42:43 +01:00
OBattler
a39bb1db2b Fixed another resource leak in win/win.c. 2020-01-15 00:41:02 +01:00
OBattler
1f4927cdce Fixed a potential overrun in the ROM code. 2020-01-15 00:39:55 +01:00
OBattler
2b5425de79 Removed a block of dead code from win/win_settings.c. 2020-01-15 00:38:29 +01:00
OBattler
8fdc175883 Turned a variable in the ESC/P code into signed. 2020-01-15 00:36:12 +01:00