Commit Graph
100 Commits
Author SHA1 Message Date
Glenn Maynard 2ec5e3b9ca VC choked on this. If you're editing it by hand, please don't unless you can actually test in the IDE ... 2006-05-02 20:50:08 +00:00
Glenn Maynard ed18fe0e9b cleanup 2006-04-29 21:49:56 +00:00
Glenn Maynard 75ac3eb491 update 2006-04-29 21:24:18 +00:00
Glenn Maynard 5c8ff23cfb unused 2006-04-29 21:22:16 +00:00
Glenn Maynard 0e8b156b38 no-op 2006-04-29 21:22:04 +00:00
Glenn Maynard 178ffec501 remove no-op calls 2006-04-29 21:20:28 +00:00
Glenn Maynard 45449a216e fix merge error? 2006-04-29 21:18:37 +00:00
Glenn Maynard ae22035669 unused 2006-04-29 02:11:13 +00:00
Glenn Maynard 96b027ac1d broadcast ChangeCourseSongIn/Out (deprecates CourseSongNumberChangeIn/Out)
more general way of showing graphics bound to the song number (still a hack, though)
2006-04-29 02:03:08 +00:00
Glenn Maynard e7f5a8fb2d cleanup 2006-04-29 00:41:30 +00:00
Glenn Maynard 31e3ac5ddd bind GetCommand 2006-04-28 03:33:12 +00:00
Glenn Maynard 6e5d986e7b bind PlayCommandOnLeaves 2006-04-27 22:46:46 +00:00
Glenn Maynard 95f1b068a8 remove stray control characters
replace unicode "horizontal ellipsis" with "..." (used inconsistently)
2006-04-27 20:42:24 +00:00
Glenn Maynard 06fdd286f4 add asserts 2006-04-27 02:51:33 +00:00
Glenn Maynard 2886934711 fixes 2006-04-24 22:11:43 +00:00
Glenn Maynard 1ba1abe05b don't warn missing if base text is blank 2006-04-24 16:54:31 +00:00
Glenn Maynard 7e2fd6296a fix conversion 2006-04-24 16:46:55 +00:00
Glenn Maynard b654138064 fix escaping 2006-04-24 16:46:30 +00:00
Glenn Maynard 95ecac26fa fix incorrect warning with intentionally blank strings 2006-04-24 16:38:24 +00:00
Glenn Maynard 2c33835ba4 check for obsolete translations 2006-04-24 16:36:35 +00:00
Glenn Maynard 8be63dc770 and more dupes, mismatches, old 2006-04-24 16:31:28 +00:00
Glenn Maynard ec2a152228 more dupes, mismatches, old 2006-04-24 16:28:46 +00:00
Glenn Maynard c9e429e426 fix "= " 2006-04-24 16:26:25 +00:00
Glenn Maynard a3ba12b7a9 dupes, mismatches, old 2006-04-24 16:26:13 +00:00
Glenn Maynard 2afb805158 old 2006-04-24 16:21:34 +00:00
Glenn Maynard 6f8aabc44a dupes, mismatches 2006-04-24 16:19:35 +00:00
Glenn Maynard e0ab9e73ab cleanup text 2006-04-24 16:15:09 +00:00
Glenn Maynard 668a958fa2 add encoding check 2006-04-24 16:08:39 +00:00
Glenn Maynard d11ed7b8bf split out DumpList 2006-04-24 16:08:04 +00:00
Glenn Maynard d670bcc516 fix entity; fix quotes (why are there quotes here?) 2006-04-24 16:00:36 +00:00
Glenn Maynard a2de371ac7 fix encoding 2006-04-24 15:58:25 +00:00
Glenn Maynard 407c2dd420 revert (goofy FOREACH macro scoping needs fixing first) 2006-04-24 15:44:49 +00:00
Glenn Maynard 374c6cc3ea spacing changes only 2006-04-24 15:39:54 +00:00
Glenn Maynard 9e4c0c3448 fix substitutions 2006-04-24 15:31:28 +00:00
Glenn Maynard 44377e187a Fix "--with-ffmpeg" causes ffmpeg to be disabled. (This was "$enableval"
before.  The "enable" vs. "with" distinction in autoconf is confusing
and not useful ...)
2006-04-22 00:20:19 +00:00
Glenn Maynard 5f3fe4ec4f fix RemoveSimultaneousNotes never removes hold notes 2006-04-14 12:44:34 +00:00
Glenn Maynard fad6a6e4c1 cleanup 2006-04-14 12:27:58 +00:00
Glenn Maynard 3e036ff06a Apply m_ColumnInfo->fXOffset in GetXPos. Doing this in BeginDrawTrack makes
it hard to apply effects in the right order.  (This might also be able to
simplify Flip, but that's for later ...)

Fix Mini scaling doesn't apply to mod adjustments.  Fixes weird "Mini+Flip"
and probably other combinations.

(This also eliminates the need for NoteFieldMode entirely, which I've wanted
to remove for a long time.)
2006-04-14 12:21:34 +00:00
Glenn Maynard 7a94b959c9 Destroy D3D after destroying the window. Fixes another DestroyWindow
crash: start in fullscreen, change to a window, close the game.

This is sort of trial-and-error: there seems to be no documentation about
the proper order of shutting down a window.  Shutting down D3D first
makes sense: restore the window to normal, then destroy it, so we don't
kill the window while D3D is still using it.  But this seems to work, and
it's how we did it in 3.9.

(I think releasing D3D first is leaving traces behind in the window, which
then cause stale dereferences; the previous FreeLibrary() change was for
the same problem, and this seems to just be another incarnation of that.)

7c918fea: ntdll!RtlpWaitForCriticalSection [7c900000+18f8f+5b]
77d48bd9: USER32!GetWindowThreadProcessId [77d40000+8a80+159]
77d4b3cc: USER32!DefWindowProcW [77d40000+b33c+90]
7c90104b: ntdll!RtlEnterCriticalSection [7c900000+1005+46]
6d9ab228: D3D8!CheckFullscreen [6d9a0000+b060+1c8]
77d48734: USER32!GetDC [77d40000+86c7+6d]
77d4b4c0: USER32!DefWindowProcW [77d40000+b33c+184]
7c90eae3: ntdll!KiUserCallbackDispatcher [7c900000+ead0+13]
77d4daf6: USER32!DestroyWindow [77d40000+daea+c]
00539971: void GraphicsWindow::DestroyGraphicsWindow(void) [00400000+1398d1+a0]
2006-04-10 15:08:04 +00:00
Glenn Maynard 46c1b2ac05 oops. Do keep the non-offset beat around, and use it for actor effects.
(This should probably be used for more than this; this stuff needs a
cleanup ...)

(test case: pick a song with a stop near the beginning of the sample music,
eg. Fly With Me; no matter what the offset is set to, it should always show
the same pause on beat effects.  This could do so while honoring the offset,
but getting that right in GameSoundManager is very tricky, and it's usually
not important for non-gameplay cosmetics.)
2006-04-09 15:54:53 +00:00
Glenn Maynard f486609781 if eip is NULL, don't put a NULL into the frame list and terminate it prematurely 2006-04-08 12:44:40 +00:00
Glenn Maynard 62312463cb Remove old API restriction. (I've had this sitting in my WC for so long
I don't remember why I needed it, but it's an arbitrary restriction, anyway.)
2006-04-06 09:43:44 +00:00
Glenn Maynard fe00ec613c move out of PrefsManager 2006-04-06 09:39:29 +00:00
Glenn Maynard 663d6cc787 typo 2006-04-05 22:19:10 +00:00
Glenn Maynard be5ff68d58 Fix race condition: thread->ThreadId is not necessarily assigned before
StartThread is run.
2006-04-05 06:45:03 +00:00
Glenn Maynard 185d3d902d It's RageDisplay::EndFrame()'s job to give up CPU between frames. Currently,
we're doing this partially in EndFrame (in FrameLimitBeforeVsync and/or the
actual vblank wait), and partially in RunGameLoop.  These serve the same
purpose, so merge them.

(The renderer itself should have more control over this, but this is an
improvement.)
2006-04-05 05:36:04 +00:00
Glenn Maynard fea9792fd6 %s fixes 2006-04-05 05:29:28 +00:00
Glenn Maynard fa01aef5f5 add "%s" mismatch check 2006-04-05 05:26:31 +00:00
Glenn Maynard df6d3fcc7e rare crash that I havn't been able to repro:
6d9ab2a0: StepMania!00000000
77d48734: USER32!GetDC [77d40000+86c7+6d]
77d4d05b: USER32!EnumDisplayMonitors [77d40000+cf63+f8]
77d4b4c0: USER32!DefWindowProcW [77d40000+b33c+184]
77d4cf9e: USER32!EnumDisplayMonitors [77d40000+cf63+3b]
7c90eae3: ntdll!KiUserCallbackDispatcher [7c900000+ead0+13]
77d4daf6: USER32!DestroyWindow [77d40000+daea+c]
005ddc02: void GraphicsWindow::DestroyGraphicsWindow(void)
005de55e: void GraphicsWindow::Shutdown(void)
7c917304: ntdll!LdrUnloadDll [7c900000+1718b+179]
006716eb: RageDisplay_D3D::~RageDisplay_D3D(void)

0x6d9ab2a0 lies within D3D8.DLL, which LdrUnloadDll unloaded.
2006-04-05 04:10:03 +00:00
Glenn Maynard 438ef9fbe1 cleanup 2006-04-05 03:08:42 +00:00
Glenn Maynard c2b7edcf2b make sure these are always initialized (don't know if this actually fixes anything;
copying writable files is rare)
2006-04-05 01:26:07 +00:00
Glenn Maynard d0ec837806 Prefer the current steps/trail, when possible. 2006-04-05 01:16:45 +00:00
Glenn Maynard a6479cfc12 simplify 2006-04-05 01:07:53 +00:00
Glenn Maynard b4dd9bdedd style 2006-04-05 01:01:01 +00:00
Glenn Maynard 6ba2425d96 unused 2006-04-05 00:56:31 +00:00
Glenn Maynard 79a9377506 title is "language"; explanation is "choose language" (explanation was
copied over title)
2006-04-05 00:18:55 +00:00
Glenn Maynard 0d4e8b44c2 Convert ACP strings from the OS that we show to the user. 2006-04-04 23:44:37 +00:00
Glenn Maynard 05c1ab44b9 simplify 2006-04-04 23:40:43 +00:00
Glenn Maynard f0fd06f92c add ConvertCodepageToWString, ConvertACPToUTF8
change ConvertWstringToACP -> ConvertWstringToCodepage
2006-04-04 23:38:09 +00:00
Glenn Maynard 76f0346122 checkpoint paranoia 2006-03-30 08:10:11 +00:00
Glenn Maynard 033080e3cc Invert this: instead of "use menu if present, otherwise keyboard",
prefer keyboard.  That's gives more intuitive behavior if menu
inputs are mapped on alpha keys.
2006-03-30 00:19:19 +00:00
Glenn Maynard 63f59c1e60 missed commit 2006-03-29 23:49:11 +00:00
Glenn Maynard 788ad134f1 This broke beat alignment, and after that was fixed, other questions
came up (like how to align beat effects correctly).  Revert this and
fix assist tick differently.

Add GetBeatAndBPSFromElapsedTimeNoOffset, GetBeatFromElapsedTimeNoOffset,
GetElapsedTimeFromBeatNoOffset.  Use them to ignore GlobalOffsetSeconds.
2006-03-29 11:12:20 +00:00
Glenn Maynard 48063cef68 cleanup 2006-03-29 10:35:48 +00:00
Glenn Maynard cefac82d1c Ignore offset for beat alignment. This could use the offset, actually, but typical offsets are around a frame, so it's not actually noticable; and making it work reliably would be a pain. Only use the offset for judgements and arrow rendering. 2006-03-29 10:15:21 +00:00
Glenn Maynard 88f9590b9e ignore offset in skip check 2006-03-29 10:13:34 +00:00
Glenn Maynard 757c6f8a6a fix checkpoint 2006-03-29 10:12:24 +00:00
Glenn Maynard 92cfec6bba simplify (tracking down skips) 2006-03-29 10:10:54 +00:00
Glenn Maynard a99731d5d9 simplify (tracking down skips) 2006-03-29 10:09:10 +00:00
Glenn Maynard 002e1b99b2 unused 2006-03-29 08:49:57 +00:00
Glenn Maynard 0195ad338b fix merge 2006-03-29 08:37:54 +00:00
Glenn Maynard 31eb3ee344 Fix sample music doesn't always start. This depended on m_Out being
started first, which was brittle.
2006-03-29 08:14:29 +00:00
Glenn Maynard 32378f65ff fixup (oops) 2006-03-29 08:11:55 +00:00
Glenn Maynard 90b4af5947 cleanup 2006-03-29 08:11:07 +00:00
Glenn Maynard d939a15876 Don't list difficulties that don't exist in "Fill Steps" (ROW_SOURCE_STEPS_TYPE). 2006-03-29 07:56:39 +00:00
Glenn Maynard 7812a4ba47 cleanup 2006-03-29 07:55:53 +00:00
Glenn Maynard 94886b6d06 clean up thread checkpoints output 2006-03-29 05:19:13 +00:00
Glenn Maynard 389e7e3da3 style cleanup 2006-03-29 04:59:28 +00:00
Glenn Maynard 84f87db44d Do include offset information for internal symbols (not just DLLs). They're helpful
for narrowing down exactly where we are in a function.
2006-03-29 04:48:39 +00:00
Glenn Maynard cec466b584 update 2006-03-29 04:45:58 +00:00
Glenn Maynard e7d45c189b Always include the "___ImageBase" symbol, so the first RVA entry
is always (hopefully) the base of the EXE.  That way, we can display
consistent offsets relative to that.
2006-03-29 04:45:12 +00:00
Glenn Maynard 6faf9b9b69 fix selecting an edit and moving to chance results in weird difficulty
selection behavior
2006-03-29 02:54:11 +00:00
Glenn Maynard 2e0ff9d9c8 Change default BGBrightness to line up with BGBrightnessOrStatic. 2006-03-29 01:52:30 +00:00
Glenn Maynard ea298ce438 cleanup 2006-03-29 01:43:51 +00:00
Glenn Maynard 5d8a93c19a checkpoints 2006-03-29 01:43:18 +00:00
Glenn Maynard 514dd69f13 temp revert: this returns [0,n), not [0,n] (fixes crashes) 2006-03-28 12:47:54 +00:00
Glenn Maynard 8d6c634d1e clear these; they're global (though we won't create two RageDisplay_D3D
objects in one run)
2006-03-28 12:24:00 +00:00
Glenn Maynard 800ec64460 remove old 2006-03-28 10:19:47 +00:00
Glenn Maynard 3e20c357ad fix wrong options positions when memory cards inserted 2006-03-28 10:18:45 +00:00
Glenn Maynard 71a4067948 rename 2006-03-28 10:10:44 +00:00
Glenn Maynard 4306178913 sOsMountDir can be long--a mountpoint in Linux and OSX. (It can also
be in NT, but we don't support that yet.)  Move it to a separate text.
2006-03-28 10:03:22 +00:00
Glenn Maynard 626cee92af comment 2006-03-28 09:57:31 +00:00
Glenn Maynard d58f58bd88 Fix ScreenOptions::RestartOptions doesn't call AfterChangeRow.
(AfterChangeRow calls AfterChangeValueOrRow.)
2006-03-28 09:56:31 +00:00
Glenn Maynard b02e382975 style 2006-03-28 09:34:10 +00:00
Glenn Maynard ee9c292b09 Implement GlobalOffsetSeconds in GameState::UpdateSongPosition,
not TimingData.  TimingData is a simple data structure, and shouldn't
be affected by hardware tweaks.  This is also easier to bypass in cases
we don't want GlobalOffsetSeconds.

Don't adjust assist tick by GlobalOffsetSeconds.
2006-03-28 09:28:55 +00:00
Glenn Maynard 8d3253442c remove GetBeatAndBPSFromElapsedTime compat 2006-03-28 08:58:30 +00:00
Glenn Maynard 5bcccc78b0 Sometimes, the sync changes negligibly due to rounding error when the user
puts it back where it was.  Use the same logic as GetSyncChangeTextGlobal
and GetSyncChangeTextSong; if the changes are so small that we wouldn't
even display them, don't count them as changed.  (fixes ScreenSaveSync
coming up with an empty list)
2006-03-28 07:26:37 +00:00
Glenn Maynard f4b2e204d6 style cleanup 2006-03-28 06:23:01 +00:00
Glenn Maynard 50bfbb722d Mount Logs to My Documents. The program directory may not be writable. 2006-03-28 06:06:48 +00:00
Glenn Maynard a5453d9652 remove (added twice) 2006-03-28 06:01:24 +00:00