Glenn Maynard
d468e15435
Add a memory card WorkerThread. This works simiilarly to the file
...
worker threads (though somewhat simpler). Changes: MemoryCardDriverThreaded
is going away; all memory card drivers are implicitly threaded at a higher
level (there's no reason to not do so). Memory card drivers can safely time
out; we'll recover sanely. This needs a bit more work, but should be more
tolerant of long memory card recovery periods.
2005-02-05 19:00:33 +00:00
Charles Lohr
6ba323cfde
...Asserting here causes crash if no cards after style select.
2005-01-29 01:57:53 +00:00
Ben Anderson
c1b965b030
Fix apparent typo breaking compilation (GCC wrongly complained about ISO for scoping)
2005-01-28 00:27:52 +00:00
Glenn Maynard
ed3bec750b
merge MountUsedCard and MountCard
2005-01-28 00:12:09 +00:00
Glenn Maynard
f8a00af09f
MemoryCardManager::TryMountAllCards gone
2005-01-28 00:08:16 +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
39604143f6
mount and unmount FILEMAN mountpoints in MemoryCardManager,
...
not drivers; use timeout FS; don't pass mountpoints to drivers since
they never need to know them
2005-01-27 19:23:54 +00:00
Glenn Maynard
429ae8f031
merge duplicate code
2005-01-27 18:57:43 +00:00
Glenn Maynard
3b26b811a2
preload memcard sounds
2005-01-27 05:01:56 +00:00
Chris Danford
f9b63793c8
fix vConnects not filled in correctly
2005-01-25 21:12:51 +00:00
Chris Danford
f4f02e23a2
show a different string for "card inserted, but we don't yet know the name on the card"
2004-10-09 09:57:12 +00:00
Chris Danford
bc39cb5079
serialize all memory card operations since mount operations hang if we're doing lsusb or reading USB mass storage descriptors in another thread
2004-10-09 08:16:48 +00:00
Chris Danford
f65c1d3fbb
only remount cards that were in use
2004-10-03 06:21:16 +00:00
Chris Danford
9fe9b0884a
Add hack to not leave cards mounted
2004-10-03 05:27:52 +00:00
Glenn Maynard
1d5e04b024
real fix for Windows memcards
2004-09-05 23:45:57 +00:00
Glenn Maynard
fd8e2e9d16
fix "MemoryCardOsMountPointP#" in windows
2004-09-04 22:38:16 +00:00
Chris Danford
8471f5c7bc
fix "SaveMachineStats fails because cards not mounted"
2004-08-22 07:19:38 +00:00
Chris Danford
bac085dc6d
simplify
2004-08-17 06:35:42 +00:00
Chris Danford
be7b0bf85a
clean up formatting
2004-08-17 06:07:27 +00:00
Chris Danford
d36da56b27
fix "card considered too late if inserted during attract"
2004-08-17 06:05:08 +00:00
Chris Danford
11a8029493
memory card cleanup
2004-08-17 05:50:51 +00:00
Chris Danford
ee9fbb99e1
fix "memory card not mounted if initially plugged in while cards are locked"
...
do the final memory card mount on PlayersFinalized
2004-08-14 19:18:56 +00:00
Chris Danford
71186e34ec
update comment
2004-08-09 05:56:38 +00:00
Chris Danford
e435165014
clean up memory card logic:
...
- Don't do the OS mount for cards during the attract screens. Only do OS mounts in the time between BeginGame and PlayersFinalized.
- Remove logic for fast load of a Profile from the MemoryCard. Instead, load the whole profile all at once on PlayersFinalized.
2004-08-09 05:01:24 +00:00
Chris Danford
551800cceb
Fix unnecessary remounts of cards that weren't changed since last update.\nDon't do OS mounts or unmounts while after cards are locked. It can cause skips.
2004-08-08 18:44:41 +00:00
Glenn Maynard
396badb225
move some stuff out of arch.cpp
2004-07-07 20:12:21 +00:00
Glenn Maynard
733127d8ed
license update
2004-06-08 01:24:17 +00:00
Chris Danford
110ec3d331
synchronize access to memory cards between mounting thread and main thread Profile Load/Save
2004-06-06 02:41:16 +00:00
Chris Danford
3421d2d752
add Lua function IsAnyPlayerUsingMemoryCard
2004-05-25 06:50:52 +00:00
Chris Danford
ba93ee8469
"for( int p=0; p<NUM_PLAYERS; p++ )" -> "FOREACH_PlayerNumber( p )"
2004-05-24 06:10:11 +00:00
Chris Danford
9d1a89d0d5
add hack to not play connect/disconnect sounds after resetting USB
2004-05-03 02:43:36 +00:00
Chris Danford
bfd7b1930c
simplify name update logic
2004-05-03 00:34:54 +00:00
Chris Danford
f9ee3daede
fix compile error
2004-05-01 21:31:53 +00:00
Chris Danford
6928e8e864
ugly hack to fix "mem card name not updated if card left in between games"
2004-04-23 06:35:24 +00:00
Chris Danford
e4353d5cb8
move from .h to .cpp
2004-04-23 05:40:07 +00:00
Chris Danford
2531bc9a84
add memory card level matching to disallow deep USB devices
2004-04-17 22:41:34 +00:00
Chris Danford
d6e52f6aac
optimize profile loading
2004-03-29 06:47:10 +00:00
Chris Danford
f565527929
fix flush never called
2004-03-27 04:04:29 +00:00
Glenn Maynard
1057cf4237
MemoryCardManager::PathIsMemCard
2004-03-23 22:33:14 +00:00
Chris Danford
031b3ab03f
unmount drive on memory card disconnect
2004-03-20 23:01:46 +00:00
Chris Danford
f978af080d
unmount drive on memory card disconnect
2004-03-20 22:16:57 +00:00
Chris Danford
9555d508ee
move RageFileManager mounting into the MemoryCardDriver, not MemoryCardManager
2004-03-14 01:40:24 +00:00
Chris Danford
7fe28a6dae
add PerDifficulty and PeakCombo awards
2004-03-07 04:34:49 +00:00
Chris Danford
146c8dfd85
no message
2004-02-27 03:39:34 +00:00
Chris Danford
394bf699c5
add debugging
2004-02-27 02:59:20 +00:00
Chris Danford
4ed6dba88a
add debugging
2004-02-27 02:52:12 +00:00