Commit Graph
100 Commits
Author SHA1 Message Date
Glenn Maynard 4631c30ca7 remove unused 2005-12-28 19:16:17 +00:00
Glenn Maynard 29422da7d3 MAX_DEVICE_BUTTONS -> NUM_DeviceButton 2005-12-28 19:15:48 +00:00
Glenn Maynard 445df4ea85 Don't poll and acquire the same device in both the input thread and Update. 2005-12-28 19:02:50 +00:00
Glenn Maynard 906179d035 cleanup 2005-12-28 19:00:40 +00:00
Glenn Maynard 596d672d7f remove unused 2005-12-28 18:59:25 +00:00
Glenn Maynard dd04d0d85e cleanup 2005-12-28 18:09:52 +00:00
Glenn Maynard 400580d842 change warnings to assertions 2005-12-28 09:53:03 +00:00
Glenn Maynard 841bbf4c1f remove GetNumDeviceButtons 2005-12-28 09:48:32 +00:00
Glenn Maynard 2d1ad839fa remove old 2005-12-28 09:32:31 +00:00
Glenn Maynard f9140c92ab update use of old function 2005-12-28 09:23:14 +00:00
Glenn Maynard 028cae7117 cosmetic 2005-12-28 09:15:33 +00:00
Glenn Maynard 8f6dcdbecc blind updates (probably incomplete, since this driver differs more widely
from my code)
2005-12-28 09:14:15 +00:00
Glenn Maynard 13087c9585 blind updates 2005-12-28 09:09:55 +00:00
Glenn Maynard 6571f6b475 merge input symbols 2005-12-28 09:04:51 +00:00
Glenn Maynard 31729a349c remove unused 2005-12-28 08:57:30 +00:00
Glenn Maynard c294e8eb74 merge input symbols 2005-12-28 08:55:13 +00:00
Glenn Maynard 7039cafa9a Merge input symbols: any device can have any input key.
- This reduces the number of types associated with input; adding a
   distinct input type doesn't introduce a whole new enumerated type
   and related functions.
 - Special handling for different devices is needed less often.  If you
   want to respond to an F1 press, simply check for KEY_F1; the device
   type doesn't really matter (though it'll usually be a keyboard).
 - This allows cleaner support for generalized USB devices.  While they're
   usually of the traditional classes (keyboard, joystick) with associated
   inputs, they don't have to be.
 - Forced casts between parallel types can be removed, and weakly-specified
   variables (ints instead of the enum type) can be fixed.

Some things that might have been merged havn't; for example, arrow keys
on a keyboard (KEY_UP) are still distinct from axes on a joystick (JOY_UP).
These may or may not be merged in the future.

Some were: removed PUMP_ symbols.  Treat them as generic buttons, and just
give them names with GetDeviceSpecificInputString.  It's not worth
introducing more special names for something only used in one place.
2005-12-28 08:52:20 +00:00
Glenn Maynard 9869b7c196 convenience 2005-12-28 08:49:09 +00:00
Glenn Maynard 9597cf13a4 fixup (this worked because NO_DEFAULT_KEY is defined to -1: "-1-1-1-1") 2005-12-28 08:23:25 +00:00
Glenn Maynard d9862d3ac8 static, typo 2005-12-28 08:21:39 +00:00
Glenn Maynard 7c70c416d8 At some point (1989), ISO-639 changed several language codes, after
the standard had already been released.  What's the point of having
standard language abbreviations if they're subject to change?

"Annex B" in ISO 639-1:2001 (over a decade later, if that's a year) says
"The changes were publicised, but they have not been included in printed
versions of ISO 639."  The first google hit for ISO-639 still makes no mention
of these changes (http://www.w3.org/WAI/ER/IG/ert/iso639.htm).  That rules.

Remove "XS?"; as far as I can tell that's just an error in the "native language"
page.
2005-12-28 06:32:33 +00:00
Glenn Maynard 1ff91344b1 missed commit: cleanups 2005-12-28 06:07:17 +00:00
Glenn Maynard bc372e308b cosmetic changes only 2005-12-28 03:30:37 +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 792f8a4008 unused header
this stuff shouldn't be an input handler anymore ...
2005-12-24 02:38:31 +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 a5042f126c suppress autorun 2005-12-24 02:27:25 +00:00
Glenn Maynard 99d586c5a9 attempt to flush memory cards on unmount 2005-12-24 02:08:17 +00:00
Glenn Maynard 9a2229999c unneeded (and not correct; actually surface->w/surface->h) 2005-12-23 19:10:28 +00:00
Glenn Maynard a980f83474 assertions 2005-12-23 19:07:14 +00:00
Glenn Maynard 339873247b fix invalid values leaking into fDisplayAspectRatio 2005-12-23 19:04:39 +00:00
Glenn Maynard 81559b2916 cleanup, remove old regex code 2005-12-23 08:22:21 +00:00
Glenn Maynard 66fd1baca2 cleanup 2005-12-23 05:31:27 +00:00
Glenn Maynard eff6f70502 cleanup 2005-12-23 05:25:35 +00:00
Glenn Maynard eb151cf9d3 remove XXX: Fail() is no longer tricky 2005-12-23 05:24:23 +00:00
Glenn Maynard ee14402dd8 remove unused 2005-12-23 05:21:32 +00:00
Glenn Maynard f3fcafe95e move "View Statistics" to MyDoc; make it follow across user changes 2005-12-23 02:03:55 +00:00
Glenn Maynard 6e18d9766c legacy 2005-12-23 02:02:04 +00:00
Glenn Maynard a3bfc1be1b add --machine-profile-stats 2005-12-23 02:00:30 +00:00
Glenn Maynard f446ae9436 use GetMyDocumentsDir, GetApplicationDataDir 2005-12-23 01:58:45 +00:00
Glenn Maynard 1251bdbe56 update 2005-12-23 01:58:13 +00:00
Glenn Maynard 79c60d650f fix warnings 2005-12-23 01:07:04 +00:00
Glenn Maynard 47de881923 missing license texts 2005-12-23 00:59:00 +00:00
Glenn Maynard f39e79b14a remove pointless comments inserted mechanically by VC 2005-12-23 00:54:15 +00:00
Glenn Maynard 4cd71c77bd const 2005-12-22 22:08:41 +00:00
Glenn Maynard c0d9825704 Validate changes to edit descriptions. Ignore attempts to clear
descriptions for edits (that'd be like renaming a file to not
have a filename).
2005-12-22 03:08:29 +00:00
Glenn Maynard 50276a15be fix comment 2005-12-22 02:40:07 +00:00
Glenn Maynard 6a45bc9ae0 sync to memory card 2005-12-21 21:11:49 +00:00
Glenn Maynard d33d896549 most of the time, all copies will succeed 2005-12-21 20:07:48 +00:00
Glenn Maynard a474b70913 remove more unused stuff 2005-12-21 09:02:48 +00:00
Glenn Maynard 581568ade0 remove old compatibility calls 2005-12-21 09:01:25 +00:00
Glenn Maynard 40946423be find, size 2005-12-21 09:00:54 +00:00
Glenn Maynard a89a488251 use find() 2005-12-21 08:46:30 +00:00
Glenn Maynard 902e2a5701 prefer standard find() over Find 2005-12-21 08:43:44 +00:00
Glenn Maynard dcd1d8f98e prefer standard find() over Find 2005-12-21 08:33:30 +00:00
Glenn Maynard 443e80551f prefer standard find() over Find 2005-12-21 08:27:00 +00:00
Glenn Maynard 8f4496685e cleanups 2005-12-21 07:52:23 +00:00
Glenn Maynard 39b07e55b3 cleanup (prefer size() over GetLength) 2005-12-21 07:50:14 +00:00
Glenn Maynard 5e2806c5f7 simplify 2005-12-21 07:42:52 +00:00
Glenn Maynard d657b99b6f Fix likely() and unlikely() when x is not 0 or 1. Remove an old
comment and declare some math functions CONST_FUNCTION.
2005-12-21 06:26:10 +00:00
Glenn Maynard 168868fef5 redundant 2005-12-21 06:19:18 +00:00
Glenn Maynard eca5a911d8 unused 2005-12-21 06:13:47 +00:00
Glenn Maynard 7ac1862281 unneeded high-level dependency: main() is a very standard function 2005-12-21 06:13:20 +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 bdf5a3b924 Remove MemoryCardDriver::Flush. Flush in Unmount instead. 2005-12-21 05:58:01 +00:00
Glenn Maynard 8ceb3e7421 remove FlushAndReset 2005-12-21 05:53:15 +00:00
Glenn Maynard a6aa42a9a4 FlushAndReset is a no-op. (It used to be used to reset drivers in Linux,
but that's no longer necessary.)
2005-12-21 05:52:11 +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 5efc86a81a merge identical copying code 2005-12-21 04:05:08 +00:00
Glenn Maynard f6900259d1 indentation changes only 2005-12-21 03:58:07 +00:00
Glenn Maynard 67ac4711a2 fix FlushAndReset not called 2005-12-21 03:57:06 +00:00
Glenn Maynard 0492553156 simplify; fix FlushAndReset not called 2005-12-21 03:56:20 +00:00
Glenn Maynard c5c69ec142 simplify 2005-12-21 03:49:34 +00:00
Glenn Maynard 44a9f43486 add ScreenOptionsMemoryCard 2005-12-21 03:48:49 +00:00
Glenn Maynard 8c78478d61 unneeded header
clarify coop mode
2005-12-21 00:29:35 +00:00
Glenn Maynard c40dedc21f cleanup, don't pull in <windows.h> 2005-12-20 20:43:29 +00:00
Glenn Maynard 8822ce2e86 cleanup, static 2005-12-20 20:30:45 +00:00
Glenn Maynard d2163d0c2f style 2005-12-20 20:29:47 +00:00
Glenn Maynard ff42312b44 use RegistryAccess::GetRegValue 2005-12-20 20:26:11 +00:00
Glenn Maynard 355d773916 fix warning 2005-12-20 20:17:56 +00:00
Glenn Maynard 296dafdd11 fix "more than one user-defined conversion has been implicitly applied" in
SDebugOverlay
2005-12-20 20:09:15 +00:00
Glenn Maynard 54ab1ec707 const, RString 2005-12-20 19:55:09 +00:00
Glenn Maynard 349d7745a6 internal errors that indicate code bugs, and not an error in a theme or the
user's system, should be asserted out with a crash dump, not an exception
dialog
2005-12-19 21:47:34 +00:00
Glenn Maynard 1eea2fce19 use INPUTMAPPER->CheckForChangedInputDevicesAndRemap 2005-12-19 07:22:36 +00:00
Glenn Maynard f3c49dd4bc ThreadSlot::Release 2005-12-19 02:18:09 +00:00
Glenn Maynard 17a5f66438 remove CreateThisThread 2005-12-19 02:08:06 +00:00
Glenn Maynard dcfff261ed use RageThreadRegister. These should be freed properly, so things still work if the driver is recreated for some reason. There may be no guarantee that the same thread will always call the I/O callback--it may recreate the thread on overload, for example ... 2005-12-19 02:06:56 +00:00
Glenn Maynard 9c1f81f9bd use RageThreadRegister 2005-12-19 02:01:48 +00:00
Glenn Maynard a9ced55f72 RageThread::CreateThisThread is too different: most of the API
is not valid, and it's used differently.  Split it off into
RageThreadRegister.
2005-12-19 02:00:22 +00:00
Glenn Maynard 3e9f38e833 cleanup 2005-12-19 01:43:04 +00:00
Glenn Maynard 702c38c2d1 cleanup 2005-12-19 01:37:24 +00:00
Glenn Maynard a5de2609ef A combo that's rolled over (continued) from the previous stage
starts at the beginning of the song, not from the first step.
2005-12-19 01:33:14 +00:00
Glenn Maynard 4b31547f78 style 2005-12-19 01:28:33 +00:00