Commit Graph
100 Commits
Author SHA1 Message Date
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
Glenn Maynard 3b44b32e0e bugfixes 2002-08-28 07:39:17 +00:00
Glenn Maynard f8916ab31d Do away with LPCTSTR. (We're not making a Unicode build, and if
we were it's not being used everywhere it would need to be.  If we want
Unicode support, that's probably not the way to do it anyway ...)
2002-08-28 07:04:52 +00:00
Glenn Maynard 6c6b50ac6b save the whales!
save before committing!
2002-08-28 03:31:17 +00:00
Glenn Maynard edde0d8432 Recompiled so it doesn't expect a PDB. 2002-08-28 03:18:46 +00:00
Glenn Maynard 81f626e473 Line debug info only; this fixes some loud linker warnings in SM when
the PDB isn't there.  (Better than making people build this; don't want
to check in the PDB since it's about 800k.)

Add ".." to include paths; fixes compilation for me.

Just specify the library "strmiids.lib"; it should be in the library
path.  (It isn't in "..\..\..\..\..\..\lib" ...)
2002-08-28 03:14:59 +00:00
Glenn Maynard 9d6d520273 fix compile errors in vc6 2002-08-28 01:16:20 +00:00
Glenn Maynard 2f36046dd6 Do away with LPCTSTR. (We're not making a Unicode build, and if
we were it's not being used everywhere it would need to be.  If we want
Unicode support, that's probably not the way to do it anyway ...)
2002-08-28 00:35:55 +00:00
Glenn Maynard 7941a1ddf2 more crash screen stuff 2002-08-27 23:48:11 +00:00
Glenn Maynard 307b50179a s/VirtualDub/StepMania/ (in display, anyway) 2002-08-27 23:16:52 +00:00
Glenn Maynard 0918dd3c9a Turn on memory leak checking. 2002-08-27 22:07:31 +00:00
Glenn Maynard 2e2b3d09bf Disasm/crash code. 2002-08-27 22:02:30 +00:00
Glenn Maynard 6b342373ad Disasm/crash support binaries. (These are generated from disasm/; it's
straightforward but not worth making a project for.)
2002-08-27 22:01:43 +00:00
Glenn Maynard 484fc403e6 Source and documentation for disasm/crash dialog support code. 2002-08-27 22:00:41 +00:00
Glenn Maynard c2379b6a52 Resources for new crash dialog. 2002-08-27 22:00:03 +00:00
Glenn Maynard 7702fb7e7a Bitmap for new crash dialog. 2002-08-27 21:59:35 +00:00
Glenn Maynard 2da12c5d57 fix init 2002-08-27 20:25:51 +00:00
Glenn Maynard 1efce9f7f7 Add Reset().
Reset combos and judgements in Player::Load().

const stuff.
2002-08-26 08:11:52 +00:00
Glenn Maynard 35b9371edb Make sure we don't have problems with %'s in trace parameters.
Use va_end.
2002-08-26 06:40:49 +00:00
Glenn Maynard 657614d11a Use initializer lists; faster. 2002-08-26 06:39:51 +00:00
Glenn Maynard 4b9404c5c2 (more of the same) 2002-08-26 05:04:54 +00:00
Glenn Maynard e22fdeefcd Make the callbacks static members, so they can access private members.
Make m_pJoystick and GetDirectInput private.

Don't bail out on Update if the joystick fails, since we still have more
devices.  Just log--handle error conditions on our own.

Reduce Windows types in the interface; eventually it'll need to be
clean.

Remove unused Get*Device functions.
2002-08-26 05:01:25 +00:00
Glenn Maynard 8658b101cc Don't export PumpButtonNames; compact the header a bit. 2002-08-26 04:46:16 +00:00
Glenn Maynard cb73056691 Since we allow escape to back out of the demonstration, allow BACK to,
too.
2002-08-26 03:51:12 +00:00
Glenn Maynard 40d96cc613 Move the last global to the class.
Make m_iSelectedStyle a bitfield, which simplifies some things.

Don't select player 1 if player 2 selects at the last second.
2002-08-26 01:20:03 +00:00
Glenn Maynard 2f3d12ee8e Use a message to end the selection, instead of a global float. 2002-08-26 00:57:40 +00:00
Glenn Maynard a30399d3bc Animate during Update, not rendering, and make it honor tab/~. 2002-08-26 00:40:12 +00:00
Glenn Maynard 34f62d8d56 simplify 2002-08-26 00:19:59 +00:00
Glenn Maynard 8b6b4043ef (typo) 2002-08-25 19:54:14 +00:00
Glenn Maynard a5df78e77d fixup skins/noteskins paths 2002-08-25 06:01:03 +00:00
Glenn Maynard 13af77a570 Remove HoldNote.h. 2002-08-25 05:50:32 +00:00
Glenn Maynard b3cb136f04 Fix up editing hold notes. 2002-08-25 05:00:23 +00:00
Glenn Maynard 3d84bc6135 Comments. 2002-08-24 22:49:10 +00:00
Glenn Maynard c6cfa14c1a Don't render the beginning of the song when cancelling out of gameplay. 2002-08-24 22:48:16 +00:00
Glenn Maynard ac95c478f5 Update. 2002-08-24 21:25:35 +00:00
Glenn Maynard f54cb254a6 Add GroupList.
(Group list from the group select screen, with no limit on song count.)
2002-08-24 20:36:29 +00:00
Glenn Maynard 849086a3ba fix error (must remember to clear cache when testing this type of thing) 2002-08-24 09:24:53 +00:00
Glenn Maynard 30dd7ab9b2 Two different pieces of code in the editor were initializing a "new" song,
and they were both being triggered.  Only do it in the ctor, since we need
the information that's being initialized elsewhere in the editor.
2002-08-24 08:28:44 +00:00
Glenn Maynard 79bc58aedd Fix a bug in the m_sSongFileName optimization; add an assertion for it. 2002-08-24 07:57:28 +00:00
Glenn Maynard d52224560e implement m_bDelayedEscape 2002-08-24 06:34:15 +00:00
Glenn Maynard 1d2e3faefd Add MusicList (move column display out of ScreenSelectGroup). Doesn't
have a group limit (but ScreenSelectGroup still does)
2002-08-24 06:30:32 +00:00
Glenn Maynard 4e4be34e61 Remove unused sound. 2002-08-24 04:44:47 +00:00
Glenn Maynard 73cc0c48f3 Update. 2002-08-24 04:33:10 +00:00
Glenn Maynard 45003ad3a6 Rename m_szStyleName back to m_szName. (Makes more sense,
now that I know more about what it does: nothing at all, so it's just
the name of the def itself, not the name of the data loaded.)
2002-08-24 04:26:28 +00:00
Glenn Maynard cc63cec6f6 Fix braindead change on my part (though I don't think it actually
broke anything)
2002-08-24 04:25:30 +00:00
Glenn Maynard 31075451d6 Go back to the correct screen when backing out of the options
menu in oni/endless.
2002-08-24 02:46:09 +00:00
Glenn Maynard 9ef1b27c4a Lock the Pump pad device while enumerating DI8 devices, to work around
a DI8 bug.
2002-08-24 02:26:39 +00:00
Glenn Maynard c8865e95d7 Remove '`' binding until our font has it.
Fix joystick Y axis.
2002-08-23 22:52:53 +00:00
Glenn Maynard 9aaffa7b5a change m_szName to m_szStyleName 2002-08-23 21:57:42 +00:00
Glenn Maynard b88e252ad8 Replace toChar switch with a table 2002-08-23 21:42:42 +00:00
Glenn Maynard 9a9463a40b fix wrong commit 2002-08-23 08:42:38 +00:00
Glenn Maynard 6121298ddf no, scoping in here (what the heck did I just commit to editmenu? stupid gui) 2002-08-23 08:41:06 +00:00
Glenn Maynard 36ebdf3646 scoping 2002-08-23 08:40:29 +00:00
Glenn Maynard 9e90640281 fix texture memleak 2002-08-23 08:30:44 +00:00
Glenn Maynard 587440ab8e class with virtual members must always have a virtual dtor
(actually, any class that will be derived from should)
2002-08-23 08:30:10 +00:00
Glenn Maynard 0276234c56 minor simplifications 2002-08-23 08:26:11 +00:00
Glenn Maynard 55ad6158a6 Fix a memleak that doesn't matter
(still havn't found the memleak I'm looking for, but I'll find every harmless
one instead!)
2002-08-23 06:50:48 +00:00
Glenn Maynard f9546160b6 Assuming "HACK!" is because the screen deleting was skipping deletions:
it'd delete 0, remove it from the list, then remove 1, skipping the new 0.
Fixed that, removed the skip-update hack.

(Trying to track down a memory leak ...)
2002-08-23 06:47:34 +00:00
Glenn Maynard de56602adb Remove unused consts (they were moved) 2002-08-23 06:21:13 +00:00
Glenn Maynard 6cdc09abfd Add two new difficulty levels. (The hardest might stress the timing of
the system, but I can't think of any good way to test this ...)
2002-08-23 06:01:29 +00:00
Glenn Maynard db5d0f64ff Remove extra LoadFromSong(). 2002-08-23 05:10:31 +00:00
Glenn Maynard ab3995ffec Simpify CTextureRenderer. 2002-08-23 05:09:42 +00:00
Glenn Maynard f102fd6671 Only query COM interfaces when we need them. 2002-08-23 05:02:51 +00:00
Glenn Maynard 4d1a9e1d68 VOID Create -> void Create
SetLoopOn/Off -> SetLooping(bool)

CTextureRenderer throws its own exception
2002-08-23 01:55:38 +00:00
Glenn Maynard 5111876b0d Hide CTextureRenderer in RageMovieTexture.cpp. 2002-08-23 01:32:34 +00:00
Glenn Maynard cc93e9a096 const const const 2002-08-23 01:31:48 +00:00
Glenn Maynard 6e0bf98bc4 Remove extra assert.h. 2002-08-23 01:06:56 +00:00
Glenn Maynard b841bd7e82 Add missing assert.h. 2002-08-23 01:06:36 +00:00
Glenn Maynard c4cbd08c05 Remove unused afxcmn.h (we don't use MFC controls). 2002-08-23 01:04:44 +00:00
Glenn Maynard e2f8e8b9e7 add stdafx.h so it compiles with PCH. 2002-08-23 00:57:48 +00:00
Glenn Maynard 8608e8a3b3 add (currently unused) pump couple case. (should this be in the
style table?)
2002-08-23 00:56:05 +00:00