Chris Danford
e00a57e05e
use Preference1D
2005-10-26 23:09:56 +00:00
Chris Danford
7191258c0a
clean up enum Message names so that they match the corresponding strings
2005-08-14 07:29:48 +00:00
Glenn Maynard
e3999565d8
missing include
2005-07-02 22:38:55 +00:00
Glenn Maynard
9bb15367ec
fix warning
2005-05-25 22:14:30 +00:00
Glenn Maynard
82b63a4065
mount memcard filesystems at start, logging
2005-05-22 21:13:46 +00:00
Glenn Maynard
48f74fb55e
add error return from MountCard
2005-05-22 01:44:37 +00:00
Glenn Maynard
4c8c5bea37
Add variable timeouts.
...
After mounting or unmounting a filesystem, flush cache, so we don't keep
stale cache around.
RageFileDriverDirect::Remount could (and should) flush its own cache when
changing root (since the cache represents the old root). However, calling
Remount doesn't indicate that the filesystem has actually changed, so if
the root isn't actually changing (Remount("/mnt") on a filesystem already
pointing to /mnt), the driver can't be expected to flush. (Remount also
currently doesn't go through Timeout, and we need to flush on unmount,
too.) So, take the cheap way out and just flush through FILEMAN.
2005-05-22 01:36:08 +00:00
Glenn Maynard
fe8999ce0a
RageFileManager::GetFileDriver doesn't prepend a slash to mountpoints. instead of hacking it up, fix the mountpoint names ...
2005-05-20 23:44:06 +00:00
Chris Danford
e389ba6191
convert the rest to use Preference
2005-05-16 09:36:32 +00:00
Chris Danford
3a726a1c9b
fix ScreenEnding shows stats when not using a memory card
...
fix other bugs introduced when GetProfile was changed to return a valid pointer even with no profile loaded
2005-05-01 06:42:30 +00:00
Glenn Maynard
904fd6a316
fix first memory card access on startup doesn't time out
2005-04-25 21:07:40 +00:00
Glenn Maynard
30c3578cdc
interface to allow more specific error messages
2005-04-22 05:48:52 +00:00
Glenn Maynard
0d9b7c943a
remove iScsiIndex
2005-04-22 05:24:19 +00:00
Glenn Maynard
85313caf7c
UsbStorageDevice::STATE_WRITE_ERROR -> UsbStorageDevice::STATE_ERROR
2005-04-22 05:15:59 +00:00
Glenn Maynard
27b12d3228
rename MEMORY_CARD_STATE_WRITE_ERROR -> MEMORY_CARD_STATE_ERROR
2005-04-22 04:58:32 +00:00
Chris Danford
fdccf6e416
revert to fix memory card thread
2005-04-05 23:04:59 +00:00
Ben Anderson
d6976dd40c
Don't use a heartbeat in the worker thread. Many platforms' timed event wait functions (most notoriously Linux) spin instead of blocking, causing performance hell (this is the source of the issues recently uncovered by LowLevelWindow_X11). This means we should avoid heartbeats in worker threads whenever possible. Strangely, this also fixed an obscure deadlock on quit...
2005-04-05 02:55:13 +00:00
Ben Anderson
167e5aebc0
Put all the Make* functions into a single .h/.cpp file (yes, kinda like the way it was), and add Make* functions for DialogDrivers. This means there's only one object that's affected by drivers being added/removed. (Driver default changes are a little different -- 2 or 3 objects.) Also one or two minor cleanups. (note: I apparently don't know much about CVS, it appears that some files might not make it into the repository; hang tight, I'm trying to find a solution.)
2005-03-15 00:30:26 +00:00
Glenn Maynard
6c9cc1b273
disable MemoryCardManager::FlushAndReset
2005-02-22 03:58:22 +00:00
Glenn Maynard
cc1454dd46
logging
2005-02-06 08:55:46 +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
4223e09cc8
GetPathTo -> GetPath
2005-02-06 03:32:53 +00:00
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