Commit Graph

1205 Commits

Author SHA1 Message Date
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
stephena abcf56bd05 Moved from using SDL_FillRect to directly accessing the pixel data
when drawing characters in software mode.  The old code was calling
SDL_FillRect for every pixel in the character!  Preliminary testing
shows at least 2-3 times faster rendering, but I suspect it might
be higher for those systems where SDL_FillRect was slower than in
Linux.  SDL_FillRect isn't meant to be used for 1-pixel calls.
Incidentally, this is the reason why dirty-rect merging with
a lot of onscreen movement could be slow; it degenerated into calling
SDL_FillRect for every pixel.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1206 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-12 19:41:52 +00:00
stephena af61380785 Fixed issue with paddles 'jumping' when exiting from Command or Options
menus.  Also, paddles now default to minimum resistance when starting
a paddle game, and changes in paddle location by the mouse are detected
by the digital paddle emulation (so pressing 'PaddleXXXIncrease/Decrease
after moving with the mouse will continue from the current onscreen
paddle position).


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1205 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-12 01:02:12 +00:00
stephena 0abbc77bff Fixed bug where paddle speeds weren't being properly set.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1204 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-11 20:43:55 +00:00
azaballa ee764661f2 Upon further testing, a paddle speed of 15 is ideal.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1203 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-11 09:58:50 +00:00
azaballa 9342da9bee Updated README to reflect paddle game changes.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1202 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-11 02:46:53 +00:00
stephena a50ca91245 Oops, forgot this last item to get Tac-Scan working.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1201 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-11 00:23:48 +00:00
stephena 992b641a6b Fixed bug with paddle games that didn't default to paddle 0. They actually
didn't work at all with the GP2X or the Stelladaptor, because of a related
bug in swapping virtual console ports.

Added about() method to FrameBufferXXX classes, which all FrameBuffer
derived objects are required to implement.  This is so framebuffer info
is only printed as necessary.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1200 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-11 00:15:34 +00:00
azaballa a4c4a1348b Set tiadefaults to true to give consistent resolutions.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1199 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-10 22:11:48 +00:00
stephena 32c41b1d58 Added missing code for 24-bit mode software zooming without dirty rects,
which I left out in the previous commit.

Added properties entry for "Conquest of Mars".


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1198 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-10 18:07:39 +00:00
stephena 6608b99d8c Added new rendering modes to FrameBufferSoft, which don't use dirty
rectangle merging.  This makes the 'dirtyrects' option more relevant,
since now if it's turned off, dirty rectangles are not merged, and
the screen is updated with SDL_Flip() instead of SDL_UpdateRects().
This new functionality is very similar to how z26 works, but
experiments on my Linux system show it to be twice as fast on
average :)  Dirty rectangle merging now defaults to off.  I'm
leaving it in, since it benefits people in some cases.  Basically,
non-dirty-rect support is optimal when many things are changing
onscreen at once, at the cost of more constant and generally slightly
higher CPU usage.  Dirty-rect support is optimal at larger resolutions,
where it's usually at least twice as fast as without, but is suboptimal
at larger resolutions when lots of stuff is changing.  At some point in
the future, maybe Stella itself can automatically switch modes depending
on which is faster at any point in time.

Added "[..]" previous directory functionality to BrowserWidget, the same
as already in the LauncherDialog.  Thanks for Alex and Lou for the
reminder.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1197 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-10 17:04:34 +00:00
azaballa de4ee80062 Forgot to mention [..] item for navigation.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1196 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-10 07:43:45 +00:00
azaballa f0f71af07d Made the README a little more concise.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1195 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-10 00:03:04 +00:00
stephena 935e0bd6a8 Added error checking around all calls to FSNode.listDir(), to actually
check and see if we're dealing with a directory.

Fixed off-by-one error in count for files in LauncherDialog.  While in
ROM browse mode, the previous dir " [..]" entry should not be counted.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1194 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-09 04:02:40 +00:00
azaballa 9c8572124f Updated paddle speeds, still fast, but controllable.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1193 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-09 00:34:18 +00:00
stephena e230be7fed Reworked default paddle mode handling. Removed ROM property
'Controller.PaddleNo', replacing it with 'Controller.SwapPaddles' (Yes/No
type argument).  The reasoning being that in combination with
'Console.SwapPorts', paddle 0 can be the default for any ROM as follows:

  ROM uses paddle 0 as default:
    Console.SwapPorts -> No
    Controller.SwapPaddles -> No

  ROM uses paddle 1 as default:
    Console.SwapPorts -> No
    Controller.SwapPaddles -> Yes

  ROM uses paddle 2 as default:
    Console.SwapPorts -> Yes
    Controller.SwapPaddles -> No

  ROM uses paddle 0 as default:
    Console.SwapPorts -> Yes
    Controller.SwapPaddles -> Yes

Updated all ROMs that don't default to paddle 0.  This works for all
paddle input, both analog from mouse and/or joystick and digital from
keyboard, joystick, etc.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1192 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-09 00:25:20 +00:00
azaballa 5527e47678 Fixed a couple of typos.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1191 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-08 20:51:58 +00:00
azaballa bd3113b2aa Updated the README to reflect version changes and clarify a few things.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1190 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-08 20:48:00 +00:00
stephena 2c9b0d1ecb OK, this is absolutely the last commit related to UI key events :)
Allowed modifier keys (Ctrl, Alt, Shift, etc) to be treated as normal
keys, and mapped to some action.  In those modes, the modifier keys are
just like any other key on the keyboard.  However, they also have
a special purpose when combined with other keys (text editing), and
this now works as well.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1189 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-08 20:19:58 +00:00
stephena 8c47a3f155 Hopefully fixed Dialog key handling bug in OSX.
Updated copyright dates on all headers (the reason for this huge update).

First pass at updating the user manual for all the new changes in the codebase.

Bumped version number to 2.3_alpha.  It's getting close folks.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1188 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-08 16:49:42 +00:00
azaballa c9448e9c3a Minor resolution change. In game GUI popups (ie: volume level) look better at 400x300.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1187 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-08 09:03:27 +00:00
azaballa 15004ccb94 Updated documentation to reflect code changes.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1186 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-06 07:37:29 +00:00
azaballa 7a69637a40 Updated some button mapping per playtester request.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1185 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-06 07:02:50 +00:00
stephena 0a970a97d5 One final optimization in FrameBufferGP2X. The only calls to SDL_FillRect
are now in hLine() and vLine(), and it's probably optimal to leave them
there.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1184 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-05 23:49:43 +00:00
stephena 3c93be914a First pass at making the debugger be asynchronous from the debugger parser,
meaning that if a command is running, it can be interrupted, and Stella
doesn't lock up in the process.  It all feels like sort of a hack, but
for now it's the best we can do.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1183 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-05 22:05:35 +00:00
stephena dcb74722ad Second pass at optimizing the GP2X framebuffer rendering. There's still
at least one more optimization to make after this :)


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1182 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-05 21:55:15 +00:00
stephena 84781e064a A few more optimizations for the GP2X rendering code.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1181 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-05 14:53:26 +00:00
stephena 2a8956ebae Oops, another copy/paste typo.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1180 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-05 03:04:14 +00:00
stephena 918d55ab5a Fixed a typo from copy & paste.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1179 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-05 03:01:49 +00:00
stephena 718e54c706 Fixed bug in OSX OpenGL handling. Now OpenGL mode works again!
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1178 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-04 20:14:06 +00:00
stephena 0bf5e843bc First pass at optimizing the FrameBufferGP2X rendering code. Since the
hardware in this device is a known quantity and is using a hardware surface,
perhaps we can take advantage of that.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1177 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-04 19:43:26 +00:00
stephena c973c3d968 This code is a little more compact and readable.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1176 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-04 19:01:39 +00:00
stephena dddbbfdfdf Added some OpenGL options to FrameBufferGL that only exist on SDL 1.2.10
or greater.  I'm hoping that one older systems, the code will still run
and just ignore these new options.

Added commandline argument '-gl_vsync', which enables v-sync'ed updates
for OpenGL, if it's available (see above).  Also added a setting for
this in the VideoDialog.

Fixed OSX OpenGL handling so that it doesn't specify an OpenGL library name,
and updated FrameBufferGL to use the default name in that case.  OSX users
will probably need to reset their settings file for this to take effect.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1175 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-04 18:54:51 +00:00
stephena 1cbef3f8f9 I finally got my hands on an Intel Mac, so this is the first time StellaOSX
has been compiled for at least 4 months.  At least it now compiles again
(but OpenGL mode doesn't seem to be working).


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1174 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-04 16:15:42 +00:00
azaballa d65125fedd GP2X doesn't require zoom. Thanx Steve.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1173 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-03 22:49:25 +00:00
azaballa 80b76fec6c GP2X can finally handle zoom2x.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1172 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-03 20:26:11 +00:00
azaballa 0eff44fa5c Changed a few things to accomodate the new SDL libs.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1171 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-03 19:19:35 +00:00
stephena 67f631e697 Separated out RectList from FrameBufferSoft, since FrameBufferGP2X also
needs it.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1170 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-03 17:57:54 +00:00
stephena b4531c331a Crap, a segfault bug crept in with the last commit.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1169 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-03 01:24:34 +00:00