Glenn Maynard
53800b79a3
try to avoid writing to the device to do a wirte check
2005-12-24 03:09:33 +00:00
Glenn Maynard
33f7552be5
fix potential crash if QueryDosDevice fails, or returns more data than expected
2005-12-24 02:37:06 +00:00
Glenn Maynard
5ce5dc5060
simplify
2005-12-24 02:32:55 +00:00
Glenn Maynard
99d586c5a9
attempt to flush memory cards on unmount
2005-12-24 02:08:17 +00:00
Glenn Maynard
bdf5a3b924
Remove MemoryCardDriver::Flush. Flush in Unmount instead.
2005-12-21 05:58:01 +00:00
Chris Danford
d698a5f1ec
CString -> RString in RageUtil
...
ThemeMetric<CString> -> LocalizedString to eliminate dependencies
2005-12-20 08:35:47 +00:00
Chris Danford
efe3984ad5
detect changing USB joysticks and remap on the fly
2005-12-18 07:13:13 +00:00
Glenn Maynard
9ff7afe86b
remove unused Reset
2005-12-10 02:35:10 +00:00
Glenn Maynard
03708b636a
firming up this API: USBStorageDevicesChanged is "calling
...
GetUSBStorageDevices may return different devices"; calling
it twice in a row should have the same result
2005-12-10 02:11:34 +00:00
Glenn Maynard
cdb44c71be
not "new"
2005-12-10 02:08:26 +00:00
Glenn Maynard
39535c11e5
move common high-level device checking logic into base class:
...
- report STATE_CHECKING when a device is first seen, so "checking" shows up quickly
- read quick profile data once bMount is true
2005-12-10 02:07:30 +00:00
Glenn Maynard
bd6b59df43
sync with Linux
2005-12-10 01:49:01 +00:00
Glenn Maynard
a46a80ba3c
refactor to look more like the Linux driver
2005-12-10 01:36:15 +00:00
Glenn Maynard
e94119a957
break out MemoryCardDriverThreaded_Windows::GetUSBStorageDevices
2005-12-10 01:24:11 +00:00
Glenn Maynard
908e60fc0a
don't make an extra copy
2005-12-10 01:19:53 +00:00
Glenn Maynard
3751c6dc88
revert last
2005-12-10 01:11:12 +00:00
Glenn Maynard
cc5798a416
simplify
2005-12-10 01:05:58 +00:00
Glenn Maynard
48a313372b
don't log non-removable drives
2005-12-10 01:04:16 +00:00
Glenn Maynard
db4cc8df2e
Floppy drives can be reassigned, and other things can end up on A: and B:. Check the actual device type.
2005-12-10 00:36:34 +00:00
Chris Danford
5a2c4504f2
add volume size
2005-12-04 09:02:40 +00:00
Chris Danford
299e1f7d68
add memcard blacklist by OsMountDir and UI to disable specific drives
2005-11-27 01:50:10 +00:00
Glenn Maynard
26e1a11af6
noisy
2005-09-10 17:31:29 +00:00
Chris Danford
6aa44a76ee
absolute path
2005-05-23 01:05:49 +00:00
Glenn Maynard
1ea1ecfaaf
move FastLoadProfileNameFromMemoryCard into ProfileManager
2005-04-24 23:06:15 +00:00
Glenn Maynard
cabfc056fd
API
2005-04-24 19:33:46 +00:00
Glenn Maynard
e2ab509b8e
pull out common memory card profile code (in prep for import handling)
2005-04-24 19:30:35 +00:00
Glenn Maynard
30c3578cdc
interface to allow more specific error messages
2005-04-22 05:48:52 +00:00
Glenn Maynard
85313caf7c
UsbStorageDevice::STATE_WRITE_ERROR -> UsbStorageDevice::STATE_ERROR
2005-04-22 05:15:59 +00:00
Glenn Maynard
7a21e95ede
memory card work (linux update in a few minutes)
2005-02-06 05:11:57 +00:00
Glenn Maynard
bc3f8803c3
minor cleanups
2005-02-05 23:56:23 +00:00
Glenn Maynard
c7434d29de
simplify; pausing and threading is handled above (Linux update in a few
...
minutes)
2005-02-05 19:02:25 +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
7efbea62aa
cleanup
2005-01-27 19:16:32 +00:00
Glenn Maynard
8af4296b08
simplify a bit
2005-01-27 04:45:20 +00:00
Glenn Maynard
cadbdf2bee
remove MemoryCardDriverThreaded::UnmountMountPoint; remount the fs instead (makes
...
the timeout FS simpler)
use timeout FS in windows memory card code for testing
2005-01-27 04:39:10 +00:00
Glenn Maynard
dac3c2b978
update
2004-12-07 00:09:47 +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
Glenn Maynard
1d5e04b024
real fix for Windows memcards
2004-09-05 23:45:57 +00:00
Chris Danford
f43fc93985
fix windows compile
2004-08-17 05:59:41 +00:00
Chris Danford
ae319bd14e
refactor common unmount code
2004-08-14 19:38:37 +00:00
Glenn Maynard
fa9b61a9d6
fix MemoryCardDriverThreaded_Windows chewing CPU
2004-08-12 05:42:47 +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
Glenn Maynard
fcf46a9f61
fix "pure virtual method called" on quit
2004-07-17 20:38:59 +00:00
Chris Danford
25319403a1
move usb reset to the main thread to solve large skip on ScreenEnding
2004-06-06 23:48:22 +00:00
Glenn Maynard
ddd0362144
use usleep
2004-06-06 04:07:00 +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
Glenn Maynard
97791d82f0
license update
2004-05-15 22:30:30 +00:00
Chris Danford
bfd7b1930c
simplify name update logic
2004-05-03 00:34:54 +00:00
Glenn Maynard
50b593f7d2
If a drive isn't ready, don't try to mount it at all; it may cause mkdir()
...
calls to be made (if eg. mounting "D:\foo"), causing "volume not ready"
dialogs. This happens with removable devices like memory card readers
that don't have a device.
I think this is generally incorrect: if a user has a memcard reader, we'll ignore
it on the first change (no device is installed), and then we'll never actually
notice when a card is inserted, since the drive letters don't actually
change. I don't have a memcard reader to test this, so I'm punting on
this for now.
2004-05-01 01:26:38 +00:00
Glenn Maynard
19494e41f2
noisy
2004-04-25 04:41:21 +00:00