Commit Graph

202 Commits

Author SHA1 Message Date
Glenn Maynard 4c874a943b include cleanup 2005-11-06 18:03:47 +00:00
Chris Danford 0f0caf7972 Writable files in "Save", read-only files in "Data". This simplifies the installer and packaging. 2005-10-30 23:08:38 +00:00
Steve Checkoway eea687a01a Fix warning. 2005-10-30 09:44:25 +00:00
Chris Danford ca8e0c5137 work around bad global constructor order in g++ x86 by not using PlayerNumber. Find a better way to handle this? 2005-10-29 05:42:38 +00:00
Glenn Maynard 4c62c63e84 move m_sDefaultLocalProfileID into ProfileManager 2005-10-27 17:47:42 +00:00
Chris Danford e00a57e05e use Preference1D 2005-10-26 23:09:56 +00:00
Glenn Maynard 73e514cd8a add assert 2005-10-18 20:37:49 +00:00
Chris Danford b2e9c616c8 fix Attr stuff 2005-10-18 07:00:33 +00:00
Chris Danford feb1bfb0fc naming cleanup: rename scoring "Tier1"s to "W1"s (short for "Window 1")
add Preference1D so that we can index into the grading and life values
2005-10-09 04:30:59 +00:00
Chris Danford 1ead066956 Use generic names for TapNoteScore values since they are treated genericly by the code.
Theme changes coming...
2005-10-08 02:02:03 +00:00
Glenn Maynard b8accdb7ec compile fix 2005-09-29 06:19:45 +00:00
Glenn Maynard 87ddfb4c41 Up until now, we've been backing up profile data by copying it to the
backup directory immediately after a successful load.  This ensures that
the data we're copying is valid, so after a successful copy, the backup
is valid, too.  This has a couple problems:

 - Copying takes a while.  It's much faster to move data.
 - Data shouldn't be written during a profile read.  Players should be able
   to assume that it's safe to remove the memory card at any time except
   when the game is explicitly saving.
 - Copying good data from one place to another is just as prone to error as
   initially writing it.  It's at least as easy for the backup copy to fail
   and result in a bad backup as it is for a save to fail in the first place.

Instead, when we successfully load profile data (and not from a backup),
set a flag.  Later, when we save over that data, we'll clear the flag and
move the data we're about to overwrite to the backup.
2005-09-29 00:33:22 +00:00
Chris Danford 65d71a4f23 expermienting with DEFINE_METHOD macro for Lua methods 2005-09-10 02:47:04 +00:00
Glenn Maynard 9f996dc14e SaveMachineProfile returns no values 2005-09-03 23:43:16 +00:00
Chris Danford e439ae2a96 return "" -> return NULL 2005-09-02 00:14:07 +00:00
Chris Danford 23540308ef assert instead of AV on missing Character 2005-08-30 14:10:24 +00:00
Chris Danford 57b593c65e add GetLocalProfileIDFromIndex 2005-08-14 23:01:34 +00:00
Chris Danford 760ca931bc fix local profile switching stuck if current local profileID doesn't exist
fix local profile loading broken because dir missing trailing slash
2005-08-14 20:31:20 +00:00
Chris Danford e50a401341 move Character stuff out of messy GAMESTATE and into CHARMAN 2005-08-14 12:06:40 +00:00
Chris Danford b1010041a2 fix GetLocalProfile always fails due to mismatched slashes 2005-08-14 11:09:23 +00:00
Chris Danford c5fa8517dd add FixedProfiles metric. If on, profiles shouldn't be added or deleted - only cleared. 2005-08-14 01:59:46 +00:00
Chris Danford ff7c122289 cleanup: move ProfileLoadResult into GameConstantsAndTypes so we don't take dependencies on Profile.h for ProfileLoadResult 2005-08-13 06:59:27 +00:00
Glenn Maynard 77d5d0466f CreateLocalProfileByID -> AddLocalProfileByID (to allow code to set up
a local profile on its own)
2005-08-13 01:47:56 +00:00
Glenn Maynard 674ddf419a simplify 2005-08-13 01:38:35 +00:00
Glenn Maynard f264975834 delete profiles without reloading all old ones 2005-08-12 19:12:20 +00:00
Glenn Maynard 6fd6304502 rename profiles without reloading all old ones
assert
2005-08-12 19:05:38 +00:00
Glenn Maynard 39656d87ec create new profiles without reloading all old ones 2005-08-12 18:40:12 +00:00
Glenn Maynard 70a109c54b fPercentDP, fSurviveSeconds 2005-08-12 02:46:58 +00:00
Glenn Maynard 2307fa23d9 hidden HighScore::sName 2005-08-12 01:52:01 +00:00
Glenn Maynard f4caf2275f simplify 2005-08-11 23:57:20 +00:00
Glenn Maynard 09b44c9766 split GetLocalProfileByID 2005-08-11 23:14:32 +00:00
Glenn Maynard 3c93754969 split CreateLocalProfileByID 2005-08-11 23:10:44 +00:00
Glenn Maynard 01b6345758 split UnloadAllLocalProfiles 2005-08-11 23:06:01 +00:00
Chris Danford 2cc2f07f8d add lua bindings
use profileID as the key in the map, not the profile dir
2005-08-06 05:42:21 +00:00
Chris Danford 3d37449e6b add lua bindings
use profileID as the key in the map, not the profile dir
2005-08-06 05:34:06 +00:00
Chris Danford 10711f0c83 choose profileIDs for new local profiles such that ordering by creation time is preserved 2005-08-05 10:01:10 +00:00
Chris Danford 804cc8b2bc working on profile management screen 2005-08-05 04:20:46 +00:00
Chris Danford 68f8e632f0 Add new ScreenOptionsManageProfiles 2005-08-04 21:13:29 +00:00
Chris Danford 71d985f861 cleanup 2005-08-03 03:23:21 +00:00
Chris Danford a2c439a17a support loading of course edits 2005-07-31 05:41:32 +00:00
Chris Danford 2a3bc57f43 fix crash after trying to load a non-existant local profile 2005-07-18 17:34:47 +00:00
Chris Danford 0bc9261eb3 return ID of the created profile 2005-07-16 05:28:34 +00:00
Chris Danford 6f9d4caf0f keep the whole LocalProfile in memory, not just the EditableData 2005-07-13 19:15:31 +00:00
Chris Danford 505e835214 GetDisplayName -> GetDisplayNameOrHighScoreName 2005-07-13 18:49:49 +00:00
Chris Danford e9166ac4ab load EditableData for all local profile on startup so that we don't have to load every profile from disk to enumerate names 2005-07-12 20:19:52 +00:00
Chris Danford 7c6dbc102b working on ScreenOptionsProfiles 2005-07-05 23:13:49 +00:00
Glenn Maynard 3450307b01 reduce dependencies 2005-07-01 05:06:00 +00:00
Glenn Maynard 04546763e0 reducing ProfileManager.h dependency on Profile.h (many users only use
PManager to see if a profile is loaded, etc, not to access the actual profiles)
2005-07-01 04:46:32 +00:00
Glenn Maynard 9d7f835609 no need to template Luna specializations 2005-06-20 05:02:03 +00:00
Chris Danford 415e43a805 always save scores to the player profile, no matter what the percentDP 2005-06-16 02:50:37 +00:00