Commit Graph
100 Commits
Author SHA1 Message Date
Glenn Maynard 1122e9a105 link d3d8 dynamically 2003-05-22 22:55:58 +00:00
Glenn Maynard 623185dba7 also CString("")[0] is illegal 2003-05-22 21:13:29 +00:00
Glenn Maynard 3ed33e8e17 CString("")[0] is illegal 2003-05-22 21:13:02 +00:00
Glenn Maynard 43bdf89434 unused headers 2003-05-22 20:37:53 +00:00
Glenn Maynard 2e80061f5d hash values have changed; clean out cache 2003-05-22 20:35:54 +00:00
Glenn Maynard cc1e00823b Rewrite GetHashForString to fix a small copyright problem. (A license
that says "you can use this code however you want" doesn't necessarily
imply "you can modify it, too", just that you can use it.)

Besides, hardcoding that huge table was ugly since it can be derived
easily.
2003-05-22 20:32:08 +00:00
Glenn Maynard 713b0021fa Directory separator is /.
Simplify hash function.  Remove old comments that no longer apply.

This CRC code says "You may use this program ... without restriction."  That
doesn't say "use or modify"; although that may have been the intent, it
doesn't say that.  I'll look around for some replacement code.
2003-05-22 20:02:05 +00:00
Glenn Maynard f65da9e63e Hash values are unsigned (gets rid of negative numbers in cache.index). 2003-05-22 19:36:54 +00:00
Glenn Maynard 1edc1a325c Const fixes.
Add unsigned values.
Remove old, outdated, redundant comments.
Simplify.
2003-05-22 19:35:57 +00:00
Glenn Maynard 383779f2fc warning C4702: unreachable code 2003-05-22 08:38:57 +00:00
Glenn Maynard 84bcc3146a fix latent viewport bug 2003-05-22 08:37:15 +00:00
Glenn Maynard 52b6b76bee D3D's D3DRS_CULLMODE D3DCULL_CCW means "cull CCW polys".
OpenGL's GL_FRONT_FACE = GL_CCW means front faces are CCW, so
cull CW faces (assuming GL_CULL_FACE_MODE is GL_BACK).

They're logically opposite.
2003-05-22 08:11:47 +00:00
Glenn Maynard 5b77364c8a more build rule fixes 2003-05-22 08:02:49 +00:00
Glenn Maynard 8ad78ae5af fix pre-build rule 2003-05-22 07:13:44 +00:00
Glenn Maynard 35aab38460 Clarify some code.
If we're in BOTH mode, center long options; splitting them up looks
strange.
2003-05-21 01:58:47 +00:00
Glenn Maynard 4e0faadce5 Remove unused dimming code and some old unused variables.
Make a bit of implementation private.
2003-05-21 01:10:13 +00:00
Glenn Maynard 1ebd7aac26 General simplification/cleanup.
Use conversion interface to read KSFs with CP942 data.
2003-05-21 00:10:31 +00:00
Glenn Maynard a8129c4543 Add a simple conversion interface. 2003-05-21 00:08:58 +00:00
Glenn Maynard 822a5441dd add CDTitleSpinSeconds 2003-05-20 05:52:40 +00:00
Glenn Maynard 5a01a6977e Implement CDTitles using culling, so dimming always happens at the
right time.
2003-05-20 05:31:38 +00:00
Glenn Maynard 076b03f8fa cosmetic 2003-05-20 05:29:57 +00:00
Glenn Maynard 650611f0e2 fix comments 2003-05-20 05:26:12 +00:00
Glenn Maynard 524d44f252 "native" option was backwards 2003-05-20 04:44:41 +00:00
Glenn Maynard 9013581d09 disable m_bDelayedScreenLoad by default 2003-05-20 04:42:12 +00:00
Glenn Maynard e4fb1f2440 rename m_bShowTranslations to m_bShowNative 2003-05-20 04:41:47 +00:00
Glenn Maynard d11e177327 simplify 2003-05-20 04:14:53 +00:00
Glenn Maynard 55c440cb4e add CategoryWidth 2003-05-19 23:50:31 +00:00
Glenn Maynard 5f8ba085a5 add CategoryWidth; tweak alignment 2003-05-19 23:49:57 +00:00
Glenn Maynard 0acd471db0 add SetTextMaxWidth 2003-05-19 23:48:51 +00:00
Glenn Maynard 1e016a3c49 fix constant 2003-05-19 21:50:56 +00:00
Glenn Maynard 32ca276305 read global data before reading notes 2003-05-19 19:58:46 +00:00
Glenn Maynard b629d71cd0 split global data reading into a function
also derive name from pathname if there is no #TITLE at all
2003-05-19 19:55:42 +00:00
Glenn Maynard 55abb5165b restore important comment 2003-05-19 08:55:33 +00:00
Glenn Maynard 29a17b4964 more cleaning up 2003-05-19 08:53:53 +00:00
Glenn Maynard 56d71b85b6 cleanup 2003-05-19 08:50:58 +00:00
Glenn Maynard 747e148a73 fix abstraction 2003-05-19 08:47:10 +00:00
Glenn Maynard fbbe9d9b0c Add a FAQ.
Move <hr> within anchors; makes links cleaner.
2003-05-18 22:58:46 +00:00
Glenn Maynard 43be0509a4 update 2003-05-18 22:40:08 +00:00
Glenn Maynard 9e0a1e08aa Fix lyrics in courses 2003-05-18 22:37:20 +00:00
Glenn Maynard 4866eb62a5 add incomplete BPM handling 2003-05-18 05:11:46 +00:00
Glenn Maynard 5257503d04 Don't wipe out UTF-8 titles. 2003-05-18 04:47:21 +00:00
Glenn Maynard 01a6404711 add utf8_is_valid 2003-05-18 04:36:03 +00:00
Glenn Maynard 68038cdf49 temporary hack to fix up cdtitle dimming 2003-05-17 23:11:16 +00:00
Glenn Maynard 09372ac3f8 Disable SORT_PREFERRED for now, until it's actually implemented; it's
not very different from SORT_GROUP right now.
2003-05-17 23:04:14 +00:00
Glenn Maynard 6468f2b0d8 really fix flip 2003-05-17 21:40:11 +00:00
Glenn Maynard 98aebfaffb fix flip 2003-05-17 21:39:32 +00:00
Glenn Maynard fd74e6e64d fix not counting hold scores when autoplay is on 2003-05-17 21:19:00 +00:00
Glenn Maynard b114bc6965 fix select screen announcer playing too early 2003-05-17 20:45:45 +00:00
Glenn Maynard 3c240bffd3 The two-frame hack didn't help any more than the one-frame hack, and
it's ugly; remove it.
2003-05-17 20:37:18 +00:00
Glenn Maynard abc94255dc s/Misc/Options/. The entire "Options" category is miscellaneous; there's
no use splitting them here.
2003-05-17 20:23:12 +00:00
Glenn Maynard d7e3f6249b Get rid of "donttransliterate". It makes course matching harder.
.* doesn't need to be parenthesized, but it should be within groupings
like other characters.

Don't match "Kidou.*", since that conflicts with "Kidou 2".
2003-05-17 20:20:04 +00:00
Glenn Maynard 7b693ad270 ignore (res 1x2) in font names 2003-05-13 04:08:19 +00:00
Glenn Maynard 0e4bd68f35 switch silent files to ogg 2003-05-12 19:57:34 +00:00
Glenn Maynard 625eadfe48 remove extension from redirs 2003-05-12 19:50:18 +00:00
Glenn Maynard a1548818b9 Why was this set to "right"? 2003-05-12 08:28:32 +00:00
Glenn Maynard c7b84979bd fix more warnings 2003-05-12 01:08:45 +00:00
Glenn Maynard 3766eb5c48 fix signed/unsigned warnings
capitalize constants, not variables
2003-05-12 01:05:21 +00:00
Glenn Maynard 563f57ee0d simplify 2003-05-12 01:04:28 +00:00
Glenn Maynard 10eaf80cf4 simplify 2003-05-12 01:02:11 +00:00
Glenn Maynard 7bbe0a8ecd simplify 2003-05-12 01:01:22 +00:00
Glenn Maynard d223ca4217 Remove a header and a variable that are never used.
Please, folks, always run a cvs diff and see if changes make sense
before committing ...
2003-05-12 00:58:29 +00:00
Glenn Maynard 5a249ac7c3 fix assert fail due to rounding error 2003-05-08 22:17:22 +00:00
Glenn Maynard c342403abb ignore empty commands 2003-05-08 22:07:24 +00:00
Glenn Maynard ee4968b986 ignore spaces in metric commands 2003-05-07 04:03:46 +00:00
Glenn Maynard 60a13f806d Fix some type mismatches that cause stack corruption in VC7.
Never memset(0) a non-POD type (eg. a vector).
2003-05-06 21:10:21 +00:00
Glenn Maynard f8eba60bd8 fix for annoying STL change 2003-05-06 05:40:13 +00:00
Glenn Maynard 0f6668010a It doesn't do any good to define signals that a system doesn't have ... 2003-05-05 22:53:05 +00:00
Glenn Maynard 80d16e87e8 make sprite files a wildcard match, which is more robust
handle case-insensitivity
2003-05-05 08:26:30 +00:00
Glenn Maynard 441026a847 make BG files a wildcard match, which is more robust
handle case-insensitivity
2003-05-05 08:04:21 +00:00
Glenn Maynard 4874253f0e dd DancingCharacters 2003-05-05 06:52:50 +00:00
Glenn Maynard 8ff37e0164 simplify
add -O2
2003-05-05 06:47:24 +00:00
Glenn Maynard 38ac8f3789 simplify 2003-05-05 06:45:47 +00:00
Glenn Maynard 9977545240 add OSS def 2003-05-05 06:44:26 +00:00
Glenn Maynard 62460fbca0 merge lines 2003-05-05 06:43:04 +00:00
Glenn Maynard d0d31e68f8 add blank defaults 2003-05-05 06:41:38 +00:00
Glenn Maynard 2c2110a2e5 move Model to Actors 2003-05-05 06:39:56 +00:00
Glenn Maynard d263545508 let's keep lines to a reasonable length 2003-05-05 06:37:53 +00:00
Glenn Maynard 8b2009315b add SignalHandler 2003-05-05 06:35:22 +00:00
Glenn Maynard 9e5ff55405 ignore default CFLAGS, etc 2003-05-05 06:27:53 +00:00
Glenn Maynard 75e3dcdce8 comment
(had more changes but reverted them)
2003-05-05 06:21:36 +00:00
Glenn Maynard 3c6f768fd7 use parens instead of brackets 2003-05-05 06:21:01 +00:00
Glenn Maynard 558ef9e275 Override the "size" of a texture:
Foo [res 128x64].png

This can be used to store a texture at a different resolution without
having to change all of the metrics that reference it.

The most obvious use is to lower the resolution of large images.

A less obvious use is to raise the resolution of images.  If an image is
going to be zoomed, it may be useful to store the texture at a higher
resolution than native.

This can be done with metrics, but it's a pain to have to track down
each metric that needs to be changed.  This (should) also work with
fonts (but that needs testing).

Use this sparingly.
2003-05-05 03:14:47 +00:00
Glenn Maynard 971284db59 simplify 2003-05-05 03:03:53 +00:00
Glenn Maynard fd0d78c3e9 cleanup 2003-05-05 02:31:57 +00:00
Glenn Maynard df0a74e1b5 add glow modes 2003-05-04 22:35:42 +00:00
Glenn Maynard c4269307c1 add glow modes 2003-05-04 22:21:57 +00:00
Glenn Maynard b7c56989f4 disable blending hack 2003-05-04 05:13:30 +00:00
Glenn Maynard 368375ca01 handle some obscure rounding errors 2003-05-04 05:10:51 +00:00
Glenn Maynard 387233792f add direct vorbisfile interface 2003-05-02 22:00:09 +00:00
Glenn Maynard 2056b75522 quick fix for the editor in non-Dance modes 2003-04-30 20:28:52 +00:00
Glenn Maynard 241284161c don't pass non-POD objects to va_start 2003-04-27 21:55:31 +00:00
Glenn Maynard 5997e92064 whitespace 2003-04-26 21:07:43 +00:00
Glenn Maynard 42e25bf730 I think Darwin shouldn't define LINUX.
Add framework for the OSS driver (not yet used).
2003-04-26 21:05:41 +00:00
Glenn Maynard 450ade0e95 Add a simple OSS driver. Needs testing. Currently asks for 48000Hz,
but we need a way to ask the sound system what the "preferred" sample
rate is.
2003-04-26 20:59:02 +00:00
Glenn Maynard c2302b3776 fix crash 2003-04-26 06:06:24 +00:00
Glenn Maynard 779ed644d0 1. Introduce bug in unused code
2. Try to use said code a week later
3. ??????
4. (reuse an old joke)
2003-04-26 04:06:14 +00:00
Glenn Maynard ecebd53c34 reduce some memory allocs in the sound thread 2003-04-25 19:52:54 +00:00
Glenn Maynard 60921db8e5 Stop using basic_string for Sint32. We only use it in one place and it's
a bit of a performance hit there ...
2003-04-25 19:40:49 +00:00
Glenn Maynard c6115c79b9 remove trace 2003-04-25 08:27:58 +00:00
Glenn Maynard 83d7453553 remove another GLU call 2003-04-25 08:17:27 +00:00