Commit Graph
100 Commits
Author SHA1 Message Date
Glenn Maynard 51576d5942 update old ScreenGameplayShared code to mostly use PlayerInfo::Load; fixes some stuff but still not right 2010-01-25 07:38:23 +00:00
Glenn Maynard 1d9555a6d2 support ScoreKeeperShared in ScoreKeeper::MakeScoreKeeper 2010-01-25 07:36:20 +00:00
Glenn Maynard e266156335 fix routine special case so it works in all styles 2010-01-25 07:34:44 +00:00
Glenn Maynard d5b7c6e2db routine style for pump 2010-01-25 06:35:58 +00:00
Glenn Maynard 4cd0839429 fix warning entering editor 2009-12-03 00:36:44 +00:00
Glenn Maynard 143b96d5fa Fix ThemeMetric<EnumType> gives the first value of the enum when the theme
metric is nil, instead of EnumType_INVALID.

This happened because ThemeMetric was setting the value to its default, eg.
EnumType(), when LuaHelpers::FromStack returned false.  This behavior doesn't
make sense in the general case, since EnumType() results in an arbitrary
value (the first one) rather than Invalid.  Every FromStack function sets
a reasonable default on invalid data, anyway, and only RageColor and enums can
return false in any case.

This fixes CustomDifficulty when CourseType = nil.
2009-11-14 00:57:27 +00:00
Glenn Maynard 2526bf141c fix colors can't be overridden by themes, because they're locals 2009-11-10 06:45:26 +00:00
Glenn Maynard 906040db46 allow overriding, like PRODUCT_ID 2009-11-05 04:10:24 +00:00
Glenn Maynard 14c2a05de7 fix confusing comment. Escaping doesn't affect this; commas aren't escaped, since they're split from the value itself, long after MsdFile is loaded. We should deprecate 1,1,1,1 colors in favor of #FFFFFF; they're easier to read and type, too. 2009-11-05 02:03:08 +00:00
Glenn Maynard c78548d862 add "DIRRO" driver for read-only access 2009-11-05 01:09:24 +00:00
Glenn Maynard efe33da964 crash handler is crashing in 2.6.31 in GetBacktrace, causing a recursive crash handler crash that we aren't handling, leading to recursion 2009-11-04 22:55:19 +00:00
Glenn Maynard 08949c2848 logic fixup 2009-11-03 00:32:56 +00:00
Glenn Maynard 07b4a6edd7 disable rename and delete for courses that havn't been saved yet 2009-10-31 23:55:13 +00:00
Glenn Maynard 3c52d4edb3 move course rename and delete into Overview 2009-10-31 23:27:08 +00:00
Glenn Maynard 738a8b6895 move course rename and delete into Overview 2009-10-31 23:26:36 +00:00
Glenn Maynard 18b8e88b84 don't fail if there's no course; just hide 2009-10-31 23:24:21 +00:00
Glenn Maynard e778bff603 fix signatures not being written 2009-10-31 21:23:03 +00:00
Glenn Maynard 8f6a7f7394 skip exporting round data when nothing was played (no taps, no holds) 2009-10-31 21:22:38 +00:00
Glenn Maynard 577005a595 helper for cycling through an enum 2009-10-29 20:21:54 +00:00
Glenn Maynard 6795b0f6ce refactor RageInput to not call GetDevicesAndDescriptions constantly; it can be slightly complex and get called thousands of times a second 2009-10-29 00:52:23 +00:00
Glenn Maynard adbce38f13 fix data type: this returns -1 on error (this should actually be 64-bit, but that's a bigger change) 2009-10-21 06:49:52 +00:00
Glenn Maynard d14946c69e fix doing unnecessary work in multiplayer 2009-09-26 00:51:21 +00:00
Glenn Maynard be91870732 fix ComboChanged message sent when m_bSendJudgmentAndComboMessages is false 2009-09-26 00:46:19 +00:00
Glenn Maynard a50e6dea94 fix unthemable SDO 2009-09-25 01:09:03 +00:00
Glenn Maynard c2f211e696 HexToBinary for RString -> RString 2009-09-21 02:55:46 +00:00
Glenn Maynard 5d7ce555b6 these are a pain to workaround in VS 2009-09-14 00:08:54 +00:00
Glenn Maynard 2100c538aa remove gross hack that screws up hold preference 2009-08-21 02:57:54 +00:00
Glenn Maynard e5a493660e don't complain about old field LEADTRACK 2009-08-21 02:48:30 +00:00
Glenn Maynard 07bbf5cba8 fix assertion on optional files 2009-08-20 23:17:44 +00:00
Glenn Maynard 8ae7d6a430 uuid specific to the score node 2009-08-11 18:32:17 +00:00
Glenn Maynard 39f85d7f2b no newline in uuid 2009-08-10 02:38:11 +00:00
Glenn Maynard 0ce10f8b97 fix: write regular or multiplayer, not both 2009-08-10 00:42:44 +00:00
Glenn Maynard 0e6226c3d6 revert last: wrong place 2009-08-10 00:40:46 +00:00
Glenn Maynard 4aca552d72 fix: write regular or multiplayer, not both 2009-08-10 00:38:13 +00:00
Glenn Maynard 0e6f4720be cleanup 2009-08-10 00:37:36 +00:00
Glenn Maynard 7975938293 zero uuid by default 2009-08-09 23:56:17 +00:00
Glenn Maynard 4df5f8c890 use a real UUID for the stage ID 2009-08-09 23:45:18 +00:00
Glenn Maynard 6f40801c55 fix file signing 2009-08-09 22:59:50 +00:00
Glenn Maynard 388a1dbfdd fix data output 2009-08-09 21:32:19 +00:00
Glenn Maynard be79d17561 update 2009-08-09 05:42:34 +00:00
Glenn Maynard 34303e4f6b warning: format not a string literal and no format arguments 2009-08-09 04:42:48 +00:00
Glenn Maynard 204f7edac0 fix buffer overflow 2009-08-08 20:12:07 +00:00
Glenn Maynard 1b98e724ba in SLOW_FLUSH, flush the dir after the rename; this won't prevent corruption, but avoid returning to the caller until the change is fully committed to disk (before, we could reboot after returning and return to a previous version of the file) 2008-10-28 08:39:50 +00:00
Glenn Maynard 935b188e29 temp hack to fix flushing; remaining Save/ paths need to be changed to /Save/ 2008-10-28 08:31:17 +00:00
Glenn Maynard 52aee7551f split out ScreenOptionsServiceSelectionList 2008-10-21 23:21:15 +00:00
Glenn Maynard d97af6a158 hopefully temporary hack to work around us scanning /sys too quickly for the kernel; this is really a kernel bug 2008-08-11 18:53:43 +00:00
Glenn Maynard 2e59d76224 cleanup error message 2008-08-11 18:52:31 +00:00
Glenn Maynard 574f8f9909 temp fix for g++ compile 2008-08-11 00:48:55 +00:00
Glenn Maynard f3b0362010 allow disabling pmp.bAlignBeat. This isn't needed with menu music that already loop seemlessly, and it makes the music take longer to start playing and can make some effects goofy. 2008-08-09 22:48:07 +00:00
Glenn Maynard 87fe097f85 allow disabling pmp.bAlignBeat. This isn't needed with menu music that already loop seemlessly, and it makes the music take longer to start playing and can make some effects goofy. 2008-08-09 22:47:58 +00:00
Glenn Maynard c434dee534 start phasing out old parameter-heavy PlayMusic() call 2008-08-09 22:37:03 +00:00
Glenn Maynard 77821c179a only write cache index on success 2008-07-13 22:23:24 +00:00
Glenn Maynard 1044848664 fix broken symlinks causing warnings 2008-07-12 19:23:44 +00:00
Glenn Maynard 319d72b5fe move tomcrypt helpers into a separate file; they're useful separately 2008-07-11 23:44:41 +00:00
Glenn Maynard 193265d51c MercifulBeginner too easy 2008-07-07 20:06:06 +00:00
Glenn Maynard 81958f5b8d handle default selection in Lua 2008-07-03 01:14:17 +00:00
Glenn Maynard aca8629e5a fix crash if m_MasterPlayerNumber is Invalid 2008-07-01 23:53:53 +00:00
Glenn Maynard e813fa88bc fix IsSongSort 2008-07-01 23:52:24 +00:00
Glenn Maynard 784ec2de98 fix left/right still changes difficulty after finalizing 2008-07-01 21:00:10 +00:00
Glenn Maynard fe65136b7c fix crash 2008-06-11 22:30:09 +00:00
Glenn Maynard 3bc7d64c79 JoinInput always joins both players in AutoJoin 2008-06-11 22:22:09 +00:00
Glenn Maynard bc0cf8acd1 AutoJoin logic change: Rather than always joining on any coin input,
join on the first JoinInput; later (if more coins are input), join
on coin input if there's already a player joined.  This means coin
inputs never join the first player, which implies that coin inputs
can only autojoin a player if it's in a place where players are supposed
to be joined.

This avoids problems with joining too early, eg. in Attract before
Reset.
2008-06-11 22:19:43 +00:00
Glenn Maynard 2e1705ac46 This is a bit spaghetti right now, and this is compounding it further, so let's
look at all the cases:

Generic ScreenSelect, eg. ScreenSelectStyle:
 A non-joined player START press can join.  On successful join, discard the
 input; the start press that joins the player should not also make a selection
 on the menu.   Non-joined players can make no other inputs.  (ALLOW_DISABLED_PLAYER_INPUT
 is false.)
  - on start press
    - attempt to join the player; if successful:
     - play start sound (normally done by the derived class, eg. ScreenSelectMaster::MenuStart,
       but we're not going there)
     - return, so this start press that just joined the player doesn't also make a selection
    - any other button, return and ignore the press ("block input of disabled players")
  - on any other button press, just ignore it

ScreenJoin:
 Pressing start on a non-joined player joins the player, and unlike the generic case,
 it also passes the start press on as input, selecting the default option and starting the
 game.  (ALLOW_DISABLED_PLAYER_INPUT is true.)

 We don't have any visible menu selections, so other player inputs don't matter.
  - This screen assumes that a player can join, and that the first successful join
    will move on.  Pressing start and having it not join has never been tested or
    used, and in fact crashes: it'll be passed on as a selection, and
    SM_BeginFadingOut dies, because m_MasterPlayerNumber is invalid.
 
ScreenTitleMenu:
 Like SJoin, pressing start will select the current option and start the game.  Unlike
 SJoin, this screen has options; arrow key inputs on a non-joined player must be
 passed on, so the cursor can be moved.  (ALLOW_DISABLED_PLAYER_INPUT is true.)

This "always joins" assumption is bad, and was probably never intended.  Fix by
never allowing start on a non-joined player (unless the start just joined the
player, in which case he'll be joined by the time of this check).
2008-06-11 22:13:26 +00:00
Glenn Maynard 4c369600a8 revert Message_PlayerJoined. This logic is changing. 2008-06-11 22:09:47 +00:00
Glenn Maynard 3d2321887d reenable sound in Cancel(), rather than as a special case in the input, so it works if someone else calls Cancel 2008-06-11 22:05:49 +00:00
Glenn Maynard 04f43dae61 always move on if a player joins in SAttract, even if it's not the screen who caused it 2008-06-11 22:02:37 +00:00
Glenn Maynard 2c93c2d79c reenable sound in Cancel(), rather than as a special case in the input, so it works if someone else calls Cancel 2008-06-11 22:01:33 +00:00
Glenn Maynard 84666e25b3 fix AutoJoin keeps pressing start in free play 2008-06-07 03:22:33 +00:00
Glenn Maynard d862ba776e fix AutoJoin in free/home: join both players 2008-06-07 03:21:24 +00:00
Glenn Maynard bd5173fae8 fix snd_pcm_mmap_writei undocumented EAGAIN return value 2008-06-07 01:54:46 +00:00
Glenn Maynard 1414ff7c19 Fix inconsistency between DItoGI and GItoDI. ReadMappings was updating GItoDI and we didn't update DItoGI; AddDefaultMappings would then not add the keyboard mappings (since that uses DItoGI), and we'd end up with keyboard buttons half-mapped. 2008-06-06 23:40:03 +00:00
Glenn Maynard 1a31c337c6 fix empty statement warning 2008-06-06 18:38:07 +00:00
Glenn Maynard b3e3ab1187 allow using ScreenContinue without mandatory timer wait 2008-05-28 01:28:35 +00:00
Glenn Maynard e34d6d7195 ScreenWithMenuElements -> ScreenWithMenuElementsSimple 2008-05-28 01:27:35 +00:00
Glenn Maynard 43daaf5a1f Fix crash on join when SSM is preloaded but doesn't have focus. 2008-05-28 01:21:52 +00:00
Glenn Maynard 29936c8a2d Don't respond to players joining by catching GB_START; other code can cause a join, too. Watch the Message_PlayerJoined message instead. 2008-05-28 00:53:42 +00:00
Glenn Maynard a4b30a4cb0 move HandleMessage near HandleScreenMessage 2008-05-28 00:49:02 +00:00
Glenn Maynard 7e86936af7 Don't respond to players joining by catching GB_START; other code can cause a join, too. Watch the Message_PlayerJoined message instead. 2008-05-28 00:48:15 +00:00
Glenn Maynard e333836a89 Don't respond to players joining by catching GB_START; other code can cause a join, too. Watch the Message_PlayerJoined message instead. 2008-05-28 00:43:42 +00:00
Glenn Maynard 94f4ea32e4 fix missing base call 2008-05-28 00:41:40 +00:00
Glenn Maynard ba6a4c4feb experimental: AutoJoin, join players immediately (or as soon as possible) when enough coins are inserted 2008-05-27 20:51:18 +00:00
Glenn Maynard 0bd98720fe allow start to move on in attract even if there aren't enough credits if a player is already joined 2008-05-27 20:32:04 +00:00
Glenn Maynard a191c25a13 readd missing operator= (needed for STL use) 2008-05-27 17:40:30 +00:00
Glenn Maynard aa99cab574 experimental input mode: left/right always changes row, start toggles selected item; gives the same navigation for the main service menu and submenus 2008-05-27 17:37:34 +00:00
Glenn Maynard f832fff3d2 experimental input mode: left/right always changes row, start toggles selected item; gives the same navigation for the main service menu and submenus 2008-05-27 17:37:01 +00:00
Glenn Maynard 48dbf58a67 same support change or courses 2008-05-23 23:07:11 +00:00
Glenn Maynard 9fb1994b47 support change: read PreferredSongs.txt all at once (easier to read multiple files); always clear empty groups; simplify 2008-05-23 22:48:14 +00:00
Glenn Maynard 78b71e8181 GetFileContents(array) 2008-05-22 21:46:05 +00:00
Glenn Maynard d03587dd30 Add HideIncompleteCourses; in some environments, it doesn't make sense to show incomplete courses. 2008-05-13 01:26:02 +00:00
Glenn Maynard de4dec1f7b simplify 2008-05-13 01:19:15 +00:00
Glenn Maynard 72ab3779ea simplify 2008-05-13 01:18:39 +00:00
Glenn Maynard 34ce2ce7cb handle mod combining properly 2008-05-12 23:22:45 +00:00
Glenn Maynard c62bde404d fix paths 2008-05-12 23:16:02 +00:00
Glenn Maynard f5124648b2 update 2008-05-12 22:12:49 +00:00
Glenn Maynard c2af6af1fc vs2008 2008-05-12 19:55:00 +00:00
Glenn Maynard bd8bb11e85 move empty course check into Course::GetTrailSorted 2008-05-12 19:44:04 +00:00
Glenn Maynard ecc3dc0d83 vc2008 projects (if nobody's using 2005 it probably won't be updated further) 2008-05-12 19:26:17 +00:00
Glenn Maynard 18209c3d23 global.h first 2008-05-07 01:02:43 +00:00
Glenn Maynard 3502431ef7 global.h first 2008-05-07 01:02:07 +00:00
Glenn Maynard 235fd78f8c microsoft "deprecating" more functions they don't own 2008-05-07 00:56:02 +00:00