Commit Graph
100 Commits
Author SHA1 Message Date
Glenn Maynard 504cc93ac5 dur. 2002-09-06 03:03:02 +00:00
Glenn Maynard 9e2b308da2 simplify 2002-09-06 02:54:28 +00:00
Glenn Maynard 87cd2f5495 simplify 2002-09-06 02:43:13 +00:00
Glenn Maynard 0d9bed6c51 Add missing consts. 2002-09-06 01:52:27 +00:00
Glenn Maynard 981da81f93 Move ez2 actors out of m_frameStage; only use that for the
stage number actors.

Remove the m_frameStage ez2 special case; just put m_frameStage
on top.
2002-09-06 01:42:25 +00:00
Glenn Maynard ed0819d7cd Lots of variables. Let's try to scope them better, so it's easier to
tell (looking at less code) what's going on.
2002-09-06 01:21:32 +00:00
Glenn Maynard 0f5bc90e9c Simplify a little, add a couple traces 2002-09-06 00:33:51 +00:00
Glenn Maynard cea7ce4a73 /* ... */ 2002-09-06 00:32:19 +00:00
Glenn Maynard f762dccbae turn off some noisy debugs 2002-09-06 00:31:25 +00:00
Glenn Maynard b11f38ef7c bump cache, for previous '4' fix 2002-09-06 00:22:44 +00:00
Glenn Maynard 215d2ac87f Fix '4's showing up in autogen data; fixes bogus grades. 2002-09-06 00:21:49 +00:00
Glenn Maynard ee0649400d fix warning 2002-09-05 20:42:49 +00:00
Glenn Maynard 41d4db5e6f Fix assert fail. (Found this one by letting autoplay go for a while with
the debug console paused; might normally happen in a fast song after
losing a bunch of frames.)
2002-09-05 01:16:57 +00:00
Glenn Maynard 28e837e242 add ScreenManager::LoadPreppedScreen. 2002-09-04 23:40:01 +00:00
Glenn Maynard c6f6a8c409 HowToPlay pref. 2002-09-04 22:58:14 +00:00
Glenn Maynard b9f5a8ec99 Add non-breaking-space to menu. 2002-09-04 22:57:40 +00:00
Glenn Maynard 8e3c978640 Use MenuElements::ImmedOffScreenToMenu. 2002-09-04 22:56:35 +00:00
Glenn Maynard cc3a35eeba Add MenuElements::ImmedOffScreenToMenu. 2002-09-04 22:56:19 +00:00
Glenn Maynard 313359c2d7 bump tween update into a separate function 2002-09-04 21:53:43 +00:00
Glenn Maynard c8f5c0812c add HowToPlay toggle (I know how to play, and there are too many
startup screens ... probably another coming for the warning screen.)
2002-09-04 21:08:52 +00:00
Glenn Maynard 1e6faf12a6 Instead of choosing random songs in Endless, pre-shuffle them to
avoid repetition.
2002-09-04 03:29:42 +00:00
Glenn Maynard df7a03cd56 Abort tweens, to make sure everything has a chance to tween off
if the difficulty screen is rushed through.

Make sure all elements go completely off-screen; they weren't if the
tween-off started while an element was over the left edge of the screen
due to bounce.
2002-09-04 03:28:02 +00:00
Glenn Maynard 94a809e022 Abort tweens, to make sure everything has a chance to tween off
if the difficulty screen is rushed through.
2002-09-04 02:42:05 +00:00
Glenn Maynard b55843f919 Fix "ghosts" (stray glow) at the "press start for options" screen. 2002-09-04 02:17:40 +00:00
Glenn Maynard 4038786541 Fix assert fail. 2002-09-04 02:00:25 +00:00
Glenn Maynard 16a5971040 Fix assert fail in endless: reset the background number on reset. 2002-09-04 01:58:15 +00:00
Glenn Maynard 8b2b70dd1a Fix assert fail when mashing the course list. 2002-09-04 01:32:52 +00:00
Glenn Maynard 6ba291a058 update 2002-09-04 00:59:04 +00:00
Glenn Maynard af2426ba18 Load the gameplay screen while we're sitting at the stage screen; don't
sit around for four seconds, fade out and *then* load.
2002-09-04 00:27:36 +00:00
Glenn Maynard 1bf1f3e040 Don't cap update deltas. 2002-09-04 00:26:22 +00:00
Glenn Maynard 7b3491a7e9 Skip first update for each screen. (Explanation in comments.)
Add ScreenManager::PrepNewScreen.
2002-09-04 00:25:30 +00:00
Glenn Maynard a04d55438b Add Screen::FirstUpdate(). 2002-09-04 00:17:51 +00:00
Glenn Maynard f666a157d5 simplify 2002-09-03 22:49:11 +00:00
Glenn Maynard 106531a0f8 Remove unneccessary ez2 stage_mode hack.
(Well, it looks unneccessary: stage_mode is a local, and it's never
referenced in the period where it's hacked to NORMAL, and the
screen looks the same after this change ...)
2002-09-03 22:26:51 +00:00
Glenn Maynard bf039c9397 remove extra level of indentation (no other changes) 2002-09-03 21:57:32 +00:00
Glenn Maynard c4a8904c90 remove extra level of indentation (no other changes) 2002-09-03 21:54:13 +00:00
Glenn Maynard c8f4e8deee bool BooleansAreGood=true; 2002-09-03 21:53:15 +00:00
Glenn Maynard 58223a239a FIx score tweening during sort change. This also fixes assertion
failures pressing left/right when changing tweens .
2002-09-03 21:12:02 +00:00
Glenn Maynard edb4ee6e97 update 2002-09-03 10:09:22 +00:00
Glenn Maynard a78bcf7c7f Make the shut-down-bass hack a little less ugly. 2002-09-03 05:55:12 +00:00
Glenn Maynard 1f2e6f7338 fix backlog_cnt error 2002-09-03 05:52:08 +00:00
Glenn Maynard 1e6ff21cef Move actual screen creation to a separate function.
Clear the directory cache when we load a new screen.
2002-09-03 05:43:58 +00:00
Glenn Maynard 1f60ba9bfd Add m_bVsync. 2002-09-03 00:22:19 +00:00
Glenn Maynard 0b75b00f55 Implement m_bVsync. 2002-09-03 00:22:00 +00:00
Glenn Maynard 153d62b070 fix dim tweening 2002-09-03 00:19:54 +00:00
Glenn Maynard 329785794b Fix crash when less than 30 played songs. 2002-09-03 00:05:25 +00:00
Glenn Maynard a90c6db3b0 Move mapconv and verinc binaries alongside their source and don't
clutter the main dir with them.
(missed)
2002-09-02 23:50:08 +00:00
Glenn Maynard d7e6f59b3b Move mapconv and verinc binaries alongside their source and don't
clutter the main dir with them.
2002-09-02 11:48:33 +00:00
Glenn Maynard cb248c2ee3 Rename this; it's more of a notepad than a real TODO. Update. 2002-09-02 11:33:07 +00:00
Glenn Maynard ead8903bfb vc6 fixes 2002-09-02 10:41:56 +00:00
Glenn Maynard 21ced7118d Open RageException dialog even if LOG == NULL. 2002-09-01 01:23:07 +00:00
Glenn Maynard dfb3fd2b16 Clean up and optimize splitrelpath.
Add GetExtDirListing and GetExtDirListingV, for fast searches for
files by directory, filename prefix and extension.

Note a change in behavior due to this: all theme files will load as
prefixes, not just graphics.  (eg. "title sound (abc)" will load for "title sound",
just like "title graphic (abc)" loads for "title graphic".)  This seems more
consistent anyway, but if it's a problem it's easily fixed.

(Profiling showed that we were spending a decent amount of time reading
directories; this is because we were making separate calls for each
theme extension.)
2002-09-01 00:37:10 +00:00
Glenn Maynard b0e3b7af6f simplify 2002-08-31 19:13:45 +00:00
Glenn Maynard f886280ab5 Only check for new themes once a second, not once per GetMetric
call.  This bumps the framerate on my system at the select music
screen (without vsync, fullscreen) from 120 fps back to 190.
2002-08-31 10:33:13 +00:00
Glenn Maynard bcf0bc3a0a const, extra semicolons 2002-08-31 07:08:25 +00:00
Glenn Maynard 0a9c319a10 Fix scrollbar tweening. (Previously, the scrollbar wouldn't reappear
after changing sorts; it'd keep moving right.)
2002-08-31 06:43:28 +00:00
Glenn Maynard ad5f294ae4 m_EffectType is now a bitfield, so we can have multiple effects on
at once.

There's no interface to this, but it works with courses.

drunk, dizzy, dark is amusing. "That arrow goes WHERE?"
2002-08-31 03:04:38 +00:00
Glenn Maynard 7ffc481c63 Update. 2002-08-31 01:22:52 +00:00
Glenn Maynard 0a8f16e2bb cleanup 2002-08-31 01:20:34 +00:00
Glenn Maynard 6816c3b433 comments 2002-08-30 22:53:31 +00:00
Glenn Maynard fe1c946bba Update. 2002-08-30 22:25:32 +00:00
Glenn Maynard 6d1b53ffa9 Fix extra space in full title; this fixes "song .sm" from the editor. 2002-08-30 22:22:46 +00:00
Glenn Maynard 98f16de9ce Don't hide the current extra stage. 2002-08-30 21:51:40 +00:00
Glenn Maynard fde01d42a2 break off GetExtraStageInfoFromCourse 2002-08-30 20:49:56 +00:00
Glenn Maynard 7cacbe59f7 Update underline after updating refresh rate.
Put the default refresh back to "default"; some systems apparently
think they have refresh rates that they don't.

Make refresh "0" and max "1", so people with existing INI files keep
"default".
2002-08-30 06:18:30 +00:00
Glenn Maynard 33f20a1f85 KSF files, at least, are often missing closing ;'s. Cope. 2002-08-30 05:05:34 +00:00
Glenn Maynard bb94538c53 oops. 2002-08-30 04:54:28 +00:00
Glenn Maynard 1e0f31f75d update 2002-08-30 04:32:39 +00:00
Glenn Maynard 441541a16c Add #SELECTABLE:YES, NO and ROULETTE.
Add an option for this.  It's off by default.
2002-08-30 04:28:12 +00:00
Glenn Maynard 92ccf96768 Well, I've received complaints about my other errors, but nothing about
the build rules, so I'm assuming they're at least not blowing up at anyone.

Enabling the debug crash window.

More details will go to sm-devs.
2002-08-30 01:06:23 +00:00
Glenn Maynard 2e34fe2ca6 Use CreateDirectories. 2002-08-30 00:37:53 +00:00
Glenn Maynard 27decf5ca2 Add CreateDirectories.
Fix, simplify and optimize split().
2002-08-30 00:28:20 +00:00
Glenn Maynard 65f5ba986a me += brown paper bag 2002-08-29 23:24:00 +00:00
Glenn Maynard 43873128df Send traces to the crash handler. 2002-08-29 23:07:55 +00:00
Glenn Maynard 99853f04cf Use builtin memory-checks-on-exit, so we don't get memleak
notices for static/global objects.

Fallback to default refresh instead of max.
2002-08-29 23:05:54 +00:00
Glenn Maynard 0f7e9874cc break apart SwitchDisplayMode 2002-08-29 22:30:06 +00:00
Glenn Maynard 53acc507f7 Quiet the CheckDeviceType logs a bit. 2002-08-29 21:52:26 +00:00
Glenn Maynard e8eb97c9cf Move GetAdapterIdentifier check into ctor, so it's not done multiple
times if the first SwitchDisplayMode fails.

Don't print spurious "supports the following modes".
2002-08-29 21:48:57 +00:00
Glenn Maynard e96941e288 const stuff 2002-08-29 21:30:16 +00:00
Glenn Maynard e28dca7fe1 More LPCTSTR.
Add currently unused fnmatch-based filename searching.  (This has
the advantage that we can search for any number of masks without
grabbing the directory tree multiple times.)
2002-08-29 21:02:04 +00:00
Glenn Maynard 5ab889f509 Deal with systems that have different refresh rates available at 16bpp
and 32bpp.

(There are still systems that report refresh rates they can't really use ...
need to probe, I think.)
2002-08-29 20:59:47 +00:00
Glenn Maynard 2a5d068a6c unused label 2002-08-29 20:41:28 +00:00
Glenn Maynard ebac0bc8ec "max refresh" tests format (might have more available at 16bpp than
32bpp, though we're only ever 16bpp right now anyway)

Merge format lists.
2002-08-29 20:21:30 +00:00
Glenn Maynard 9407f88d39 oops? 2002-08-29 20:19:13 +00:00
Glenn Maynard 7b53966811 remove utils/fnmatch 2002-08-29 09:02:56 +00:00
Glenn Maynard 2bf820b7a9 Add last ditch defenses. 2002-08-29 08:58:40 +00:00
Glenn Maynard b7ca99c6d0 need a larger buffer; add checks for this 2002-08-29 08:55:24 +00:00
Glenn Maynard 84bdeed604 i don't think we're in VirtualDub any ^Hmore, toto 2002-08-29 07:02:14 +00:00
Glenn Maynard 5bfe84ae26 i don't think we're in VirtualDub any more, toto 2002-08-29 07:01:13 +00:00
Glenn Maynard 2c67a6d5a7 Add sanity check to catch the error I just corrected. 2002-08-29 06:13:34 +00:00
Glenn Maynard 48d21dc033 fix macro error 2002-08-29 06:10:12 +00:00
Glenn Maynard da777ba811 Sync this up a little with the main code. (Done while debugging ...) 2002-08-29 06:09:39 +00:00
Glenn Maynard fdd2cf304a add verinc source 2002-08-29 01:30:42 +00:00
Glenn Maynard fcb8bdeeb3 (GRIPE)
If we list verstub.obj in the dialog for extra dependencies, it counts it
as a full dep; since we change it every build, that means the binary
is never actually considered up to date.  We need to list it as an extra
option to the linker, so it gets linked without being factored into
dependencies.
2002-08-29 01:29:08 +00:00
Glenn Maynard 0e44b32a58 Gross. VC7 calculates dependencies *after* the pre-build rule (so it's not
really pre-build), so after a build, it thinks verstub.cpp has been modified.
So we get to use the same build hack here, too.
2002-08-29 00:36:50 +00:00
Glenn Maynard 2b51ea0d05 Add Disasm to the projects.
Add build rules for incrementing the build number.  (Note that since
VC6 doesn't have pre-build rules, we have to compile and link it manually.
It's a somewhat ugly hack, but it works.  In VC7 we can just make it a
normal source file and regenerate it as a pre-build step.)

Turn on .MAP generation.  Make sure it always goes into the intermed
path, so it doesn't clutter the output path.

Add rules for generating the VDI debug file from .MAPs.

(I'm not committing the code to actually enable this yet; I want to iron
out any problems these build rules cause first.)
2002-08-29 00:20:09 +00:00
Glenn Maynard d7f88eb1dd exception handling is overridden on the commandline, so turn it off
here (to silence a warning)
2002-08-28 23:48:47 +00:00
Glenn Maynard 7fa71beb31 exception handling is overridden on the commandline, so turn it off
here (to silence a warning)
2002-08-28 23:48:07 +00:00
Glenn Maynard ed95ded513 fix a couple VS7 warnings 2002-08-28 23:40:51 +00:00
Glenn Maynard b00c8d5413 Remove HighComboAlert_OnceOnly. (Added this because I wasn't
sure which was right, and it looked like =true was the behavior it
was trying for, but =false is normal arcade behavior and I can't think
of any real reason for it to ever be true.)
2002-08-28 09:00:17 +00:00