Commit Graph
94 Commits
Author SHA1 Message Date
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
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 d44e35b889 close m_fd 2004-07-19 20:39:52 +00:00
Glenn Maynard c81e737d85 fix thread busy looping if bus/usb/devices isn't available 2004-07-17 20:44:37 +00:00
Glenn Maynard fcf46a9f61 fix "pure virtual method called" on quit 2004-07-17 20:38:59 +00:00
Glenn Maynard e47f331924 move some stuff out of arch.cpp, so arch drivers aren't all cross-dependent 2004-07-07 20:11:30 +00:00
Chris Danford 1296cd775d add port detection through lsusb 2004-06-28 05:23:55 +00:00
Glenn Maynard cd59c6a68b cleanup 2004-06-16 04:07:19 +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 c1a0128902 don't think you meant to do that 2004-06-06 23:32:07 +00:00
Chris Danford 3e036b7bf8 formatting cleanup 2004-06-06 23:26:43 +00:00
Chris Danford 342dc5d792 fix needless refreshes or devices 2004-06-06 18:56:33 +00:00
Chris Danford b95c21c234 fix forced redetect of cards 2004-06-06 18:47:24 +00:00
Chris Danford 8eb7550bf4 fix forced redetect of cards 2004-06-06 18:39:40 +00:00
Chris Danford 9d2c6d078a clean up formatting 2004-06-06 18:37:57 +00:00
Glenn Maynard ddd0362144 use usleep 2004-06-06 04:07:00 +00:00
Glenn Maynard 2472ca9979 debugging 2004-06-06 03:23:08 +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 f9a6d8857c split out GetPortAndLevelFromSerial (currently unused) 2004-05-27 00:12:31 +00:00
Glenn Maynard 97791d82f0 license update 2004-05-15 22:30:30 +00:00
Glenn Maynard 720dd96b90 fix TestWrite 2004-05-11 21:55:04 +00:00
Glenn Maynard d8ed56b81f fix uninitialized value 2004-05-09 23:08:16 +00:00
Glenn Maynard cd8f571d60 remove unneeded header 2004-05-06 09:35:14 +00:00
Glenn Maynard 3527c9dae8 hush harmless warning, fix output 2004-05-05 20:05:09 +00:00
Chris Danford 47cda9c92a fix name update logic 2004-05-03 00:35:53 +00:00
Chris Danford bfd7b1930c simplify name update logic 2004-05-03 00:34:54 +00:00
Chris Danford 6bf3ffc4ce poll for changes in usb/devices 2004-05-02 23:27:14 +00:00
Chris Danford 51f0b44483 fix reload of usb-storage fails because drives still mounted 2004-05-02 22:16:56 +00:00
Chris Danford 051cc33b43 change linux mem cards to use lsusb instead of crash-happy usbdevfs 2004-05-01 04:40:00 +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
Chris Danford 7a44c365bc fix for compatibility with 2.4 2004-04-29 06:00:20 +00:00
Chris Danford 2180de1cac update memory cards for 2.6 kernel 2004-04-29 04:12:56 +00:00
Glenn Maynard 19494e41f2 noisy 2004-04-25 04:41:21 +00:00
Chris Danford 691d0091a3 fix Linux compile 2004-04-23 04:33:19 +00:00
Chris Danford 82c910711c read memory card names in the mount thread
MemoryCardDrivers: fix Mount doesn't clear the right mount point before trying to mount
2004-04-23 04:17:02 +00:00
Glenn Maynard 3ecb9a168f fix potential infinite loop 2004-04-19 03:35:46 +00:00
Chris Danford c3eedba4bb device -> level 2004-04-18 23:43:22 +00:00
Chris Danford f59eb01266 fix compare 2004-04-18 23:43:02 +00:00
Chris Danford 96e2e1d5a2 add debugging 2004-04-18 23:42:40 +00:00
Chris Danford 905b0a2201 add memory card level matching to disallow deep USB devices 2004-04-17 22:57:15 +00:00
Chris Danford 6ae9e6b035 fix card readers with removable media fail to mount, but were used anyway 2004-04-17 19:03:12 +00:00
Glenn Maynard 85688f9afc remove devices with no matched mountpoint 2004-04-17 01:02:54 +00:00
Chris Danford ea9f1ca031 remove unused 2004-04-13 08:32:33 +00:00
Chris Danford a690e09f8b fix windows compile 2004-04-13 08:32:03 +00:00
Chris Danford 6f5404c6fe add move Linux mem card write test to seprarate thread 2004-04-13 08:05:50 +00:00
Chris Danford d93f758024 do memory card write test in a separate thread 2004-04-07 01:18:11 +00:00
Steve Checkoway 20a8bab45c Clean up includes. 2004-04-05 05:22:32 +00:00
Chris Danford 60a89b8cf4 possibly fix stale card data used due to failed umount 2004-03-29 09:01:56 +00:00
Chris Danford 5be54fa4a1 revert 2004-03-27 04:49:42 +00:00