Commit Graph
48 Commits
Author SHA1 Message Date
Glenn Maynard 495a418884 Previously, the main mount loop was unlocking the thread and then immediately
re-locking it.  In some threads implementations (Linux 2.6), this causes the
mount thread to hog the lock, which causes SetMountThreadState to hang.  Move
the "check and delay" part of the mount thread outside of the lock, so other
threads have opportunity to get the lock.
2004-12-07 00:06:59 +00:00
Glenn Maynard 4bde245842 m_fd isn't used anymore 2004-12-06 23:47:23 +00:00
Chris Danford c23c0bec17 improve mapping from scsi index to scsi device 2004-10-15 13:47:54 +00:00
Chris Danford d906bc83e7 don't allow Iomega micro drives 2004-10-12 01:36:37 +00:00
Chris Danford 269768f856 HACK: Don't do the temp mount and the write test in the mount thread. 2004-10-09 09:34:30 +00:00
Chris Danford e1a8aa0fbb add more to whitelist 2004-10-08 07:29:51 +00:00
Chris Danford 332dd17b41 fix compile error 2004-10-07 23:44:12 +00:00
Chris Danford 68fcb42954 add more devices to whitelist 2004-10-07 23:17:16 +00:00
Chris Danford c47b7fb124 clean up whitelist, add entry for Creative Labs MuVo 2004-10-07 19:48:24 +00:00
Chris Danford 952fef50c6 disallow Rio Carbon 2004-10-03 21:10:18 +00:00
Chris Danford dc0ef1fe63 add USB device whitelist 2004-10-03 20:58:12 +00:00
Chris Danford ffca2c6ae5 fix mounting of devices that are slow to initialize 2004-10-03 08:06:47 +00:00
Chris Danford bac085dc6d simplify 2004-08-17 06:35:42 +00:00
Chris Danford 925c349d26 clean up formatting 2004-08-17 06:16:49 +00:00
Chris Danford 11a8029493 memory card cleanup 2004-08-17 05:50:51 +00:00
Chris Danford ae319bd14e refactor common unmount code 2004-08-14 19:38:37 +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
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
Chris Danford 342dc5d792 fix needless refreshes or devices 2004-06-06 18:56:33 +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 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 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 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
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
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 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 6f5404c6fe add move Linux mem card write test to seprarate thread 2004-04-13 08:05:50 +00:00