Commit Graph
229 Commits
Author SHA1 Message Date
Vecais Dumais Laacis 0a6bc88a7c Memory card driver for xbox 2006-12-07 01:38:34 +00:00
Jason Felds ec48a7166d Remove Selector.* 2006-11-17 19:34:08 +00:00
Steve Checkoway 0d10c76e87 Unscatter arch includes. 2006-11-17 18:25:20 +00:00
Glenn Maynard b77024f3bc include 2006-09-18 22:45:42 +00:00
Glenn Maynard ffb0e0d930 boilerplate 2006-07-09 19:48:10 +00:00
Steve Checkoway 80698277cf Don't use rand()%n. The function specified by the ANSI committee is a terrible linear congruential generator. In fact, it's so bad that the low order bit alternates. The algorithm implemented as RandomFloat() seems to be Park and Miller's "minimum standard" generator which is better (but not great). [See Knuth for more information.]
Any place where you would use rand()%n, use RandomInt(0, n) instead.
2006-06-26 12:14:30 +00:00
Steve Checkoway f39e79efed The last of the changes, I hope. 2006-05-14 07:04:28 +00:00
Chris Danford edf9f04293 add troubleshoot logging 2006-05-04 00:24:54 +00:00
Glenn Maynard acaf66b6c9 split scanning of devices from finding information about them 2006-03-25 05:03:45 +00:00
Glenn Maynard e096d513a8 construct device earlier 2006-03-25 03:50:44 +00:00
Glenn Maynard f943225636 better warnings 2006-03-25 03:49:35 +00:00
Glenn Maynard 7e127ea542 uppercase (cosmetic) 2006-03-25 03:48:32 +00:00
Glenn Maynard f4e1bae560 OS mountpoints (with RageFileDriverDirect) don't end in a backslash;
fixes CreateDirectories failing
2006-02-20 23:34:55 +00:00
Steve Checkoway b6d4aa4ff7 Spacing cleanup. 2006-02-10 10:05:20 +00:00
Steve Checkoway 52b7411cee PBXGetVolInfoSync is deprecated as is just about every other function that will convert from a path to a vol ref number so don't bother. Just use the volume name to flush since that was the only thing the vol ref number was used for.
Compute volume size using block size times number of blocks.
2006-02-06 02:58:34 +00:00
Glenn Maynard 918e9ec05b fix ID 2006-02-03 07:27:08 +00:00
Chris Danford 7f821e8cfc CString -> RString 2006-01-22 01:00:06 +00:00
Steve Checkoway 75ec9b356c PBXGetVolInfoSync is deprecated but there are something like 15 different functions with different prefixes that all do about the same thing. For now, just mark it as deprecated until I can figure out which I should be using. 2006-01-15 12:22:47 +00:00
Steve Checkoway bc5582d639 Fix memory leak. 2006-01-08 00:28:17 +00:00
Steve Checkoway 3608694a18 Do memory card stuff (more) correctly. 2006-01-08 00:23:33 +00:00
Glenn Maynard b2cec2d787 build fix 2006-01-04 18:09:39 +00:00
Glenn Maynard 37af3d7b37 build fix 2006-01-04 17:46:29 +00:00
Glenn Maynard 4671102354 cleanup 2005-12-24 07:36:27 +00:00
Glenn Maynard e7e136566b no, seriously, save to disk 2005-12-24 06:07:39 +00:00
Glenn Maynard 0a087099b6 fix possible crash if GetVolumeInformation fails: szVolumeNameBuffer would
be uninitialized
2005-12-24 06:06:45 +00:00
Glenn Maynard 635434ea17 fix for confusingly similar error codes
do log when the file already exists
2005-12-24 03:16:20 +00:00
Glenn Maynard b923d82f90 cleanup 2005-12-24 03:10:22 +00:00
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 bbf140a906 cleanup 2005-12-10 17:57:11 +00:00
Steve Checkoway 43066e5cb1 Only rebuild the removable device list when it changes. 2005-12-10 08:41:16 +00:00
Glenn Maynard 21a2900776 remove compat virtual 2005-12-10 07:39:31 +00:00
Steve Checkoway f91fb3b574 Missed a file. 2005-12-10 07:34:01 +00:00
Steve Checkoway 11aacd82a7 OS X memory card driver. 2005-12-10 07:14:09 +00:00
Glenn Maynard 16996cd095 update, cleanup 2005-12-10 02:36:32 +00:00
Glenn Maynard 9ff7afe86b remove unused Reset 2005-12-10 02:35:10 +00:00
Glenn Maynard 7d79d35841 cleanup 2005-12-10 02:29:33 +00:00
Glenn Maynard d6d6965e71 member, not static 2005-12-10 02:28:44 +00:00
Glenn Maynard dc1d91fa3e remove unused 2005-12-10 02:27:24 +00:00
Glenn Maynard f5aa8fdd27 comments 2005-12-10 02:21:11 +00:00
Glenn Maynard 4448fb5a5a update 2005-12-10 02:19:00 +00:00
Glenn Maynard 04ffb1657f comments, fixes 2005-12-10 02:14:06 +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