Commit Graph

120 Commits

Author SHA1 Message Date
Steve Checkoway 00ddde56ba Revert. 2006-03-12 23:53:31 +00:00
Steve Checkoway 9a6a581e14 Const. 2006-03-12 23:42:50 +00:00
Chris Danford 7d0ac62982 poll for memory cards in the editor screens even if MemoryCard=0 2006-03-12 07:02:50 +00:00
Chris Danford 7f821e8cfc CString -> RString 2006-01-22 01:00:06 +00:00
Glenn Maynard 08376fc0f1 WorkerThread -> RageWorkerThread 2005-12-21 06:10:41 +00:00
Glenn Maynard 2efb95aa92 header cleanup 2005-12-21 06:00:18 +00:00
Glenn Maynard 8ceb3e7421 remove FlushAndReset 2005-12-21 05:53:15 +00:00
Glenn Maynard f1498f38f0 I can't remember any rationale for "UnmountCard should never block",
and it does block: umounting a filesystem in Linux will block until
it's flushed.
2005-12-21 05:46:01 +00:00
Glenn Maynard b01308783e unused headers 2005-12-19 00:42:29 +00:00
Glenn Maynard 9ff7afe86b remove unused Reset 2005-12-10 02:35:10 +00:00
Chris Danford 36c7d8e0ed enum name cleanup 2005-12-01 03:20:25 +00:00
Chris Danford 3b799327fc finish import/export of edits 2005-11-30 05:33:01 +00:00
Chris Danford 749a8468a9 complete removal of memory card blacklist 2005-11-29 23:13:43 +00:00
Chris Danford 22f1387385 working on edit screens 2005-11-29 08:02:54 +00:00
Chris Danford 74287d4589 remove memory card OS dir blacklist 2005-11-29 05:56:11 +00:00
Chris Danford 299e1f7d68 add memcard blacklist by OsMountDir and UI to disable specific drives 2005-11-27 01:50:10 +00:00
Steve Checkoway f89319f256 Fix warnings. 2005-10-31 01:55:05 +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 a9038f82dd move memory card prefs into MemoryCardManager 2005-10-27 17:37:59 +00:00
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