Commit Graph

459 Commits

Author SHA1 Message Date
Glenn Maynard d7bcda9e38 simplify 2005-03-18 03:37:05 +00:00
Ben Anderson 0db665d4d6 Thorough(!) remodeling of the arch/ directory and the contents therein; fixed link-time warnings on GCC and should make things a lot easier to manage. A pile of other random things too, mostly cleanups and getting things to work with the remodeled arch/ directory. 2005-03-14 06:44:38 +00:00
Chris Danford a3e0bacbd8 Reset the round seed so that the players get new shuffle patterns if they Back out of gameplay and play again
RoundSeed -> StageSeed
2005-03-11 18:09:34 +00:00
Chris Danford 197e4a19cd Reset the round seed so that the players get new shuffle patterns if they Back out of gameplay and play again 2005-03-11 07:22:37 +00:00
Chris Danford 8b32383969 move DifficultiesToShow into CommonMetrics
re-cache on theme reload, not on timer expired
2005-03-10 19:57:43 +00:00
Chris Danford 70663436bb wrap GameState difficulties 2005-02-26 08:32:49 +00:00
Chris Danford 071f02a862 allow access to individual BroadcastOnChangePtrs within BroadcastOnChangePtr1D 2005-02-25 18:17:26 +00:00
Chris Danford 4104edcad9 use BroadcastOnChange wrappers 2005-02-25 05:27:28 +00:00
Glenn Maynard d6bafe0398 fix CurSong 2005-02-25 01:07:49 +00:00
Chris Danford ab22e629d4 enforce that changed message is broadcast whenever value changes 2005-02-24 12:27:30 +00:00
Chris Danford 94743864e6 add OptionRowHandler types for EditMenu 2005-02-24 11:36:19 +00:00
Chris Danford b45d0ddff3 broadcast on steps change 2005-02-23 20:39:27 +00:00
Glenn Maynard b46daecd2f Commit stats to profiles before loading ScreenEvaluation. 2005-02-23 19:18:11 +00:00
Chris Danford 9bc3887788 remove unused CourseStopSeconds
add Lua methods
2005-02-23 17:39:57 +00:00
Chris Danford 6f6ef25d1d add Lua bindings 2005-02-23 05:02:28 +00:00
Glenn Maynard 94f87f9b58 simplify 2005-02-23 04:46:05 +00:00
Glenn Maynard 4e4b6df7aa move code to StatsManager::CommitStatsToProfiles 2005-02-23 04:32:45 +00:00
Glenn Maynard e912b47839 move code around, comment 2005-02-23 03:40:47 +00:00
Chris Danford 3673781c1b fix compile error 2005-02-22 23:34:18 +00:00
Chris Danford 3899d6063a add Lua bindings 2005-02-22 23:08:46 +00:00
Chris Danford 105e01232a add Lua bindings 2005-02-22 23:06:51 +00:00
Chris Danford a2915c038b add TemporaryEventMode flag to GameState 2005-02-21 17:29:49 +00:00
Glenn Maynard 74d27315d3 s/UnlockSystem.h/UnlockManager.h/ 2005-02-21 06:22:46 +00:00
Chris Danford 5c7b8314f4 allow hiding of option rows based on the value of other rows 2005-02-20 10:12:50 +00:00
Chris Danford ad3c10f251 move GetEvalStageStats into StatsManager
Add GetAccumStageStats
2005-02-16 19:40:09 +00:00
Glenn Maynard d5cfb74709 split GameState::ApplyGameCommand from GameState::ApplyCmdline;
expose to Lua
2005-02-16 06:24:33 +00:00
Chris Danford bb712884bb move global StageStats into a singleton 2005-02-16 03:25:45 +00:00
Chris Danford bb099ee7e0 count calories while stepping, not at the end 2005-02-15 09:24:48 +00:00
Chris Danford 0da2e0fa6e remove unused workout options 2005-02-13 18:18:55 +00:00
Chris Danford e31d0ce615 experiment: expose global singletons and their methods in Lua so we don't end up with tons of Lua function polluting the global namespace 2005-02-12 21:07:13 +00:00
Glenn Maynard 4c0a55a295 when we MountCard, we must always UnmountCard
disable FlushAndReset.  It doesn't fit well with the timeout scheme:
we have separate timeouts, but FlushAndReset is global.  I could enable
the timeout separately for this, but the mount -o remount should probably
just be part of Unmount and we don't have to reload usb-storage anymore ...
2005-02-07 03:39:51 +00:00
Glenn Maynard bd516940b2 when we MountCard, we must always UnmountCard 2005-02-07 03:37:43 +00:00
Glenn Maynard ddae9b2242 unload all profiles on reset, not just ones loaded from memory cards;
fixes wrong profile being used when a card is inserted too late and a new
game starts (local profile was already loaded)
2005-02-06 09:58:50 +00:00
Glenn Maynard 97a4a65b26 Unmount cards if we time out. "Locking" and "finalizing" are the same;
merge them.  (They're both enabled and disabled in the same place.)
Pause the memory card thread during gameplay, so any changes will
wait until the current stage finishes (so we don't interrupt the player with
a noise and possibly skip).  Work on making MemoryCardManager::LockCards()
block if the card is in CHECKING.
2005-02-06 08:48:55 +00:00
Glenn Maynard ca4589a8c3 Memory card work: Show "CHECKING" when we've seen the card and
havn't finished checking it out yet (eg. write check).  This improves responsiveness:
a slow card will indicate that we see the card immediately, and it helps
diagnostics since we can easily tell if the machine sees a card.  Allow re-
establishing a memory card removed after finalization, as long as it has the
same serial number.
2005-02-06 05:08:46 +00:00
Chris Danford a24bd3014c cleanup: "(PlayerNumber)" -> "" 2005-01-31 03:18:46 +00:00
Chris Danford b5cf0b87eb add variables for workout 2005-01-31 02:00:00 +00:00
Glenn Maynard 9805cc32ef add GetStageText 2005-01-30 03:24:46 +00:00
Glenn Maynard 088b7bb356 Allow passing a lua_State to PushStack; make them static.
Add SetGlobal(bool), UnsetGlobal, PushStackNil.
Pass lua_State* to LUA_RETURN.
2005-01-30 02:01:27 +00:00
Glenn Maynard 8d48438c15 ModeMenuAvailable metric removed; change Codes instead.
Merge the sort menu into the mode menu.
GAMESTATE->m_SortOrder is now GAMESTATE->m_PreferredSortOrder.
Allow the mode menu to have non-mutually-exclusive items.
2005-01-29 20:46:08 +00:00
Glenn Maynard ed3bec750b merge MountUsedCard and MountCard 2005-01-28 00:12:09 +00:00
Glenn Maynard a930c41ed7 SongManager::LoadAllFromProfiles -> SongManager::LoadAllFromProfile
mount each memory card as needed, one at a time
working on being able to start a timeout period in MEMCARDMAN::MountCard
2005-01-28 00:04:22 +00:00
Glenn Maynard 18b0c5f2d9 Instead of manually pausing and unpausing, automatically pause the
memory card thread when mounting the first drive, and automatically
unpause it when we unmount the last drive.  (We can do this simplification
because we always mount and unmount memory cards explicitly when
reading and writing to them.)
2005-01-27 22:57:18 +00:00
Glenn Maynard d7a279efb9 Remove m_bMemoryCardsMountOnlyWhenNecessary; always do that. 2005-01-27 20:06:20 +00:00
Glenn Maynard 244633369b don't mount in LockCards; call MountAllUsedCards explicitly 2005-01-27 19:50:11 +00:00
Glenn Maynard 39b9a68473 split LockCards into LockCards, UnlockCards 2005-01-27 19:42:34 +00:00
Glenn Maynard 0dfdaee605 remove some more old experimental stuff 2005-01-15 02:01:26 +00:00
Glenn Maynard dbca4bbf7f fix crashes due to big meter values 2005-01-14 15:58:19 +00:00
Glenn Maynard e00d5fe834 cleanup, assertion 2005-01-04 01:47:11 +00:00
Glenn Maynard a96a3d9caa cleanup 2005-01-03 21:16:20 +00:00