Chris Danford
b6cf3477b4
Use generic names for TapNoteScore values since they are treated genericly by the code.
...
Theme changes coming...
2005-10-08 00:57:40 +00:00
Glenn Maynard
08bbfd215d
work around VC brain damage
2005-09-29 06:35:30 +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
Glenn Maynard
2822b320fd
compile fixes
2005-09-12 17:49:53 +00:00
Chris Danford
e628959ac0
move screen-specific BGAs into overlay and broadcast change messages instead
...
add lesson fail/pass logic
2005-09-12 06:21:30 +00:00
Chris Danford
65d71a4f23
expermienting with DEFINE_METHOD macro for Lua methods
2005-09-10 02:47:04 +00:00
Chris Danford
48ebc53549
return NULL -> return CString() for clarity and efficiency
2005-09-04 16:55:21 +00:00
Glenn Maynard
8b0bd8fd11
cleanup
2005-09-03 23:42:51 +00:00
Chris Danford
e439ae2a96
return "" -> return NULL
2005-09-02 00:14:07 +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
70d1f0eadb
use mixed case values for enum Grade so that enum matches strings matches Lua
2005-08-14 11:38:31 +00:00
Chris Danford
23b2cbdd59
Character -> CharacterID
...
add Character DisplayName
2005-08-14 02:00:27 +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
18d3efa6e1
allow loading editable data from stats.xml
2005-08-13 03:16:28 +00:00
Glenn Maynard
570713023a
cleanup
2005-08-13 02:30:21 +00:00
Glenn Maynard
53b3c35663
unused
2005-08-13 01:50:32 +00:00
Glenn Maynard
828c44f299
flush in SaveAllToDir, instead of CreateNewProfile
2005-08-13 01:32:50 +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
aa04fe60dd
hide grade
2005-08-12 02:19:08 +00:00
Chris Danford
1e074fbeae
fix for both VC6 and VC7
2005-08-05 18:18:08 +00:00
Glenn Maynard
57ee24424b
no, compile fix
2005-08-05 16:23:07 +00:00
Glenn Maynard
8e9aff2d21
compile fix
2005-08-05 16:21:00 +00:00
Chris Danford
aa832e4e4d
fill new profiles with a random character
2005-08-05 09:59:44 +00:00
Chris Danford
804cc8b2bc
working on profile management screen
2005-08-05 04:20:46 +00:00
Chris Danford
a15e03f3b2
add GetLastPlayedStepsType
2005-08-03 03:23:52 +00:00
Chris Danford
a2c439a17a
support loading of course edits
2005-07-31 05:41:32 +00:00
Chris Danford
b79553f7cb
add Character, Lua bindings
2005-07-13 19:11:24 +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
Steve Checkoway
aa71c794ec
Fix warnings.
2005-06-29 06:36:51 +00:00
Glenn Maynard
d309a6c215
fix warning
2005-06-25 22:11:56 +00:00
Glenn Maynard
9d7f835609
no need to template Luna specializations
2005-06-20 05:02:03 +00:00
Steve Checkoway
35db5ffcc2
Fix warning.
2005-06-19 00:29:42 +00:00
Chris Danford
a77e0bb273
Back compat hack to fix importing scores for courses that have moved into group dirs
2005-06-18 15:00:11 +00:00
Chris Danford
eaad485521
fix uninitialized causing bogus calorie values in release
2005-06-18 03:45:16 +00:00
Glenn Maynard
1e02955e63
correct locking semantics for LuaReference (SGameplay commit in a moment)
2005-06-16 03:13:06 +00:00
Chris Danford
64690cdb40
use DEFAULT_WEIGHT_POUNDS if weight not explicitly set
2005-06-15 01:59:40 +00:00
Chris Danford
764d455632
fix calorie total double-counted
2005-06-15 00:15:51 +00:00
Glenn Maynard
6be07b3d5d
Don't define CStrings in headers. A new instance will be created in every
...
file that uses the header. A string in GameConstantsAndTypes.h may be duplicated
dozens of times; since it's not a POD, the compiler can't omit or merge it.
2005-06-09 04:03:08 +00:00
Chris Danford
8d308c6e43
cleanup
2005-06-02 22:26:11 +00:00
Chris Danford
ceef12b5cd
Have the XML parser warn about the error. Don't make every XML user have their own warning code.
2005-05-29 01:05:23 +00:00
Glenn Maynard
dfa0f52ec0
fix incorrect assert
2005-05-28 08:52:57 +00:00
Ben Anderson
ccd0cba6da
Add assert; this prevents an infinite loop that allocates memory. (This assert actually triggers on my system!)
2005-05-28 01:19:09 +00:00
Ben Anderson
4bfd999bad
Revert; I should test things before committing, guh.
2005-05-28 00:53:34 +00:00
Ben Anderson
0a9f3d1552
std::map.end() points PAST the last element, not at it!
2005-05-28 00:47:34 +00:00
Thad Ward
5949e5bc90
(this is possibly going to annoy some people, but..)
...
put all (obvious) MSVC lines in #if defined(_MSC_VER) blocks, primarilly
to allow alternative win32 compilers to be used.
2005-05-11 04:43:54 +00:00
Glenn Maynard
897dc783cd
fix name conflict
2005-04-30 02:56:38 +00:00
Chris Danford
4113a5ad17
fix "recent scores saves least recent, not most recent"
2005-04-28 02:39:43 +00:00