Commit Graph
100 Commits
Author SHA1 Message Date
Glenn Maynard a13cbcaafb simplify edit_stop 2005-12-29 04:01:54 +00:00
Glenn Maynard e0c221396d comment 2005-12-29 03:33:00 +00:00
Glenn Maynard 242e8b65fd merge undo handling 2005-12-29 03:29:20 +00:00
Glenn Maynard 9f5b83f65c Rename SM_Success -> SM_SaveSuccessful and SM_Failure to SM_SaveFailed
in the editor, to avoid confusion with the SM_Success message sent when
Prompt pops itself.

Merge completion prompts in home and full mode.  Only show a full
ScreenPrompt if we're about to exit the screen.
2005-12-29 03:27:21 +00:00
Glenn Maynard 6657db528d old comment 2005-12-29 03:05:07 +00:00
Glenn Maynard a373237962 simplify 2005-12-29 03:00:33 +00:00
Glenn Maynard 72bb71d50e use SM_Success; don't duplicate it 2005-12-29 02:59:23 +00:00
Glenn Maynard 18d29783ba compile fix 2005-12-29 02:34:27 +00:00
Glenn Maynard ae17e2ffe3 simplify 2005-12-29 02:24:12 +00:00
Glenn Maynard 5303e7aab9 This isn't right: it'll add a period to the end, even when there was no
extension at all.  Remove it; it wasn't meant to be committed to begin
with.
2005-12-29 02:10:18 +00:00
Glenn Maynard 0e946835b6 filter filenames, so creating an edit named "foo 2/3" doesn't fail when
writing
2005-12-29 01:22:23 +00:00
Glenn Maynard 86572cc1f3 add MakeValidFilename 2005-12-29 01:20:33 +00:00
Glenn Maynard 6177fe5884 fixup 2005-12-29 00:42:03 +00:00
Glenn Maynard 983a34dde4 style 2005-12-28 23:34:10 +00:00
Glenn Maynard b73fe69ff2 style 2005-12-28 23:33:11 +00:00
Glenn Maynard 88fb796c6b cleanup 2005-12-28 21:08:10 +00:00
Glenn Maynard c48acf2b16 use enum_add2 2005-12-28 21:05:43 +00:00
Glenn Maynard 71c7380f44 device-neutral 2005-12-28 20:56:49 +00:00
Glenn Maynard ce93d6be50 fix overlap between keyboard digits and numbered joystick buttons 2005-12-28 20:53:54 +00:00
Glenn Maynard 87dc61af3e operator< for use in maps 2005-12-28 20:53:42 +00:00
Glenn Maynard 70d67b6e5e fix slightly excessive memory usage 2005-12-28 20:50:12 +00:00
Glenn Maynard 3193f1b774 fix slow STestInput 2005-12-28 20:41:51 +00:00
Glenn Maynard 4664c25bee fix excessive memory usage by m_ButtonState 2005-12-28 20:41:24 +00:00
Glenn Maynard 76e78a1bc4 avoid iterating over all buttons 2005-12-28 19:21:01 +00:00
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