Glenn Maynard
2bdff91293
preload cancel all sound
2005-02-07 23:31:55 +00:00
Glenn Maynard
f752e1c3b0
hide NoteData::InsertHoldTails away in NoteDataUtils
2005-02-07 22:03:32 +00:00
Glenn Maynard
10bc0bf336
remove NoteData::RemoveHoldTails
...
cleanup
2005-02-07 21:55:43 +00:00
Glenn Maynard
d29a686245
remove TAP_ORIGINAL_HOLD_TAIL
2005-02-07 21:32:22 +00:00
Glenn Maynard
8a6d8aa6f0
do NoteDataUtil::LoadFromSMNoteDataString without RemoveHoldTails
2005-02-07 21:31:18 +00:00
Glenn Maynard
62ed8ffd2f
implement clamping for caps
2005-02-07 21:13:04 +00:00
Glenn Maynard
d1fbf3f1f5
Only iterate over the section of a hold note that's on screen. Fixes slowness
...
with extremely long hold notes; now, even if a hold note has a
MAX_NOTE_ROW duration (which would be a bug), we shouldn't slow down.
2005-02-07 21:00:21 +00:00
Glenn Maynard
1962259078
revert; bugs should be fixed, not ignored
2005-02-07 19:27:49 +00:00
Glenn Maynard
f8084888fe
Only do NTPAD check in Windows. This belongs in ArchHooks, but I don't want to drag INPUTMAN into there ...
2005-02-07 09:48:52 +00:00
Glenn Maynard
22a177d345
This isn't needed; the correct fix for debugging in 2k is to enable emulated DirectInput (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DirectInput\Emulation).
2005-02-07 09:46:45 +00:00
Glenn Maynard
3a973eecbb
move priority boosting stuff to ArchHooks
2005-02-07 09:35:07 +00:00
Glenn Maynard
c622e6efd9
cleanup
2005-02-07 09:23:20 +00:00
Glenn Maynard
dc0582de4b
fix compile
2005-02-07 09:21:13 +00:00
Glenn Maynard
a0cb54c2be
fix compile, cleanup
2005-02-07 09:19:53 +00:00
Glenn Maynard
715a688008
remove platform-specific stuff from StpeMania.cpp
2005-02-07 09:17:57 +00:00
Glenn Maynard
1ffe2f4b89
make g_hWndMain local to GraphicsWindow
2005-02-07 09:16:48 +00:00
Glenn Maynard
7ccda6012d
use GraphicsWindow::GetHwnd
2005-02-07 09:16:00 +00:00
Glenn Maynard
28241e30aa
add GraphicsWindow::GetHwnd
2005-02-07 09:09:29 +00:00
Glenn Maynard
acceffb39a
cleanup
2005-02-07 09:04:53 +00:00
Glenn Maynard
bbd1b1ee57
cleanup
2005-02-07 09:03:43 +00:00
Glenn Maynard
d4305e12ed
includes
2005-02-07 09:00:43 +00:00
Glenn Maynard
1d4d44af08
Fix loading window getting the default icon, by loading an icon from the theme as early as we can.
2005-02-07 08:59:02 +00:00
Glenn Maynard
ca3e1ef9ff
LoadingWindow::SetIcon
2005-02-07 08:57:13 +00:00
Glenn Maynard
cd7b71ebd7
loading windows should do the initial paint themselves
2005-02-07 08:40:37 +00:00
Glenn Maynard
bf4299dd2e
cleanup
2005-02-07 08:26:07 +00:00
Glenn Maynard
fb0aa0f465
allow wildcard unmounting
2005-02-07 08:11:40 +00:00
Glenn Maynard
ad59a32a69
flush sound after first update
2005-02-07 07:41:31 +00:00
Glenn Maynard
cba25bd409
fix flush
2005-02-07 07:40:50 +00:00
Glenn Maynard
7e877634c4
use plain locked vectors; less opportunity for memory leaks
2005-02-07 07:25:32 +00:00
Glenn Maynard
c2317c7a40
use a wakeup signal instead of lame polling (cleanups as a result coming)
2005-02-07 07:06:28 +00:00
Glenn Maynard
96356eafdf
fix compile
2005-02-07 07:02:51 +00:00
Glenn Maynard
c60f76ebb5
simplify: remove g_ThreadedMusicStart
2005-02-07 06:56:05 +00:00
Glenn Maynard
9fc30dc5e2
comment
2005-02-07 06:55:26 +00:00
Glenn Maynard
15a692d4cc
cleanups
2005-02-07 06:49:00 +00:00
Glenn Maynard
a0c9398419
cleanup
2005-02-07 06:46:41 +00:00
Glenn Maynard
9c54026391
do both score mappings together
2005-02-07 06:20:22 +00:00
Glenn Maynard
72d7695bed
run autosync before the game mapping (really)
2005-02-07 06:19:43 +00:00
Glenn Maynard
188cbfa063
merge TNS_HIT_MINE handling
2005-02-07 06:17:07 +00:00
Glenn Maynard
714a432012
cleanup
2005-02-07 06:07:52 +00:00
Glenn Maynard
4e51acd2f6
run autosync before the game mapping; cleanup
2005-02-07 06:06:51 +00:00
Glenn Maynard
efd190316d
move mapping into Game
2005-02-07 06:05:42 +00:00
Glenn Maynard
7cb1b266d3
improve scoping
2005-02-07 06:02:15 +00:00
Glenn Maynard
f390d4da75
only do a separate search for keys if the initial search didn't find anything;
...
if we're testing a tap to grade it, always use that tap's key, too
2005-02-07 05:58:23 +00:00
Glenn Maynard
69284c6692
fix mapping
...
cleanup
2005-02-07 05:56:43 +00:00
Glenn Maynard
c9021889e9
simplify
2005-02-07 04:43:39 +00:00
Glenn Maynard
1905fc9a22
attempting to clean up Player::Step. This just shifts the stuff to
...
ScreenGameplay::Update, but at least it keeps this logic out of Player ...
2005-02-07 04:12:51 +00:00
Glenn Maynard
c37de6424a
cleanup. Change2DAnimState only sets a variable, and nothing else
...
ever changes it, so there's no harm in sending the same value repeatedly.
2005-02-07 04:02:38 +00:00
Glenn Maynard
5a83da5411
cleanup
2005-02-07 04:00:18 +00:00
Glenn Maynard
7c40fec261
merge duplicate attack code
2005-02-07 03:54:45 +00:00
Glenn Maynard
5356bb6b96
merge duplicate mine code
2005-02-07 03:45:25 +00:00
Glenn Maynard
4c0a55a295
when we MountCard, we must always UnmountCard
...
disable FlushAndReset. It doesn't fit well with the timeout scheme:
we have separate timeouts, but FlushAndReset is global. I could enable
the timeout separately for this, but the mount -o remount should probably
just be part of Unmount and we don't have to reload usb-storage anymore ...
2005-02-07 03:39:51 +00:00
Glenn Maynard
bd516940b2
when we MountCard, we must always UnmountCard
2005-02-07 03:37:43 +00:00
Glenn Maynard
5302cd8535
fix key search going in the wrong direction
2005-02-07 03:21:18 +00:00
Glenn Maynard
d67eb7f243
simplify
2005-02-07 03:20:52 +00:00
Glenn Maynard
406afe4a03
memory card graphics
2005-02-07 00:41:32 +00:00
Glenn Maynard
f1e84f98b8
driver update
2005-02-06 19:49:34 +00:00
Glenn Maynard
c9afb6b376
fix g++ compile
2005-02-06 19:47:11 +00:00
Glenn Maynard
d38fedfcaa
fix thread handle leak (these don't show up as threads anywhere, but
...
sysinternals handle.exe shows them)
2005-02-06 10:25:13 +00:00
Glenn Maynard
9c27d12641
fix files not being closed properly
2005-02-06 10:20:03 +00:00
Glenn Maynard
7d51ae8641
don't pause memory cards in demonstration
2005-02-06 10:10:38 +00:00
Glenn Maynard
ddae9b2242
unload all profiles on reset, not just ones loaded from memory cards;
...
fixes wrong profile being used when a card is inserted too late and a new
game starts (local profile was already loaded)
2005-02-06 09:58:50 +00:00
Glenn Maynard
39e5c30706
fix race condition causing corruption if FlushDirCache() is called from
...
one thread while another thread is simultaneously filling in a FileSet:
you don't really own a FileSet if m_bFilled is false
2005-02-06 09:56:21 +00:00
Glenn Maynard
cc1454dd46
logging
2005-02-06 08:55:46 +00:00
Glenn Maynard
8274c123b7
don't wait for removal if in MEMORY_CARD_STATE_REMOVED
2005-02-06 08:50:08 +00:00
Glenn Maynard
97a4a65b26
Unmount cards if we time out. "Locking" and "finalizing" are the same;
...
merge them. (They're both enabled and disabled in the same place.)
Pause the memory card thread during gameplay, so any changes will
wait until the current stage finishes (so we don't interrupt the player with
a noise and possibly skip). Work on making MemoryCardManager::LockCards()
block if the card is in CHECKING.
2005-02-06 08:48:55 +00:00
Glenn Maynard
a89d88b5e6
make IsTimedOut() public
...
allow waiting for the next heartbeat
2005-02-06 08:44:01 +00:00
Glenn Maynard
c8f2f71551
fix vc compile
2005-02-06 06:34:40 +00:00
Glenn Maynard
d14ea1ee41
compiles (doesn't support everything yet)
2005-02-06 05:46:07 +00:00
Glenn Maynard
7a21e95ede
memory card work (linux update in a few minutes)
2005-02-06 05:11:57 +00:00
Glenn Maynard
ca4589a8c3
Memory card work: Show "CHECKING" when we've seen the card and
...
havn't finished checking it out yet (eg. write check). This improves responsiveness:
a slow card will indicate that we see the card immediately, and it helps
diagnostics since we can easily tell if the machine sees a card. Allow re-
establishing a memory card removed after finalization, as long as it has the
same serial number.
2005-02-06 05:08:46 +00:00
Glenn Maynard
7e1be2bde3
fix tabbing
2005-02-06 00:25:29 +00:00
Glenn Maynard
bc3f8803c3
minor cleanups
2005-02-05 23:56:23 +00:00
Glenn Maynard
9f15f43462
disable inline assembly; it makes assumptions about compiler flags that we don't want to meet
2005-02-05 23:41:32 +00:00
Glenn Maynard
a4de4c8c0d
better function registration: store a reference, instead of making up a name
2005-02-05 23:03:20 +00:00
Glenn Maynard
d1a701a9a9
more g++ 3.4 compile fixes
2005-02-05 21:46:52 +00:00
Glenn Maynard
965d5e663d
incomplete g++ 3.4 compile fix
2005-02-05 21:40:36 +00:00
Glenn Maynard
3becf70986
fix warning
2005-02-05 21:27:15 +00:00
Glenn Maynard
c35ca4744e
update
2005-02-05 21:25:02 +00:00
Glenn Maynard
2e31667fd3
let's not copy and paste copyright notices too verbatim :)
2005-02-05 21:21:51 +00:00
Glenn Maynard
9c55974c63
remove MemoryCardDriverThreaded
2005-02-05 19:18:49 +00:00
Glenn Maynard
153f542193
fix gcc warnings
2005-02-05 19:17:11 +00:00
Glenn Maynard
6d6679369c
remove MemoryCardDriverThreaded
2005-02-05 19:12:47 +00:00
Glenn Maynard
76e45504a3
MemoryCardDriverThreaded_Linux compiles (not yet tested)
2005-02-05 19:12:02 +00:00
Glenn Maynard
c7434d29de
simplify; pausing and threading is handled above (Linux update in a few
...
minutes)
2005-02-05 19:02:25 +00:00
Glenn Maynard
2d9312c207
remove MemoryCardDriverThreaded
2005-02-05 19:01:08 +00:00
Glenn Maynard
d468e15435
Add a memory card WorkerThread. This works simiilarly to the file
...
worker threads (though somewhat simpler). Changes: MemoryCardDriverThreaded
is going away; all memory card drivers are implicitly threaded at a higher
level (there's no reason to not do so). Memory card drivers can safely time
out; we'll recover sanely. This needs a bit more work, but should be more
tolerant of long memory card recovery periods.
2005-02-05 19:00:33 +00:00
Glenn Maynard
93b70b137d
add TimeoutEnabled query
2005-02-05 18:57:27 +00:00
Glenn Maynard
c828e51c3b
add RageUtil_WorkerThread
2005-02-05 18:57:00 +00:00
Glenn Maynard
69a175f001
fix REQ_SHUTDOWN, thread name
2005-02-05 09:08:05 +00:00
Glenn Maynard
4d7f4e4cdd
split out generic worker thread code from ThreadedFileWorker, so memory
...
cards can use it, too
2005-02-05 08:02:43 +00:00
Glenn Maynard
4ce15369cf
unlike member functions, templates are not automatically inlined
2005-02-05 05:53:18 +00:00
Glenn Maynard
bf80420cd8
short desc in the header, long desc in the implementation
2005-02-05 03:18:27 +00:00
Glenn Maynard
944bba77b6
I don't remember what RageMatrixCommand was for. Remove it.
2005-02-05 03:15:40 +00:00
Glenn Maynard
3e389c103b
Translation and scaling (when applied in that order) are trivially combined;
...
save a matrix multiply for every actor. (Maybe we can avoid doing any,
for objects which are neither rotated nor scaled--such as those positioned
based on their parent--but I'm not sure it's worth it.) Rotations can be
combined without doing a full matrix multiply, too; if an actor rotates at all,
only do one matrix multiply.
2005-02-05 03:12:04 +00:00
Glenn Maynard
aceff788bf
remove wasteful and mostly unused matrix math helpers (pass by reference,
...
don't return by value)
2005-02-05 02:42:33 +00:00
Glenn Maynard
9a164cd7b4
simplify
2005-02-03 03:39:15 +00:00
Glenn Maynard
38eaa83497
fix m_NoteFieldEdit being updated twice, causing animations to play
...
too fast
2005-02-03 03:13:06 +00:00
Glenn Maynard
343dc2f6f1
fix warnings
2005-02-03 03:11:30 +00:00
Glenn Maynard
3553d58953
fix warning
2005-02-03 03:10:27 +00:00
Glenn Maynard
3abe2aea40
Fix warning. Always declare integer variables as "int" (or "unsigned")
...
unless you have a real reason to declare it as something else. There's
no benefit to using "uint8_t" here.
2005-02-03 03:09:52 +00:00