Commit graph

1109 commits

Author SHA1 Message Date
Nik Henson c155ae7503 Small cosmetic changes... 2011-09-18 22:31:42 +00:00
Nik Henson 65536fd0fe Changes to allow debugging of Z80 core:
- added methods to attach/detach debugger.
- added hooks into CZ80Debug to allow debugger to control execution.
- added methods to allow reading/writing of Z80 registers.
2011-09-18 22:21:14 +00:00
Nik Henson 041e6659b3 Changes due to updates in debugger classes. 2011-09-18 22:13:20 +00:00
Nik Henson 5f82fd79c3 Small bug fix in INIFile.cpp - was not parsing negative numbers. 2011-09-18 22:03:06 +00:00
Nik Henson c8f4fbc901 Added includes for new debugger header files Musashi68KDebug.h & Z80Debug.h 2011-09-18 22:01:35 +00:00
Nik Henson e8e02ba685 Changes to debugger classes:
- updated debugger classes to compile again with all recent changes.
- improved debugger classes to allow them to work in multi-threaded emulator and be able to handle CPUs on different threads.
- added debug classes for new Z80 and Musashi 68K CPU cores.
- added logging of cycle counts and frames.
- moved all Supermodel specific code & configuration to CSupermodelDebugger.
- added all Model 3 CPUs (PPC, sound board 68K, DSB 68K/Z80 and drive board Z80) to CSupermodelDebugger.
- added persisting of custom entry points in saved debug state to CCodeAnalyser.
- fixed bug with listing I/O ports in CConsoleDebugger and added displaying of cycle counts and CPU speeds when listing CPUs.
2011-09-18 21:59:23 +00:00
Nik Henson b9430cd988 Changes to input system:
- Joystick axis saturation values can now range from 1-200 rather than just 1-100.  This lets the user make axis less sensitive, if required.
- Added joystick axes calibration menus to -config-inputs.
- Moved DirectInput & XInput feedback settings out of CDirectInputSystem and into COSDConfig (so that they can be configured per-game).
- DirectInput mode now only grabs background access to keyboard, mice and joystick when configuring inputs, otherwise it only grabs foreground access.
Other changes:
- Main.cpp now ensures all Model3 threads are paused before shutting down.
2011-09-18 21:44:40 +00:00
Bart Trzynadlowski f0697dbc84 - Tweaked formatting of help message 2011-09-17 23:42:42 +00:00
Bart Trzynadlowski 45603b5549 - Tweaked comments in Supermodel.ini
- More work on README.txt
- Tweaked some error/info messages.
2011-09-17 23:41:12 +00:00
Nik Henson 58954ee4cc Small updates:
- added methods to CModel3 to access sound board and drive board
 - added methods to CSoundBoard to access 68K and DSB (if attached)
 - added methods to CDSB1 & CDSB2 to access Z80 & 68K respectively
 - small code tweak in DriveBoard.cpp
 - comment tweaks in Model3.h & Model3.cpp
2011-09-15 21:10:38 +00:00
Bart Trzynadlowski 1629cd711c - Updated README (far from finished).
- Music volume cannot be changed if game has no DSB.
- Extra hardware (DSB, drive board) is printed in information display when ROM is loaded.
2011-09-15 07:13:19 +00:00
Bart Trzynadlowski 9ff9f3c28f Now always saves feedback effect configuration (this way, defaults do not have to be defined in multiple places). 2011-09-14 23:29:04 +00:00
Bart Trzynadlowski ab719720c7 Renamed drive board ROMs to MAME's naming convention. 2011-09-14 22:46:15 +00:00
Bart Trzynadlowski 8276a4452f -Updated copyright information in Makefiles.
-Updated README.txt revision log.
2011-09-14 19:09:23 +00:00
Bart Trzynadlowski 2f5bf43bda Updated copyright information and added headers to all remaining files except debugger. 2011-09-14 19:08:43 +00:00
Bart Trzynadlowski 5bf4a6d52b - Added mutex for MIDI FIFO access to SCSP.cpp. 2011-09-14 07:38:56 +00:00
Bart Trzynadlowski d200dff89e - Changed EmulateSCSP -> EmulateSound and -no-scsp -> -no-sound.
- Changed gear shifting behavior: neutral gear has its own button now.
- Removed SUPERMODEL_SOUND.
- DirectInput is the default input system for Windows now.
- Multi-threading is on by default, replaced -multi-threaded w/ -no-threads.
- Made crosshairs larger and more visible.
- Added Nik to co-author list and began updating file copyright notices.
- Fixed Virtua Striker 2 input names (player 2 inputs end with the number 2 instead of 1).
- Added documentation to a Docs/ subdirectory.
- Exported all default input configurations to Supermodel.ini and added that to the repository. Internally, Supermodel initializes all controls to "NONE" now.
2011-09-14 06:16:22 +00:00
Nik Henson d34223ebd2 Improved way constant force and vibrate effects are combined to control left and right vibration motors under XInput 2011-09-13 22:50:50 +00:00
Nik Henson f6af182467 Added comment 2011-09-13 22:46:21 +00:00
Nik Henson ca8d838826 Added stopping of all force feedback effects on reset (just in case some were playing at that point) 2011-09-13 22:45:32 +00:00
Bart Trzynadlowski c10e839dc0 Added a scissor box to clip viewable area. Prevents garbage in the "overscan" areas due to renderer creating viewports that exceed intended display area. 2011-09-13 06:30:42 +00:00
Bart Trzynadlowski fdedc60f84 Constant force commands for XInput devices fixed so that they will stop when 0 force is applied. 2011-09-13 02:39:48 +00:00
Bart Trzynadlowski 02c0c32398 Fixed a possible INI file problem: unterminated strings will end at a newline now. 2011-09-12 23:09:06 +00:00
Nik Henson e223d388eb Driveboard changes:
- added notification message if drive board is disabled when loading incompatible save state
- removed some superflous print statements, but have kept in printing out of force feedback commands for now (which have also been made more visual)
- made sure that feedback state is reset in SendStopAll()
2011-09-12 21:07:03 +00:00
Nik Henson 75d446c272 Changes to Audio.cpp:
- audio buffer is now kept as full as possible with new audio buffering method rather than just half full like before (this is okay now that buffer overruns have been eliminated)
- altered minimum size of audio buffer so that audio still works with a zero latency setting (obviously there will still be some latency)
2011-09-12 21:03:16 +00:00
Nik Henson b0bda2c356 Added note to command line options indicating that force feedback is experimental still 2011-09-12 20:08:50 +00:00
Nik Henson dc368c1edd Added configuring of DirectInput and XInput force feedback parameters via config file 2011-09-12 20:05:58 +00:00
Nik Henson 8dfb033034 Changed drive board logic slightly for stopping vibrate effect as wasn't always cancelling the effect in Daytona 2 2011-09-12 19:55:53 +00:00
Bart Trzynadlowski e6f19c40ef Fixed 68K save state problem: pending interrupts were not being saved, sometimes causing the DSB2 to take an invalid interrupt (from the sound board 68K) after loading a save state. Save states are no longer compatible with previous revision. 2011-09-12 18:14:49 +00:00
Bart Trzynadlowski cf73207c98 - Nik's new decoupled audio code with fixes to minimize overruns.
- VBlank timing: increased to 20% of a frame.
2011-09-12 05:43:37 +00:00
Nik Henson 4c18925679 Fixed bug with loading/saving of state - it wasn't persisting the ram array properly 2011-09-11 18:55:13 +00:00
Nik Henson 5b5d24293f Fixed bug which was crashing emulator when loading/saving state of games that do not use the drive board 2011-09-10 21:00:33 +00:00
Bart Trzynadlowski 0716285fc2 Fixed error reporting for -input-system option. 2011-09-09 21:59:23 +00:00
Bart Trzynadlowski e724d0ec0b Fixed error message when multiple files detected on command line. 2011-09-09 20:41:55 +00:00
Nik Henson 0495421cbc DriveBoard changes:
- fixed bug in SendConstantForce which was sending incorrect values at times
- removed friction effect for now, until can determine its exact command seq
- added checking of compatibility of saved state and temporary disabling of drive board if not compatible
2011-09-09 07:18:52 +00:00
Bart Trzynadlowski b76b43cc93 - Fixed drive board. Now determines whether it is attached and enabled in Reset(). 2011-09-08 17:58:25 +00:00
Bart Trzynadlowski 11d1d61bc2 - Removed BOOL and replaced it with native C++ type, bool.
- Removed TRUE and FALSE, changed to 'true' and 'false' keywords.
2011-09-08 06:34:18 +00:00
Bart Trzynadlowski abd86a5624 - Cleaned up game names (primary sets no longer have revision labels in title).
- Added volume controls to UI.
- Renamed "Sega Rally Controls" to "Sega Rally/Dirt Devils Controls" (even though Dirt Devils has no hand brake).
- Hooked up gear shifting and view change for Dirt Devils.
- Removed debug printf()'s from DSB.cpp.
- Removed debug printf() from Real3D.cpp.
- Disabled assertions in SCSPDSP.cpp.
- Converted all error messages in Amp library to Supermodel format.
2011-09-08 05:08:16 +00:00
Bart Trzynadlowski 4040b7eeee Forgot to disable drive board if ROM not loaded. 2011-09-08 01:13:25 +00:00
Bart Trzynadlowski 70ec09de92 - Added drive board ROM loading.
- Changed EnableFFeedback -> ForceFeedback to be more consistent with the other options.
- Updated help text.
2011-09-08 01:07:06 +00:00
Bart Trzynadlowski cd5bf4c1dd - Updated help text.
- Corrected a typo: EnableFeedback -> EnableFFeedback.
2011-09-07 16:44:20 +00:00
Nik Henson 532c6e7edb Added method to fetch current PC value 2011-09-07 07:36:08 +00:00
Nik Henson 0a512d79eb Added -force-feedback command line option 2011-09-07 07:28:34 +00:00
Nik Henson d7ee278f69 Added handling of drive board (if attached) 2011-09-07 07:21:56 +00:00
Nik Henson 07b94f6c32 Added drive board 2011-09-07 07:13:59 +00:00
Nik Henson 4948c66a67 Added drive board header 2011-09-07 07:08:32 +00:00
Nik Henson d08ba050bd Added in drive board config 2011-09-07 07:07:19 +00:00
Nik Henson 5c8af8d259 Initial version of drive board (still work-in-progress) 2011-09-07 07:06:40 +00:00
Nik Henson c5d585440c Changes to CDirectInputSystem:
- Added parameters for DirectInput and XInput force feedback effects (although still need to add code to persist them in configuration file)
- Added extra friction feedback effect and tidied up existing effects
2011-09-06 19:05:22 +00:00
Nik Henson 48e98ff75d Added friction effect to feedback enumeration 2011-09-06 18:56:25 +00:00