Commit Graph

3615 Commits

Author SHA1 Message Date
thrust26 1dcd960b8d add Lightgun class to Libretro Stella.vcxproj 2019-12-31 11:18:05 +01:00
thrust26 b364a4224f add Lightgun class to Libretto Makefile.common 2019-12-31 11:15:13 +01:00
Thomas Jentzsch e3ef2ee31c replace magic number for Lightgun 2019-12-31 00:25:24 +01:00
Stephen Anthony ef45cc5037 Added Lightgun class to Xcode project. 2019-12-30 19:00:49 -03:30
thrust26 9a7dc74aea Merge remote-tracking branch 'remotes/origin/feature-lightgun' 2019-12-30 23:08:47 +01:00
Stephen Anthony 5762724399 Add ROM properties from Omegamatrix of AtariAge. 2019-12-30 18:32:21 -03:30
thrust26 8bf1f0c404 code cleanup
added Light Gun to docs
2019-12-30 23:00:49 +01:00
thrust26 86e01bc8b9 apply screen scaling to lightgun controller 2019-12-30 22:37:50 +01:00
thrust26 1295bd5cf6 get lightgun working preliminary 2019-12-30 17:27:28 +01:00
thrust26 24faa4955c Merge branch 'master' of https://github.com/stella-emu/stella into feature-lightgun 2019-12-30 09:48:04 +01:00
thrust26 5330dcdba6 add missing files 2019-12-30 09:47:31 +01:00
thrust26 bfb5bee208 make user aware of grab mouse limitations 2019-12-30 09:46:46 +01:00
thrust26 dbb4328ad5 initial work on lightgun 2019-12-30 09:11:46 +01:00
Stephen Anthony 767f952e4e A few cleanups missed in the previous commits. 2019-12-29 21:08:50 -03:30
Stephen Anthony 733db7250a Fix typo that caused entering the debugger to crash. 2019-12-29 20:22:05 -03:30
Stephen Anthony 3e3b9b3d50 Final updates for default initialization.
The debugger is crashing, so now the debugging begins :)
2019-12-29 20:12:37 -03:30
Stephen Anthony 54de3415ea More default initialization updates, in the process making c'tors smaller/non-existent.
I've already found a few potential bugs where instance variables weren't being initialized at all.
2019-12-29 18:36:56 -03:30
Stephen Anthony 0a9b289b44 libretro: Fix bug with using defaulted vs. user-defined c'tor.
I think this is a compiler issue with that build environment, since this is legal C++11 code.
2019-12-29 10:02:54 -03:30
thrust26 d0d17b4ded fix hat mapping (see #552) 2019-12-29 10:51:00 +01:00
Stephen Anthony bc75a2ee83 Fix size_t issue. 2019-12-28 22:44:26 -03:30
Stephen Anthony 0c6f8bf381 More default initialization updates. 2019-12-28 22:36:40 -03:30
Stephen Anthony b2c70d7677 First pass at moving to default member initialization.
This fixes potential issues with forgetting to initialize in c'tors.
2019-12-28 21:14:52 -03:30
Stephen Anthony 04fe64568a Use runtime_error exceptions everywhere in ZipHandler. 2019-12-28 19:01:39 -03:30
Stephen Anthony ca1207344c Convert PNGLibrary to use vector instead of raw pointers.
This is just as efficient, but also safer.
2019-12-28 17:44:50 -03:30
Stephen Anthony 041af0736c And yet more std::array conversions. Also a fix for overlaid UI message not being displayed. 2019-12-28 15:46:38 -03:30
Stephen Anthony 12fa260137 A few fixes I missed in the last commits. 2019-12-28 15:01:28 -03:30
Stephen Anthony 682a35bf72 libretro: Fix fallout from latest changes. 2019-12-28 00:50:05 -03:30
Stephen Anthony 36683adec1 And yet more fixes for warnings from clang-tidy. 2019-12-28 00:45:09 -03:30
Stephen Anthony e49d401887 Activate changes from stella.pro. 2019-12-27 23:08:03 -03:30
Stephen Anthony a06c44d7a6 Switch to using size_t for all file access.
Note that we'll never actually need this, but I got tired of constantly casting all over the place.
2019-12-27 21:05:38 -03:30
Stephen Anthony 234ebb5373 Fix for warnings from Visual Studio. 2019-12-27 20:20:05 -03:30
Stephen Anthony 0c0f732e5f More conversions of C-style to std::array.
That's it for a little while; getting tired now ...
2019-12-27 19:22:09 -03:30
Stephen Anthony f9b3d0198a Updated Xcode project for addition of PhosphorHandler class. 2019-12-26 20:47:01 -03:30
Stephen Anthony b07d8870ae libretro: Updated VS project file for class addition. 2019-12-26 20:39:53 -03:30
Stephen Anthony 96693222c7 Updated Visual Studio for addition of PhosphorHandler class. 2019-12-26 20:37:45 -03:30
Stephen Anthony 74a2e4b9a9 Refactored phosphor calculations into a new PhosphorHandler class.
This class is accessible from both TIASurface and AtariNTSC, so there's no more code duplication.
Testing is required to see if this results in any slowdowns.  It shouldn't, since the relevant code is inlined ...
2019-12-26 20:26:39 -03:30
Stephen Anthony bf3f146076 libretro: Fix error with user-defined vs. default c'tor. 2019-12-26 17:53:26 -03:30
Stephen Anthony b51fd4d07a Fix crash when combomap isn't defined in config file. 2019-12-26 17:51:08 -03:30
Stephen Anthony b276a1e6a7 Huge refactoring of the palette-related code.
This has been developed ad-hoc over the years, with different subsystems (TIA, UI, phosphor, Blargg, etc).  This is an attempt to consolidate the code, and also move to C++-style arrays.
Still TODO is look into refactoring phosphor stuff out of TIASurface and AtariNTSC classes, since the code is exactly the same, and doesn't really belong in either.
This is a major change, so some testing is definitely required.
2019-12-26 17:28:55 -03:30
Stephen Anthony df4748417d A few more cleanups from clang-tidy. 2019-12-26 11:55:25 -03:30
Thomas Jentzsch 40f69bc4a8 add Draconian to properties 2019-12-26 09:53:21 +01:00
Stephen Anthony a061356202 Fix potential divide by zero. 2019-12-25 21:49:07 -03:30
Stephen Anthony b6fc984690 Fix size_t vs int issue. 2019-12-25 20:53:21 -03:30
Stephen Anthony 4c8c08639a More fixes for warnings from clang-tidy.
Mostly converting C-style arrays to C++.
2019-12-25 20:40:01 -03:30
Stephen Anthony e09634cb56 First pass at converting Blarrg code to proper C++. This mostly involves getting rid of macros. 2019-12-25 20:39:04 -03:30
Stephen Anthony 9813173841 Activate properties from last commit. 2019-12-25 14:15:39 -03:30
Thomas Jentzsch 173560f788 Merge branch 'master' of https://github.com/stella-emu/stella 2019-12-25 17:49:46 +01:00
Thomas Jentzsch 0c0c311e84 update properties for HES dual games. 2019-12-25 17:49:18 +01:00
Stephen Anthony 5d59be800e Use logical OR instead of bitwise OR. 2019-12-25 13:07:03 -03:30
Stephen Anthony 37aff7ff69 A few items that slipped through the last commit. 2019-12-24 22:26:44 -03:30
Stephen Anthony 730b2970c8 Many more fixes for suggestions from clang-tidy. 2019-12-24 22:11:36 -03:30
Stephen Anthony 198ab08647 Replace 'atoi' with the C++11 equivalent: 'stoi'. 2019-12-24 17:58:46 -03:30
Stephen Anthony eeb8363df6 More fixes for warnings from clang-tidy.
Sorry if these are all over the place; I'm fixing them in the order that the tool finds them.
2019-12-24 17:50:27 -03:30
Stephen Anthony 8e1791b801 Handle case where a ROM doesn't have a name in its properties entry. 2019-12-24 16:52:44 -03:30
Stephen Anthony 99872a3b35 Updated ROM properties to RomHunter v16. 2019-12-23 22:32:00 -03:30
Thomas Jentzsch cdf2ad1e13 fix for #552 (analog/digital part) (TODO: test!) 2019-12-23 17:08:51 +01:00
Stephen Anthony 5a283a0140 Deadcode elimination in M6502 emulation.
A minor improvement, but every little bit counts.
2019-12-22 23:33:20 -03:30
Stephen Anthony 8bbabe3c5d More cleanups from clang-tidy. 2019-12-22 22:46:27 -03:30
Stephen Anthony 2944ee7564 Convert joystick handler to use vectors and eliminate raw new/delete. 2019-12-22 21:43:50 -03:30
Stephen Anthony 2ec91dbe6b Remove virtual designation for FSNode::setFlags, since it's never needed. 2019-12-22 21:00:50 -03:30
Stephen Anthony 1223958d91 Move all logging facilities from OSystem directly into the Logger class. 2019-12-22 17:36:06 -03:30
Thomas Jentzsch 60c9839541 add "Mickey" to properties 2019-12-22 18:39:07 +01:00
Stephen Anthony 099bff3d26 Some more refactoring based on advice from clang-tidy.
- Eliminate virtual calls in c'tor/d'tor
- Eliminate some redundant calls in d'tor
- Don't reinitialize blitter unless absolutely necessary
2019-12-22 11:56:24 -03:30
Stephen Anthony 6ec46b9836 Fix more fallout from code refactoring. 2019-12-22 10:18:03 -03:30
Stephen Anthony 19c05e878c Fix compile error in Windows port from recent code refactoring. 2019-12-22 10:14:39 -03:30
Stephen Anthony 67273e9df8 Eliminate superfluous 'setDirty' call. 2019-12-21 22:41:01 -03:30
Stephen Anthony fdee5ba642 Some cleanups suggested by clang-tidy. 2019-12-21 22:38:01 -03:30
Stephen Anthony 7d17df05dd Changed Base::Format to Base::Fmt, and made it a scoped enum. 2019-12-21 21:27:18 -03:30
Stephen Anthony 06094820b6 Remove redundant comment. 2019-12-21 19:29:30 -03:30
thrust26 b1b9e493f4 removed ARM RAM dump code again, redundant 2019-12-21 15:17:32 +01:00
thrust26 c65b9c6709 fix MessageBox height calculation
add first 0.5K RAM to ARM fatal error message
2019-12-21 11:59:07 +01:00
thrust26 99ec454fd4 add missing register 0 to ARM dump 2019-12-21 08:20:19 +01:00
Stephen Anthony ec470d17cb libretro: Fix VS project for recent removal of ystart handler. 2019-12-20 10:57:51 -03:30
Stephen Anthony d89e658d68 Fix minor warning in Xcode. 2019-12-20 10:23:54 -03:30
Stephen Anthony 578c19a588 libretro: Fix build file for recent removal of ystart handler. 2019-12-20 09:16:48 -03:30
Stephen Anthony 68a2ca3a24 Removed all reference to 'ystart' from built-in properties database.
Note that the info is still in 'stella.pro', until we finalize what the values should be.
Then we will update the built-in properties again.
2019-12-19 18:42:23 -03:30
thrust26 1b14ed21a9 correct silencing fix 2019-12-19 19:54:09 +01:00
Christian Speckner 2b0204512e Add missing initialization. 2019-12-19 19:28:33 +01:00
Christian Speckner ef10482291 Don't try to access the palette before it has been initialized. 2019-12-19 18:39:39 +01:00
thrust26 fccee3e672 silence compiler 2019-12-19 18:34:21 +01:00
thrust26 b0efaa6830 adjust VS project 2019-12-19 18:14:16 +01:00
thrust26 2df61b542b Merge branch 'master' of https://github.com/stella-emu/stella 2019-12-19 18:13:50 +01:00
thrust26 b306f35d54 updated Super Soccer 2019-12-19 18:13:24 +01:00
Christian Speckner c324f1ce82 Safety belt. 2019-12-19 18:12:20 +01:00
Christian Speckner 84fe53c673 Adapt XCode project file. 2019-12-19 18:08:43 +01:00
Christian Speckner ec35026329 Ystart is sleeping with the fishes. 2019-12-19 18:01:54 +01:00
thrust26 356f06598d add hotkey for toggling interpolation (ctrl+i) 2019-12-18 20:38:52 +01:00
Stephen Anthony 8782a39ce7 Fix minor warning from clang. 2019-12-18 15:56:39 -03:30
thrust26 8a93e70cc9 reverted video dialog and settings changes 2019-12-18 19:55:58 +01:00
thrust26 7ae5b49633 small improvement on FC bankswitching 2019-12-18 19:12:04 +01:00
Stephen Anthony dbfc6ef3a5 Fixed minor issues reported by cppcheck. 2019-12-17 21:06:08 -03:30
Christian Speckner d0054b831d Precisely align scanlines with TIA scanlines. 2019-12-17 22:51:08 +01:00
Christian Speckner e5159ca59c Be ready for fractional scaling factors, performance improvements. 2019-12-17 21:31:08 +01:00
Christian Speckner 7b291db0d5 Native retina support. 2019-12-17 19:34:41 +01:00
Christian Speckner c38febc2c1 Update scaling in video dialog instead of framebuffer. 2019-12-17 17:16:37 +01:00
Christian Speckner d9effb80b8 Rename HqBlitter -> QisBlitter 2019-12-17 17:16:37 +01:00
Christian Speckner 032f0b0b7c Re-add filter setting to PNG metadata. 2019-12-17 17:16:37 +01:00
Christian Speckner 5977c8561a Connect tia.filter. 2019-12-17 17:16:37 +01:00
Stephen Anthony fd136e0d49 First pass at converting part of 'ystart' to 'vcenter'.
The logic here is somewhat convoluted.  I suggest renaming 'ystart' to 'startline',
and having it internal to TIA only.  The 'vcenter' option will then modify that value
from certain default constants (for NTSC and PAL).
2019-12-16 23:26:57 -03:30
thrust26 c2fc39f44d Reimplement y-start as "V-Center" in dialog and messages
Limit v-center range to +/-15 pixel
2019-12-16 12:41:39 +01:00