Commit Graph
100 Commits
Author SHA1 Message Date
Glenn Maynard 70ed0d319e Clear() 2006-09-20 23:04:20 +00:00
Glenn Maynard 107fdf4c8f Remove Profile::m_SavedLuaData. Don't store data as
serialized Lua blobs.  The Lua blob format may change with
Lua upgrades, and it's hard to impossible to use the data
with other apps.  This wasn't used right now anyway, but
if it's needed, use an XML format.
2006-09-20 22:15:56 +00:00
Glenn Maynard 9b94f66bc0 fix leak 2006-09-20 22:09:44 +00:00
Glenn Maynard 45a159bd00 allow setting AutoActor directly 2006-09-20 22:09:16 +00:00
Glenn Maynard 4f555ddb66 remove unused forward decl 2006-09-20 21:56:05 +00:00
Glenn Maynard a273003bbf fix leak 2006-09-20 21:44:58 +00:00
Glenn Maynard 7210df525b remove coin debouncing; InputFilter does better generic debouncing
on all inputs
2006-09-19 09:42:25 +00:00
Glenn Maynard f9149b5b0d cleanup 2006-09-19 09:37:02 +00:00
Glenn Maynard 26fd04c73c in SpecialFiles.h 2006-09-19 09:22:01 +00:00
Glenn Maynard 106b0ae7a3 don't accept NULL to assignment
simplify
2006-09-18 23:42:32 +00:00
Glenn Maynard b8349ca68b ARRAYLEN 2006-09-18 23:28:10 +00:00
Glenn Maynard 03ce23e9ea ARRAYLEN 2006-09-18 23:27:09 +00:00
Glenn Maynard 0e6a779446 linux fixup 2006-09-18 23:17:28 +00:00
Glenn Maynard 6e3d48a3d9 Remove MAX_FMT_TRIES. I don't know why it was there. 2006-09-18 23:15:22 +00:00
Glenn Maynard d8821cebab strings passed to assign do not need to be null-terminated 2006-09-18 23:13:36 +00:00
Glenn Maynard fc3506ac1e move code into RageUtil 2006-09-18 23:08:43 +00:00
Glenn Maynard b77024f3bc include 2006-09-18 22:45:42 +00:00
Glenn Maynard ed285a8c2f update 2006-09-18 22:43:58 +00:00
Glenn Maynard 8e0f7845f8 split directx and windows-specific stuff out of RageUtil 2006-09-18 22:42:52 +00:00
Glenn Maynard d7e5ea675f split windows-specific stuff out of RageUtil 2006-09-18 22:31:29 +00:00
Glenn Maynard 1f7fe1afd3 include 2006-09-18 22:24:18 +00:00
Glenn Maynard fba01c798c split directx-specific stuff out of RageUtil 2006-09-18 22:20:54 +00:00
Glenn Maynard 4d63a6b8ff remove unused stuff 2006-09-18 21:57:27 +00:00
Glenn Maynard 0efbe866de fix
(this is one reason the string class having an implicit cast to char* is
bad; lots of things compile but don't work, causing bugs like this)
2006-09-18 21:55:07 +00:00
Glenn Maynard bca66d4e27 GetBuf -> GetBuffer, RelBuf -> ReleaseBuffer, cleanup 2006-09-18 21:48:23 +00:00
Glenn Maynard 8310c83f1a RelBuf -> ReleaseBuffer 2006-09-18 21:46:40 +00:00
Glenn Maynard 8ad2856209 GetBuf -> GetBuffer 2006-09-18 21:46:39 +00:00
Glenn Maynard 18cdf9fca3 remove unused (use ssprintf) 2006-09-18 21:39:11 +00:00
Glenn Maynard d0226a9734 simplify
remove unused
2006-09-18 21:31:48 +00:00
Glenn Maynard 13545e1488 don't reserve; that's std::string's job
don't accept s.append(NULL)
2006-09-18 20:15:40 +00:00
Glenn Maynard 76b7307c73 remove unused 2006-09-18 20:14:28 +00:00
Glenn Maynard 6a1db3af03 remove old sdl stuff 2006-09-15 23:52:37 +00:00
Glenn Maynard 6c8d5774fc remove old SDL stuff 2006-09-15 23:48:15 +00:00
Glenn Maynard fe95757304 simplify 2006-09-15 08:05:15 +00:00
Glenn Maynard 518a9fce85 GetFirstStepsTypeForCurrentGame -> GetFirstStepsTypeForGame
to remove GameState dependency
2006-09-15 07:56:34 +00:00
Glenn Maynard 3f40f6c796 unneeded 2006-09-15 06:06:36 +00:00
Glenn Maynard 1813a9d9e3 subscribe to the events that change the credits message; don't
make everything else hook into SCREENMAN
2006-09-15 06:04:43 +00:00
Glenn Maynard e7fdfa2132 prefer GAMESTATE->JoinPlayer to setting GAMESTATE->m_bSideIsJoined manually 2006-09-15 05:56:43 +00:00
Glenn Maynard d7dc890adc cleanup 2006-09-15 05:38:43 +00:00
Glenn Maynard ad24ecb82c remove old 2006-09-15 05:29:16 +00:00
Glenn Maynard 7de372bd1d simplify 2006-09-15 05:25:51 +00:00
Glenn Maynard 60710d8202 GetPath changed to GetPathX 2006-09-14 21:40:02 +00:00
Glenn Maynard 47ef4873fb remove MenuX(pn) 2006-09-14 21:28:29 +00:00
Glenn Maynard c8749f500d InputEventPlus 2006-09-14 21:25:06 +00:00
Glenn Maynard 3f96734e6c MenuX(PlayerNumber) -> MenuX(InputEventPlus) 2006-09-14 21:18:39 +00:00
Glenn Maynard ab45febba3 simplify 2006-09-14 21:02:14 +00:00
Glenn Maynard 13fb874cc6 MenuInputToEditButton -> MenuButtonToEditButton 2006-09-14 20:58:05 +00:00
Glenn Maynard 0d138e13d8 MenuInputToGameInput -> MenuButtonToGameInputs 2006-09-14 20:57:07 +00:00
Glenn Maynard ed228615a3 remove empty wrapper class MenuInput 2006-09-14 20:55:32 +00:00
Glenn Maynard c7dfb9f2ec MenuInput -> MenuButton 2006-09-14 20:52:34 +00:00
Glenn Maynard dd2f259a2f MenuInput -> MenuButton 2006-09-14 20:45:51 +00:00
Glenn Maynard f652510cc5 RepeatStopKey: stop repeating a key until it's released 2006-09-14 20:39:54 +00:00
Glenn Maynard a05fe7e8ab simplify GameToMenu 2006-09-14 20:37:41 +00:00
Glenn Maynard af00ab413c remove IsValid 2006-09-14 20:35:03 +00:00
Glenn Maynard f1cd95828e remove MenuInput.IsValid(); if invalid, the button is simply MenuButton_INVALID 2006-09-14 20:31:46 +00:00
Glenn Maynard c559ff69b6 IsHumanPlayer( PLAYER_INVALID ) always false, so we can
do IsHumanPlayer(input.pn) without an extra check
2006-09-14 20:26:17 +00:00
Glenn Maynard 1d3a66e669 remove MenuInput::MakeInvalid 2006-09-14 20:22:42 +00:00
Glenn Maynard ad809ec5fa simplify interface 2006-09-14 08:14:22 +00:00
Glenn Maynard 2b5cbe811f check the button press in the caller of JoinInput (so we
don't have to construct a fake input message in
ScreenSelectMaster::MenuStart)
2006-09-14 08:11:58 +00:00
Glenn Maynard aeb0c1be0b unwrap 2006-09-14 08:08:09 +00:00
Glenn Maynard 26a773d983 no need to MenuI.IsValid before comparing 2006-09-14 08:06:22 +00:00
Glenn Maynard 93844f840f simplify 2006-09-14 08:05:40 +00:00
Glenn Maynard 3157bb77d4 consolidate "delayed back" logic 2006-09-14 07:55:34 +00:00
Glenn Maynard c8e909f317 We have two sets of nearly identical overloads: MenuUp(iep) and
MenuUp(pn).  pn doesn't receive all of the iep data, and is only called
on IEP_FIRST_PRESS.  It creates more complicated overloading
than is needed: if a base class happens to overload these inputs,
you have to overload the correct set.  This was more useful when
these overloads had five parameters (cumbersome), but it's not so
useful now.
2006-09-14 05:26:58 +00:00
Glenn Maynard 3fe68d7f7d simplify 2006-09-14 05:18:40 +00:00
Glenn Maynard 6ab3e33490 remove old ctor 2006-09-14 04:21:37 +00:00
Glenn Maynard 7b4667c311 GameInputToMenuButton 2006-09-14 04:11:29 +00:00
Glenn Maynard 4d612ff9ee input.pn 2006-09-14 04:08:58 +00:00
Glenn Maynard 516c759d12 simplify 2006-09-14 04:07:52 +00:00
Glenn Maynard b112d10e41 transition 2006-09-14 03:51:36 +00:00
Glenn Maynard f600e27b4a remove MenuInput::player 2006-09-14 03:49:40 +00:00
Glenn Maynard 5a890ba48d use GameInputToMenuButton 2006-09-14 03:49:12 +00:00
Glenn Maynard a07987de8d GameInputToMenuInput -> GameInputToMenuButton; one less place Game.cpp
depends on GameState
2006-09-14 03:48:35 +00:00
Glenn Maynard 2c3ea735a8 remove transition 2006-09-14 03:45:52 +00:00
Glenn Maynard 284ce54a76 correct base class 2006-09-14 03:44:27 +00:00
Glenn Maynard b531c954d1 pass pn (duplicate will go away later) 2006-09-14 03:43:34 +00:00
Glenn Maynard 0244e48eca transitional: accept pn arg to MenuInput helpers 2006-09-14 03:34:52 +00:00
Glenn Maynard 754f2edb0f JoinInput(MenuInput ) -> JoinInput(InputEventPlus) 2006-09-14 03:23:17 +00:00
Glenn Maynard 21d275e21c input.pn 2006-09-14 03:18:59 +00:00
Glenn Maynard c9c88f26c2 input.MenuI.player -> input.pn 2006-09-14 03:18:16 +00:00
Glenn Maynard 8859950d46 RememberInput after filling everything in 2006-09-14 03:11:38 +00:00
Glenn Maynard cbfebb16bb use input.pn 2006-09-13 10:11:36 +00:00
Glenn Maynard aeb9c89191 use input.pn 2006-09-13 10:02:58 +00:00
Glenn Maynard d5857acb3a A problem with removing StyleI.player: an obscure difference
between StyleI.player and MenuI.player is that StyleI is set even
if there's no attached MenuButton, and MenuI.player is set even
if there's no attached column.  That's an odd distinction, anyway.

Move input.MenuI.player to input.pn.  This also puts it in the
same place as input.mp.
2006-09-13 09:57:07 +00:00
Glenn Maynard d3095e0913 t -> iCol 2006-09-13 09:24:56 +00:00
Glenn Maynard 3183dcf60b GameInputToStyleInput -> GameInputToColumn 2006-09-13 09:22:24 +00:00
Glenn Maynard a95cd42e54 remove StyleInput.h 2006-09-13 09:18:51 +00:00
Glenn Maynard 5b63ed4ff0 unused 2006-09-13 09:17:27 +00:00
Glenn Maynard 4a8ba3a515 cleanup 2006-09-13 09:16:57 +00:00
Glenn Maynard 9da4770fe0 StyleInput_INVALID -> Column_INVALID 2006-09-13 09:14:03 +00:00
Glenn Maynard 1c92617072 phase out StyleInput; it's just a column number now
StyleInput_INVALID -> Column_INVALID.  (This notation is mostly
used for enums, but makes sense for plain ints, too.)
2006-09-13 09:12:51 +00:00
Glenn Maynard 44b1066888 unused 2006-09-13 09:07:33 +00:00
Glenn Maynard 1ceac53825 phase out StyleInput; it's just a column number now 2006-09-13 09:07:04 +00:00
Glenn Maynard 09663989be typo 2006-09-13 08:24:21 +00:00
Glenn Maynard 5ca7cf8809 cleanup 2006-09-13 08:23:28 +00:00
Glenn Maynard 36e5fec2d4 remove unused 2006-09-13 08:08:12 +00:00
Glenn Maynard 6366740d0f fix warning 2006-09-13 03:31:58 +00:00
Glenn Maynard 8277bdf5dd typo 2006-09-13 03:20:59 +00:00
Glenn Maynard e206261b80 ARRAYSIZE -> ARRAYLEN 2006-09-13 03:11:38 +00:00
Glenn Maynard 9fb0d09f35 unwrap 2006-09-13 03:04:04 +00:00