Commit Graph

1050 Commits

Author SHA1 Message Date
stephena 4eb94a3a2b Only save the cheatlist file (stella.cht) when something has changed.
During development, sometimes Stella would crash, and for some reason
take the cheatfile contents with it.  Now, at least, this should
occur very rarely, since cheats won't be changed most of the time.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1062 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-22 15:12:02 +00:00
stephena baedc94f5e Removed some debugging code I forgot in the last commit.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1061 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-20 13:23:13 +00:00
stephena 0158d5ca95 Fixed 'Go Up' issue in Windows. Hopefully this doesn't break the Linux
code.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1060 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-19 23:11:31 +00:00
stephena 8cff84b4d2 Yet more fixes for the ROM launcher and browser. Make sure the directory
is redrawn, even if it's empty in rom browse mode.  Disable the 'Go Up'
buttons when there's no parent directory (wasn't absolutely necessary,
but it gives some nice visual feedback).


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1059 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-19 22:06:20 +00:00
stephena 893644c703 Removed all references to stella.pro locations from configure and Makefile
scripts, since the properties are now built in, and will never need a
global storage directory.

Reworked the ROM launcher again, by moving the 'Reload' button to the
Launcher options dialog (by popular request from the GP2X forums).  The
'Go Up' button is now always present on the main launcher interface, but
is disabled when not in 'rom browse' mode.

Added a button to VideoDialog for the recently added 'tiadefaults'
functionality.  It defaults to off, which is the current behaviour in
Stella.  (De)selecting this item will require a ROM reload.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1058 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-19 20:57:55 +00:00
stephena de5af204cf Oops, some dead code I forgot in the last commit.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1057 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-19 18:18:32 +00:00
stephena 79c815afc6 Reworked overlaid messages in the framebuffer; you can now select the
region of the screen in a 9x9 grid (top/middle/bottom by left/center/right),
as well as the color of the message text.

Updated some strings on the ROM launcher, since it doesn't make sense
to 'Play' a directory.

Disabled display of 'Note' while in rom browse mode in the ROM launcher.
It ends up taking too much CPU time to parse all the ROMs in a directory
each time it changes, so there are now two options: (1) don't browse the
filesystem, and precompute the folder contents/see all the ROM info
or (2) browse the filesystem, allowing selection of folders, etc, but
not seeing ROM names and notes as defined in the properties file.  For
performance reasons, it's going to have to be an either/or thing.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1056 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-19 18:17:48 +00:00
stephena 0da30905ee Added commandline option (-tiadefaults) to ignore tweaked values for
TIA positioning, and instead use the defaults.  It seems some people
would rather see the image exactly as it was produced on the 2600,
blank space and all.  It defaults to off, which is the current
behaviour.  Eventually I'll add a GUI option to toggle this.

Fixed issue with built-in properties as suggested by Kostas.

Fixed bug in Settings class where certain settings weren't being
recognized from the commandline.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1055 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-19 00:46:04 +00:00
markgrebe 72d65e0350 Added binary .icns file.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1054 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-18 18:03:30 +00:00
markgrebe 74bb3ae9aa Removed .icns file, and will replace with binary file as this one was accidently added as a text file.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1053 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-18 18:02:47 +00:00
stephena e65d84ca3f Yet more FrameBuffer fixes. If I keep at this, the framebuffer overhaul
due in the next release will be already done :)


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1052 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-18 00:00:30 +00:00
stephena b958c82bc1 A few fixes for the recent framebuffer shuffle; this is what I get for
messing with it.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1051 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-17 23:06:28 +00:00
stephena a6ad33c40b Removed all reference to 'user.pro', in favour of the previous (to v/2.0)
functionality.  The new scheme is as follows:
 -  Per-user properties are stored in stella.pro, which is located in
    system-specific directories (homedir for UNIX/POSIX systems, currentdir
    for Win32 systems).
 -  Completely removed concept of a global properties file, since that
    functionality is now included in Stella directly.
 -  Retained the ability to use an alternative properties file, in which
    case the per-user one isn't used at all, and any entries in it override
    the built-in defaults.

Removed all reference to 'system' vs. 'user' config files, for much the
same reasons as above.  As above, config files are stored in
user-specific places depending on platform.  There is no longer a
system-wide config file.  This made sense when Stella didn't have built-in
defaults and relied on such a file, but that's no longer the case.

Sorry for any confusion this causes, but it was causing even more confusion
for users.  And now we can distribute Stella has a single binary which
doesn't depend on any external files (but will still use them if they're
present).


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1050 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-17 19:44:19 +00:00
stephena dfd7faf454 Fixed crash when exiting from the debugger while in OpenGL mode.
Temporarily changed colour of hightlighted text from pure green to
pure blue for the GP2X port.  The next major release (2.2) will have
a GUI palette selector for this.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1049 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-16 16:10:47 +00:00
azaballa a8f5530162 Reverted the Readme in light of a fix coming down the pipe.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1048 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-15 23:37:20 +00:00
stephena 7606af4b3a Fixed bug/crash with attempting to create a Console if the ROM image
dimensions are larger than the current screen.  In the process, this
restructuring will allow messages to be shown in states other than
emulation mode.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1047 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-15 23:14:01 +00:00
azaballa fcc001964e Enabled rombrowser by default for the GP2X.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1046 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-15 21:39:48 +00:00
azaballa ba06245f7a Updated readme to reflect GP2Xs current limitation on running PAL ROMs.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1045 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-15 08:58:09 +00:00
azaballa a74b9346d1 Corrected the known bug report.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1044 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-13 06:10:45 +00:00
markgrebe 5670606a54 Changed project script to copy correct file after stella.html was renamed to index.html.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1043 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-12 20:48:37 +00:00
markgrebe 0958596b61 Update version strings for release of a Beta version of Universal Binary version to a few testers.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1042 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-12 03:15:23 +00:00
markgrebe b45bcbe750 Fixed issue with copying help files into Deployment directory.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1041 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-12 03:13:37 +00:00
markgrebe de380d267c Changed Bundle Identifier back to 2.1, we don't need a new Preferences version for 2.1.1.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1040 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-12 03:10:29 +00:00
stephena c7863e1f56 Cleaned up some text formatting, and removed references to stella.pro
for installation (it should no longer be included with release packages).


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1039 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-11 21:34:37 +00:00
stephena 7c644f92b8 Fixed crash when adding one-shot RAM based cheats.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1038 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-11 21:22:47 +00:00
stephena ff639c7b4f Added cheatcode stuff to OSX port.
Cleaned up some errors in unzip code.

Removed some OSX stuff that didn't need to be in CVS.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1037 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-11 19:56:36 +00:00
markgrebe 5cf71c5afe Updated Mac Application Icon, and added document icon, both contributed by a user.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1036 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-11 17:00:52 +00:00
stephena 7fe5bc113d Update VC.net project file.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1035 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-11 01:22:25 +00:00
markgrebe 2bc37efa2a Fixed typos in Mac conditional compile code. myRelPrevButton was myRel_PrevButton.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1034 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-10 01:20:04 +00:00
markgrebe 14b289d327 Ooops. Forgot to check in the project file last night after finishing the Xcode 2.2 changes.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1033 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-10 01:14:47 +00:00
stephena f6c8c52684 Made GameList use quicksort instead of selection sort, resulting in approx.
12-15X speedup on large folders.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1032 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-10 00:29:46 +00:00
stephena 0578b45112 More work on the ROM browse feature. It can now be dynamically (re)set
from within the Launcher options.  The previous 'Reload' button now
serves a dual role.  While in browse mode, the button is renamed as
'Go Up' and serves as a previous directory command.  While not in browse
mode, it's renamed as 'Reload' and reloads the current file-to-propname
mapping.

Also added 'rombrowse' commandline argument (true/false) to select either
browse mode (true) or not (false).


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1031 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-09 17:04:01 +00:00
markgrebe 6bfabf0e15 New file created by Xcode 2.2 Project Upgrade.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1030 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-09 03:34:02 +00:00
markgrebe bb72ce44f1 Checked in project which builds a Universal Binary build of libpng. libpng is not distributed with the Mac, and the Fink versions, etc, are not yet Universal Binary, so this subproject was added to build the version of the library we are currently using.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1029 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-09 03:27:02 +00:00
markgrebe 477dc10fd9 Added new Xcode 2.2 Project File. This enables Universal Binary builds, and will be the project file used going forward.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1028 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-09 03:22:17 +00:00
markgrebe 78fbce6545 Correct old version strings which were still showing 1.4, as reported by a user.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1027 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-09 03:17:07 +00:00
markgrebe 379a420a7a Fix array overflow that was occuring in loadConfig(). This showed up in the new Xcode 2.2 build, but it only crashed in Development mode, not Deployment, most likely due to the optimization.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1026 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-09 03:16:30 +00:00
stephena 5b4d441d36 A few more 'ROM browse mode' updates. Selecting a directory entry now
descends into that directory.  Next I have to add a 'Go Up' button to
exit go in the other direction.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1025 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-09 00:29:52 +00:00
stephena 7ab6afbd74 Added infrastructure for 'ROM browser' mode, which is an alternative to
the current ROM launcher functionality.  When in this mode, the ROM
launcher listing will act as a filesystem browser; activating folders
(which are now indicated by surrounding '[]' characters) will enter the
folder, and activating ROMs will start playing the ROM.  The major
difference in this new mode (vs. the current one) is that ROMs will
not be renamed according to their MD5SUM, but will be listed with
their real names (as they exist in the filesystem).


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1024 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-08 20:03:03 +00:00
stephena df350864d0 Don't save last selected ROM for GP2X port. In conjunction with the new
Settings API, this results in a stellarc file only being generated when
absolutely necessary, and saves on writes to flash-ram.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1023 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-07 18:56:36 +00:00
stephena 3eb31049b6 And yet more changes for the latest Settings API restructuring.
I haven't compiled under Win32 yet, so it may still be broken.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1022 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-06 21:41:58 +00:00
stephena 168d6bbdf4 Oops, forgot to remove some dead code.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1021 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-06 21:38:09 +00:00
stephena d12721722c Converted OSX port to the new Settings API. I'm hoping this will take
care of the bugs reported on AtariAge where joystick settings weren't
being saved to the plist file.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1020 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-06 15:42:27 +00:00
stephena 19f348e312 Fixes to GP2X port for latest API changes.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1019 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-06 14:06:07 +00:00
stephena c0c9364b04 Oops, forgot this in the last commit.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1018 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-06 03:22:32 +00:00
stephena b4a2268bd1 First pass at conditional saving of the settings file. Basically, the
settings will only be saved when they haven't changed from the defaults.
This is probably of limited use on ordinary systems, but is helpful
for smaller systems using flash-RAM as storage (WinCE/GP2X), since
multiple saves wears out the hardware quicker.

This breaks the OSX port; I'll fix it in a day or two.  I'm hoping this
will resolve the issues of certain settings not being saved in OSX
as well.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1017 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-06 02:26:16 +00:00
stephena a48670693a Reworked properties handling, resulting in less memory usage and greatly
improved speed.  The main stella.pro properties have been integrated
directly into Stella, so a properties file needn't be distributed with
the application any more.  Support still exists for a system-wide
stella.pro and a per-user user.pro; however, Stella will work fine without
them.

Greatly reduced memory usage in properties storage by moving to an
enum-based key system (so string descriptors for keys are no longer
being stored).  Eliminated parsing and construction of the internal
properties set by pre-parsing the data with a perl script (included
in the new 'src/tools' directory).  This pre-parser constructs
a balanced binary search AVL tree in array format, so in the worst
case, the BST only has to look through 12 entries.

Fixed some string constructor issues, hopefully fixing compile problems
with the WinCE port.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1016 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-05 01:18:42 +00:00
stephena e6b236ef2e Beginning of the properties restructuring.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1015 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-03 19:58:35 +00:00
stephena 6209912e4a Fix for the 'twitch' in the GP2X port when navigating the menus. It was
actually a deficiency in the GUI core, whereby joystick button events
were being translated to axis events, but the actual button events were
still being processed as well.  Now, if a button has been translated by
pollEvent(), it is removed from further processing in the main event
loop.

Also cleaned up the DialogContainer event logic a little.  Basically,
the code at that level should never do button to axis translation,
since that's port-specific and will be handled in the OSystemXXX class.

Fixed some errors in Makefile, where spaces were used instead of tabs.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1014 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-02 13:10:53 +00:00
azaballa e1995ea8b3 Added document gathering to gp2x-organize. Updated readme.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1013 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-02 04:55:55 +00:00