Glenn Maynard
5cd0e91ea5
EmergencyShutdownSDL, moved out of ArchHooks
2004-06-14 17:13:46 +00:00
Glenn Maynard
78ed3f3be6
oops; use DoEmergencyShutdown
2004-06-14 17:04:57 +00:00
Glenn Maynard
690b86936d
test set now links without SDL
2004-06-14 07:12:59 +00:00
Glenn Maynard
2ab9a8e073
add EmergencyShutdown, cleanup
2004-06-14 07:08:21 +00:00
Glenn Maynard
12fc5b9440
add EmergencyShutdown
2004-06-14 07:06:37 +00:00
Glenn Maynard
b73e2614bb
split out SDL- and arch-specific stuff from arch base stuff
2004-06-14 06:44:05 +00:00
Glenn Maynard
1182fa0390
pull in GL ourself
2004-06-14 05:54:01 +00:00
Glenn Maynard
7ef3d3e6bb
set g_X11Display
2004-06-14 05:50:40 +00:00
Glenn Maynard
6440ee4936
LowLevelWindow is responsible for setting g_X11Display
2004-06-14 05:48:28 +00:00
Glenn Maynard
ec75189203
comment
2004-06-14 05:47:17 +00:00
Glenn Maynard
025780fc21
(no, don't use SDL for the rest)
2004-06-14 05:46:49 +00:00
Glenn Maynard
344ab681ef
cleanup
2004-06-14 05:46:13 +00:00
Glenn Maynard
4459d84a17
use RageSemaphore
2004-06-14 05:36:42 +00:00
Glenn Maynard
22fe9d6841
RageSemaphore
2004-06-14 05:29:12 +00:00
Glenn Maynard
1f0ac3792d
#include <pthread.h>, just in case
2004-06-14 05:28:30 +00:00
Glenn Maynard
003ba7cb63
fix compile
2004-06-14 05:25:25 +00:00
Glenn Maynard
cf9d31917f
add TryLock
...
add semaphores
2004-06-14 05:21:46 +00:00
Glenn Maynard
34b3862833
log SDL version
2004-06-14 05:19:42 +00:00
Glenn Maynard
e534493c42
split out SetupSDL
2004-06-14 05:18:09 +00:00
Glenn Maynard
7fd8f3d3cc
define HAVE_SDL
2004-06-14 04:12:19 +00:00
Glenn Maynard
235935572e
remove SDL version check; we only required 1.2.6 due to an alpha blit
...
bug in 1.2.5, and we no longer use SDL's blits
2004-06-14 04:00:14 +00:00
Glenn Maynard
c2d109dc02
events
2004-06-14 03:55:38 +00:00
Glenn Maynard
58cf9f21c5
HandleSDLEvents is too small to be worth splitting
...
handle hwnd changes within the renderers, since it's tied to the window
2004-06-14 03:54:46 +00:00
Glenn Maynard
aa7ad967ae
HandleSDLEvents is too small to be worth splitting
...
all code that handles SDL events is also responsible for enabling and
disabling those events
2004-06-14 03:53:41 +00:00
Glenn Maynard
03e11c81a1
call SDL_UpdateHWnd
2004-06-14 03:34:38 +00:00
Glenn Maynard
b1d49657ab
UpdateHWnd -> SDL_UpdateHWnd in utils
2004-06-14 03:32:32 +00:00
Glenn Maynard
66397a57d3
add HAVE_SDL
2004-06-14 03:23:44 +00:00
Glenn Maynard
04aa247bd7
add HAVE_SDL
2004-06-14 03:16:44 +00:00
Glenn Maynard
9f72b10743
don't call HandleSDLEvents; cleanup
2004-06-14 03:14:00 +00:00
Glenn Maynard
f4cea53212
HandleSDLEvents, comment
2004-06-14 03:13:13 +00:00
Glenn Maynard
56af82b1c9
HandleSDLEvents
2004-06-14 03:12:32 +00:00
Glenn Maynard
47a277ce2b
move HandleSDLEvents to SDL_utils; the renderer is now responsible
...
for calling this
2004-06-14 03:11:39 +00:00
Glenn Maynard
bc7a7b0d37
FocusChanged prototype
2004-06-14 03:09:28 +00:00
Glenn Maynard
6de244ebb1
fix stack framing (why is vc so bad at inline asm?)
2004-06-14 03:02:16 +00:00
Glenn Maynard
0fbd740a37
fix linux compile
2004-06-14 02:32:41 +00:00
Glenn Maynard
bd9494fd43
split out FocusChanged
2004-06-14 02:13:44 +00:00
Glenn Maynard
a69428d17b
explicit RET (return value goes in EAX)
2004-06-14 02:10:47 +00:00
Glenn Maynard
7481f3fcb3
remove PATH_MAX check
2004-06-14 01:23:02 +00:00
Glenn Maynard
2c3db44464
error handling fixes; SDL color key fix
2004-06-14 01:13:31 +00:00
Glenn Maynard
87823229c5
error handling fixes
2004-06-14 01:12:22 +00:00
Glenn Maynard
40c9749d54
fix warning
2004-06-14 01:10:26 +00:00
Glenn Maynard
66fb9eece6
use RageSurface
2004-06-14 01:09:11 +00:00
Glenn Maynard
b481fc465b
excessively large commit: use RageSurface
2004-06-14 00:51:00 +00:00
Glenn Maynard
201b1b1f22
fix error
2004-06-14 00:48:50 +00:00
Glenn Maynard
0c055d5ea4
RageSurface
2004-06-14 00:46:49 +00:00
Glenn Maynard
b44f1404ce
RageSurface, to replace SDL_Surface.
...
Most of SDL_utils is moved to RageSurfaceUtils, and does not require
SDL; SDL_utils is now only utils that actually need SDL.
(My goal isn't to eliminate SDL; it's to make it a back-end library, that
can be disabled on some platforms, rather than a required library as it
is now.)
2004-06-14 00:37:55 +00:00
Glenn Maynard
49259c1b12
fix ArchSwap24
2004-06-13 23:14:13 +00:00
Glenn Maynard
f2578fe6a9
s/RageSurface/RageSurfaceUtils/
2004-06-13 20:19:28 +00:00
Glenn Maynard
bc9bbb392c
cleanup
2004-06-13 20:05:36 +00:00
Glenn Maynard
dd4bc636f4
cleanups
2004-06-13 20:03:18 +00:00
Glenn Maynard
ee7a6bd261
unneeded include
2004-06-13 19:59:21 +00:00
Glenn Maynard
b58fa07741
sdl, linux, unix automake conditionals
2004-06-13 19:58:07 +00:00
Glenn Maynard
fc202fc210
more useful LINUX/UNIX defines
2004-06-13 19:30:45 +00:00
Glenn Maynard
5a81e7a80e
move some vc hacks into arch_setup
2004-06-13 19:06:54 +00:00
Glenn Maynard
76319610bc
maybe work around lua -ldl stuff
2004-06-13 18:43:21 +00:00
Glenn Maynard
d0361ce63f
stdint.h on all unix
2004-06-13 07:56:33 +00:00
Glenn Maynard
d3bd09cdc8
fix up more obscure races
2004-06-13 07:55:27 +00:00
Glenn Maynard
9b7eeaf1af
endian update
2004-06-13 07:36:15 +00:00
Glenn Maynard
1efd594730
byte swap update
2004-06-13 07:35:08 +00:00
Glenn Maynard
59fc237f79
endian.h check
2004-06-13 07:34:20 +00:00
Glenn Maynard
c6d64feefc
LITTLE_ENDIAN, BIG_ENDIAN, BYTE_ORDER
2004-06-13 07:32:44 +00:00
Glenn Maynard
b71f5e26bb
fix silly type errors
2004-06-13 07:14:24 +00:00
Glenn Maynard
ec7a148b82
remove mySDL_Swap24
2004-06-13 07:11:49 +00:00
Glenn Maynard
a6f0b840e9
Swap24BE
2004-06-13 07:10:26 +00:00
Glenn Maynard
b29e17b118
fix most odd thread startup problems
2004-06-13 07:09:41 +00:00
Glenn Maynard
186f840e20
fix RageThread::HaltAllThreads crash causing the crash handler to
...
exit with no output
2004-06-13 06:47:02 +00:00
Glenn Maynard
c148ca32f6
use Swap24BE
...
(I'm going to bed; you can compile now, Steve)
2004-06-12 08:24:25 +00:00
Glenn Maynard
7f00713a25
native endian functions
2004-06-12 08:22:32 +00:00
Glenn Maynard
82786ef70b
ENDIAN_LITTLE/ENDIAN_BIG check
2004-06-12 08:16:02 +00:00
Glenn Maynard
597929d870
ENDIAN_LITTLE, byte swaps
2004-06-12 07:58:31 +00:00
Glenn Maynard
cb95729633
AC_C_BIGENDIAN
2004-06-12 07:57:34 +00:00
Glenn Maynard
0f95a58936
ENDIAN_BIG
2004-06-12 07:57:19 +00:00
Glenn Maynard
2759cda924
archutils/Unix/arch_setup.h
2004-06-12 07:47:19 +00:00
Glenn Maynard
e9a6c74745
-DUNIX
2004-06-12 07:46:40 +00:00
Glenn Maynard
da2cd0686c
fix
2004-06-12 07:46:09 +00:00
Glenn Maynard
59fce6b7ca
linux arch_setup
2004-06-12 07:23:23 +00:00
Glenn Maynard
3bc4cbf9a4
unneeded header
2004-06-12 06:12:00 +00:00
Glenn Maynard
aef80ea1a0
fix Tremor
2004-06-12 05:43:58 +00:00
Glenn Maynard
2e2426f0d6
output VFS type warning even if LOG isn't around yet
2004-06-12 05:38:49 +00:00
Glenn Maynard
0805aef930
ForceCrashHandlerDeadlock is only implemented in Linux
2004-06-12 01:01:30 +00:00
Glenn Maynard
0259692fbf
c_str()
2004-06-11 23:46:29 +00:00
Glenn Maynard
2454c80541
linux build fix
2004-06-11 22:55:37 +00:00
Glenn Maynard
00fb88edb8
update
2004-06-11 21:36:31 +00:00
Glenn Maynard
2e7eb9d37c
comment
2004-06-11 21:35:57 +00:00
Glenn Maynard
a29018587f
SONGMAN->FlushCaches whenever deleting Steps*
2004-06-11 21:34:30 +00:00
Glenn Maynard
a17b1ead51
separate SongManager::Cleanup and SongManager::FlushCaches
...
Cleanup() is called every screen, to remove large decompressed step
data, but that shouldn't clear trail caches as well;
SongManager::FlushCaches also clears the StepsID cache
2004-06-11 21:31:34 +00:00
Glenn Maynard
0a455d1a64
fix SongManager::Cleanup() not flushing course caches
...
flush StepsID cache in SongManager::Cleanup()
2004-06-11 21:25:00 +00:00
Glenn Maynard
f0cc560c9f
calling RegenRandomTrailEntries between rounds is not needed
2004-06-11 21:13:44 +00:00
Glenn Maynard
b0590a0da1
clear the trail cache automatically when the round seed changes
2004-06-11 21:13:05 +00:00
Glenn Maynard
c8ec4937ec
put fail checks back in STATE_DANCING; otherwise SM_BeginFailed
...
triggers every frame after failing
2004-06-11 20:09:53 +00:00
Glenn Maynard
13104cc6e7
type fix
2004-06-11 19:39:32 +00:00
Glenn Maynard
1332565a7f
threads
2004-06-11 19:38:53 +00:00
Glenn Maynard
46a374ff40
check CRASH_HANDLER
2004-06-11 19:29:03 +00:00
Glenn Maynard
1048967584
use arch/Threads
2004-06-11 19:24:05 +00:00
Glenn Maynard
4c14fb3943
simplify (handle recursive locking in RageMutex)
2004-06-11 19:08:56 +00:00
Glenn Maynard
4c74f84447
cleanup
2004-06-11 07:12:36 +00:00
Glenn Maynard
ef219fce39
small fixes preparing for arch/Threads
2004-06-11 07:09:43 +00:00
Glenn Maynard
6ca1cc935c
implement Threads_Pthreads::GetCrashHandle
2004-06-11 07:06:48 +00:00
Glenn Maynard
e80b8885db
ThreadImpl_Pthreads compiles
2004-06-11 05:26:00 +00:00
Glenn Maynard
310c18d70c
break thread/mutex implementation stuff out of RageThreads
...
(not used yet)
2004-06-11 05:12:58 +00:00