Commit Graph

1393 Commits

Author SHA1 Message Date
stephena 32f8c8ba2f Fixed segfault when a ROM had per-frame cheats enabled. Apparently the
cheats were being evaluated even after the console was deleted.  Also
moved saving of cheats out of the Console d'tor.  I never liked that
required functionality was in a d'tor; it felt sort of hacky.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1257 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-31 17:21:17 +00:00
stephena f0a3700e53 Fixed issue with two F8 cartridges that have to start in the opposite bank.
It wasn't worth adding another bankswitch type for these, since they're
basically an anomoly, and I don't think any others exist like it.

Updated "Air Raid" ROM properties.  This is a PAL ROM, no matter what
the other emulators say.  The only way I'll change it at this point is to
see the real cartridge in action.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1256 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-31 02:16:37 +00:00
stephena fc4e4b7b17 OK, some huge changes across the board, so lets see if I get it all:
After much request, added ability to access the settings menu from the
ROM browser dialog.  This menu now contains almost all items that can
be selected in Stella, and can be accessed in-game as before.

Completely removed pause functionality from the core code.  It made
sense back when Stella was a single-mode program: there were two modes;
emulation and pause.  Now that there are other event modes, the
EventHandler state machine is getting too complicated.  If you want to
pause, you can simply enter one of the in-game menus.  Related to this,
when the app is minimized, Stella enters the menu dialog state.
Previously, minimizing the app caused a pause, but since there was no
onscreen feedback, many people assumed the app locked up.

Added centering to all Dialog boxes, which is done dynamically, as they're
placed on the dialog stack to be drawn to the screen.

Cleaned up the API of Console/FrameBuffer/OSystem classes wrt to palettes
and timing.  Parts of each were being done in different classes; now it
should be more consistent.

Started infrastructure for user-selectable UI palettes.  For now, there's
no way to change it in the GUI, and it defaults to the normal palette.
Eventually, there will be several choices selectable from an in-game
menu.

Removed '-channels' commandline argument, since that feature can be
set from the ROM properties.

Added '128' to the choices for fragment size in AudioDialog.

Tweaked the OpenGL dynamic loading code to test both the given GL
lib, and if that fails to use auto-detection.  It seems in the OSX port,
the first approach works for some people, and not the other (and vice-versa),


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1255 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-30 22:26:29 +00:00
azaballa 16f99140d2 Just because the 2X accepts 128 frags, doesn't mean we should use them. ;)
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1254 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-30 20:23:51 +00:00
stephena 6825938310 Fixed bug in GP2X snapshot code.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1253 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-29 18:19:50 +00:00
stephena 00c0117c51 OK, now the vertical centering should work. I hope ...
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1252 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-29 18:01:17 +00:00
stephena a24a4776e9 Another try at the GP2X framebuffer vertical centering. Maybe third times
a charm??


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1251 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-29 16:52:43 +00:00
stephena cf998fb59f Fixed missing define for GL_TEXTURE_RECTANGLE_ARB in OpenGL code.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1250 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-29 15:16:47 +00:00
stephena 60af2ffe33 Fixed FrameBuffer crash in GP2X port.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1249 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-29 15:15:18 +00:00
azaballa a7d4658634 The 2X can handle a 128 fragsize which improves sound quality over previous 2X releases.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1248 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-29 02:32:11 +00:00
stephena 627efcb4fa Fixed bug with setting developer properties from the commandline not
having any effect.

Finished removing all TIA tweaks from ROM properties; the defaults should
now me much more authentic.  Related to this, completely removed the
'tiadefaults' argument and all functionality.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1247 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-28 20:40:01 +00:00
stephena 705c97fd4f Some changes across the board. Lets see if I can remember them all:
Fixed annoying timing bug that's bothered me since the 2.0 release.
Exiting a ROM and starting another one was causing the new ROM to not
start playing sound from the beginning.  This was made worse by the new
display format auto-detection logic.  Basically, the main event loop
wasn't being reset from one ROM to another.

Moved OSystem::mainLoop() back into the actual OSystem class, and
removed it from the UNIX/OSX/Win32/GP2X ports.  It's still virtual,
though, just in case a port wants to handle all timing itself.

Started a massive purge of all enhanced XStart/YStart values from
the internal properties.  I'll also be removing the 'tiadefaults'
argument, and leaning towards a more authentic emulation look
and feel.

Second pass at image centering in the GP2X port.  Now we only
do vertical centering, and only on images that won't be scaled
in hardware.

Reworked creating a new Console.  It now takes in the properties and
Cartridge required for operation.

Re-added changeWidth() and changeHeight() console functionality, since
it's proved to be very beneficial.

Cleaned up getting info about a cartridge.  It was sort of hacky before.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1246 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-28 18:31:27 +00:00
stephena 485f9200a4 Added centering of the image to the GP2X port. Note that I haven't
compiled this code yet, so there's no guarantees :)


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1245 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-26 23:53:27 +00:00
azaballa 0724c20181 Added ifndef for GP2X 16 bit sound.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1244 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-26 22:57:31 +00:00
azaballa 4b5324b98f Fragsize of 256 seems to sound better.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1243 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-26 22:00:46 +00:00
stephena f7b9687d8c Tweaked cart autodetection code wrt '3E' bankswitching. Since a '3E' cart
is almost always a '3F' cart as well, it makes sense to only test for it
when we already know the cart is probably '3F'.  As well, the pattern for
a '3F' cart results in a lot less false-positives than '3E'.

Added '-colorloss' commandline argument and 'Ctrl-l' key shortcut.  This
enables or disables the PAL color-loss effect, and will default to off
(similar to z26 functionality).  Still TODO is add a UI entry for it.

Fixed a bug in the calculation of PAL color-loss values; it wasn't actually
giving grayscale data, but something with a greenish tint.

Updated PAL autodetection code to run for 60 test frames instead of 20,
and ignore the first 30.  This helps when loading SuperCharger games,
since the BIOS code always runs at NTSC rates, even if the ROM really
should be PAL.  For now, this means it only works when 'fastscbios' is
enabled, and the BIOS runs in 30 frames or less (vs. needing 250+ frames
for normal speed!).  I'm strongly leaning to just making 'fastscbios'
a non-editable default.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1242 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-26 17:06:01 +00:00
azaballa 09c3a38a0d Peeled back last change. I vaguely recall a conversation a year ago about not needing accurate timing.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1241 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-26 04:35:36 +00:00
azaballa 5eba721e55 Updated OSystemGP2X class to parallel UNIX target.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1240 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-26 02:20:23 +00:00
stephena 267f8a22a3 Fixed toggling between display formats, and saving them in GameInfoDialog.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1239 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-26 02:09:29 +00:00
stephena 5593970b56 Added autodetection of NTSC or PAL display format, based on the number
of scanlines in a 20-frame run of the Console.  This should finally quiet
those idiots that say 'Stella sucks' because it's too slow (when in fact
it just didn't know a ROM was PAL).  This will only detect NTSC and PAL;
PAL60 will be autodetected as NTSC.  AFAIK, there's no way to detect
this, so it will still need to be defined in the properties.

Added autodetection logic for E0 and E7 bankswitching types.

Added '-rominfo' commandline argument, which gives a semi-detailed
description of the given ROM, including cart type and display format.

Yes, I'm a geek; this is what I spend Christmas day doing :)


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1238 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-26 00:39:44 +00:00
stephena deacea8437 Improved cart auto-detection logic. There's still quite a bit to do,
and I'm not sure if some of the remaining types can even be autodetected.
I only wish I'd had time to include this in the 2.3 release.

Bumped version number to 2.3.01, and starting all over again.  Hopefully
more help will find its way to me this time :(


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1237 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-24 17:13:10 +00:00
stephena 61ef87830e Updated Win32 VC project for debugger expression changes.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1236 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-23 15:17:11 +00:00
stephena f9811fa0ae Oops, forgot this in the last commit (related to debugger expression
consolidation).


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1235 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-23 15:11:19 +00:00
stephena 1344ad67c9 Cleaned up the debugger files a great deal. There was no need to have
each different Expression class in a separate file, especially since they're
mostly only one-line methods.  So now all the classes are placed in
DebuggerExpressions.hxx.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1234 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-23 15:08:46 +00:00
stephena 0f8c5a5046 Fixed segfault when using '-type' and the type wasn't supported by
Stella.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1233 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-22 23:14:39 +00:00
stephena a87433d557 Oops, pressed the wrong key on the last commit. I meant to say:
Tweaked the settings so they're more familiar to the user.  Specifically,
'tiadefaults' is not on by default.

Fixed issue with using "[..]" in Win32 when at the root of a drive.  In
that case, the parent is the listing of all drives.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1232 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-22 22:39:34 +00:00
stephena 1e0edb95e2 Fixed issue with 'tiadefaults' only setting defaults for width and height.
It now uses the defaults for xstart and ystart as well.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1231 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-22 22:32:49 +00:00
stephena 3a9ac632da Fixed issue with softwsre rendering in fullscreen mode in the Win32 port.
Hopefully this won't slow things down too much for other platforms.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1230 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-22 21:47:27 +00:00
stephena 94e6bd66a9 Some last minute fixes for building in Win32.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1228 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-20 20:36:26 +00:00
stephena 1dd1e14af4 Oops, forgot this in the last commit.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1227 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-20 12:43:56 +00:00
stephena ed4e219a43 Final version bump to 2.3. I suspect there may still be problems with
the OSX port, but I'm not getting feedback, so I'll do a release and then
deal with the complaints :(


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1226 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-20 12:42:56 +00:00
stephena a0df5ec2bc Completely removed FrameBuffer::cls() functionality, since it was causing
problems in the OpenGL code, and wasn't needed in the software code.
The only port that needs it is the GP2X, so it makes sense to take care
of that functionality directly in FrameBufferGP2X (which it now does).

Added ROM properties for a few homebrew ROMs from AtariAge.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1225 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-19 12:40:31 +00:00
stephena 761afadb1c Hopefully fix the OpenGL crash bug in OSX. I still don't know what's
causing it, but it seems to be related to cls().


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1224 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-18 18:35:26 +00:00
stephena 025d8b9cdd Removed SNAPSHOT_SUPPORT define and all functionality from the codebase.
Snapshot support is now always included, since it doesn't require libpng
and is only about 100 lines of code.  If your particular port doesn't want
it, then don't bind an event to it :)

Removed changeWidth() and changeHeight() TIA functionality, in preparation
for the release after this one when it will disappear completely from the
core.  Current ROM's which have these properties set will still function,
as long as 'tiadefaults' isn't turned on.  Of course, one can still edit
the properties manually, but I'd like to discourage it.

Updated event strings in EventHandler.  We now consistently refer to the
first joystick/paddle/driving controller/etc as zero.

Some more updates to the manual.  I think it's pretty much complete at
this point.

Bumped version number to '2.3_rc1'.  I'm basically finished at this point.
All that's left to do is make sure the weird OSX crashes some people are
having are fixed, and I'm awaiting feedback on that one.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1223 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-18 16:44:40 +00:00
stephena f53d93446b Fixed issue with 'runto' debugger command sometimes not exiting. It can
now only run for 10000 disassembled instructions, and then it will exit.
Related to this, removed the hack that let the 'runto' command
continuously run while updating the debugger, since it was buggy and didn't
really work anyway.  So if 'runto' doesn't find what it needs in 10000
instructions, you'll need to run it again.  Perhaps for a future release,
the number of instructions can be user-defined.

Made 'gl_vsync' not be the default for Unix/Linux systems, since very few
systems support it though SDL yet.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1222 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-18 14:01:58 +00:00
stephena 43d942c015 Made onscreen messages appear in any event mode.
Tweaked the settings for Unix/Linux.  Most GL implementations for those
systems use Mesa, which is currently broken wrt vsync support.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1221 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-18 12:53:33 +00:00
azaballa e2184561e9 Fixed the issue. Apparently my sdl-config script was pointing to an old set of SDL libs. I thought I had changed the path before, but what caused it to revert now is anyone's guess. Hope it's just gremlins and not bandits.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1220 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-16 23:36:42 +00:00
azaballa d4c4549d32 X and Y got swapped somehow... peculiar.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1219 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-16 23:10:54 +00:00
stephena e6ea870637 Moved settings file version to Version.hxx, since I don't want to have to
recompile the whole codebase when it changes :)


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1218 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-15 20:22:29 +00:00
stephena 7b84459e83 Added check for valid settings file to OSX code, which doesn't save its
settings in an ini file, but uses its own plist.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1217 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-15 17:52:03 +00:00
stephena e5275949d4 Sorry for another huge commit :)
Changed all functions #define'ed in bspf.hxx to be named more consistently
(BSPF_functionname...), to make it more obvious what they are.

Changed 'DEVELOPER_SUPPORT' to 'DEBUGGER_SUPPORT' everywhere.  Originally,
developer support was to encompass more than just the debugger, but since
there's no longer a reason to exclude the other stuff (due to most of it
being very useful even for non-developers), it makes sense to rename the
option.  Those ports using 'configure' will need to update the arguments
used.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1216 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-15 16:43:12 +00:00
stephena b492f93be7 Added logic to Settings class so that a settings file can be marked as
'too old'.  In this case, the file won't be parsed, and the internal
defaults will be used.  This should only be changed when absolutely
necessary, as is the case with this release, since there are a few
settings that can cause Stella to not work when used with a 2.2 settings file.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1215 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-15 16:12:35 +00:00
azaballa 945bd27cbd Updated docs to reflect changes in configure.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1214 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-15 06:59:36 +00:00
azaballa a0b4eab301 Added a recommendation for a Good ROM renamer. ;)
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1213 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-14 17:11:46 +00:00
stephena 23482b6d4c Some fixes for compilation using Visual Studio.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1212 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-14 00:07:47 +00:00
stephena 0bac94e94f Cleaned up some debugging code from the last commit, and removed remaining
scaler stuff.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1211 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-13 22:46:28 +00:00
stephena 839bdb0c5f Fixed a number of graphical glitches related to screen pitch in OpenGL
mode.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1210 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-13 19:13:32 +00:00
stephena ab51324f50 Added 'GL_TEXTURE_RECTANGLE_ARB' texturing to FrameBufferGL, since it's
apparently faster on hardware that supports it.  Added GL optimizations
for Apple/OSX OpenGL, which is supposed to be much faster on lower-end
hardware.

In the process of completely removing advanced scaler support from the
OpenGL rendering modes.  I could never get the code to work anyway, and
there's much more important stuff to do in the core.

Fixed bug in properties saving where all ROM properties were being saved,
not just the ones edited from GameInfoDialog.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1209 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-13 17:09:11 +00:00
stephena 534ef05cc0 Made 'tiadefaults' only reset the width and height to defaults. XStart
and YStart properties aren't touched, since in some cases they're needed
for correct emulation.  This is similar to how z26 works internally,
since it also has a YStart-like functionality.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1208 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-13 00:32:17 +00:00
stephena 7cb5858c6e Added '-cp' developer commandline argument, to set the 'Controller.SwapPaddles'
property (Yes or No).

Changed the static initialization of Scaler related items to use const char*
instead of string, since the WinCE port has trouble with that.

Updated 'scale_ui' and 'scale_tia' to use lowercase options.  So those
settings will be reset with this commit.

Added all recently added options to Settings::usage().

Huge update to the user manual.  Things are getting very close now :)


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1207 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-13 00:05:46 +00:00