1
0
forked from 0ad/0ad
Commit Graph

601 Commits

Author SHA1 Message Date
MarkT
2b396ccb57 Minor improvements to some simulation code.
This was SVN commit r887.
2004-08-02 23:14:54 +00:00
05f02111da split debug functions out into separate sysdep/debug header
This was SVN commit r883.
2004-08-02 13:47:38 +00:00
85b1f26f65 inline in the hopes the compiler will leave out the call (so call stack isn't polluted)
This was SVN commit r879.
2004-08-02 13:38:05 +00:00
fc77eadd9e re-enable HRTs (had disabled for testing). oops
This was SVN commit r878.
2004-08-02 13:35:45 +00:00
18e55bba4f no message
This was SVN commit r874.
2004-08-01 20:14:14 +00:00
44a4262ab8 bugfix: correct path now returned.
This was SVN commit r873.
2004-08-01 01:08:54 +00:00
358cf63bf3 no message
This was SVN commit r872.
2004-07-31 19:55:36 +00:00
4577ad00dc fix include path
This was SVN commit r870.
2004-07-31 19:47:40 +00:00
1739f66428 no longer emulate FAM, due to a stupid design flaw. instead, implement sysdep/dir_watch interface
This was SVN commit r862.
2004-07-31 15:50:30 +00:00
d5142ff7f8 move from lib/ to lib/sysdep
This was SVN commit r859.
2004-07-31 14:10:06 +00:00
034230a847 aiocb buf field is now volatile void* to bring in line with linux
This was SVN commit r846.
2004-07-31 01:50:54 +00:00
f31bc328f2 Moved all cursor code into cursor.cpp
This was SVN commit r844.
2004-07-29 16:14:22 +00:00
aeb2433acd Don't get confused by messages sent when enabling NVIDIA's QuickZoom
This was SVN commit r840.
2004-07-29 16:02:11 +00:00
ec506d0099 Made the pre-main() exception handler's stack trace use the right context
This was SVN commit r838.
2004-07-28 18:20:32 +00:00
4a71c89dcd no change
This was SVN commit r837.
2004-07-28 18:01:23 +00:00
9aed44a91f more+nicer comments + some cleanup
This was SVN commit r824.
2004-07-28 08:31:13 +00:00
d6a68ad232 Fixed headers for non-PCH, again
This was SVN commit r818.
2004-07-25 11:30:05 +00:00
c8514b7d28 OpenGL cursor (for non-Windows)
This was SVN commit r817.
2004-07-24 19:38:12 +00:00
fe1bee706b Fixed loads of /W4 warnings, because it's easier than doing anything useful. Added some asserts to check potentially dangerous assumptions, implemented a few missing bits of code, adjusted some comments, etc.
This was SVN commit r814.
2004-07-24 14:04:40 +00:00
3f7797b762 Prototype support for using 32-bit textures as cursors on Windows
This was SVN commit r813.
2004-07-23 19:07:18 +00:00
MarkT
6d8b9e33ef Minor additions: Added hotkeys to GUI buttons, camera bookmarking (not sure if this system will stay), shoring up some JS error checking, moved a bunch of constants into the config file and added a new rotation mode.
This was SVN commit r804.
2004-07-22 16:18:12 +00:00
5ea728fd28 Don't bother looking for memory leaks in 'testing' builds
This was SVN commit r803.
2004-07-22 13:25:01 +00:00
MarkT
f02eab8aba Added configurable hotkey-cooker
This was SVN commit r795.
2004-07-21 16:34:07 +00:00
1343de75d8 Added a function to enable excessively slow memory debugging, for detecting heap corruption close to where it happens.
This was SVN commit r792.
2004-07-21 12:28:23 +00:00
1f942c2784 VC2005 fix
This was SVN commit r780.
2004-07-20 17:19:30 +00:00
b61b1e805c Better error handling! Wow!
This was SVN commit r778.
2004-07-19 19:05:34 +00:00
1e40ed1543 More attempted error handling
This was SVN commit r769.
2004-07-17 17:09:33 +00:00
8684287360 Linux fixes
This was SVN commit r763.
2004-07-15 19:59:27 +00:00
82de48832e MICROLOG function for high-speed logging of everything that happened just before a crash
This was SVN commit r761.
2004-07-15 19:29:56 +00:00
af9cf31691 Working crash log
This was SVN commit r760.
2004-07-15 19:12:54 +00:00
3da6540b49 Output BOM and correct line endings in crashlog.txt
This was SVN commit r758.
2004-07-15 09:52:59 +00:00
b284b47a06 add crash log (call stack and minidump)
This was SVN commit r757.
2004-07-15 02:39:25 +00:00
114b4242d9 UNIX: X Clipboard handling and a Text-Mode assertion dialog (with debugger launcher)
This was SVN commit r754.
2004-07-14 12:24:18 +00:00
a3926fb382 renamed assert function to debug_assert_failed (now portable, in sysdep)
This was SVN commit r750.
2004-07-14 03:05:26 +00:00
1a1cce9b18 better handling of complex types, but still buggy.
safer output and some cleanup

This was SVN commit r742.
2004-07-13 21:22:53 +00:00
25a24729ac add win32 clipboard implementation (wchar_t)
This was SVN commit r741.
2004-07-13 21:17:59 +00:00
81b1c6a5ea add portable clipboard routines (wchar_t)
This was SVN commit r740.
2004-07-13 21:17:26 +00:00
aa9c6e7d30 Created a Unix sysdep/ folder, and implemented a unix debug_break function
This was SVN commit r735.
2004-07-12 22:05:49 +00:00
89d47437b4 add debug_break and assert2
This was SVN commit r729.
2004-07-12 16:48:10 +00:00
7a199f8f16 add debug_break impl
This was SVN commit r728.
2004-07-12 16:40:57 +00:00
af58165890 hooked up exception handler; a bit of cleanup
This was SVN commit r727.
2004-07-12 16:38:48 +00:00
bed0e644c4 now mostly last-error-neutral (helps spot warnings+errors)
This was SVN commit r721.
2004-07-12 14:25:39 +00:00
ac997087ea manually import getaddrinfo et al by "hooking" those calls
This was SVN commit r720.
2004-07-12 14:24:26 +00:00
afd7f721d4 no change
This was SVN commit r718.
2004-07-12 14:21:13 +00:00
8364a7fffe Non-gcc fixes
This was SVN commit r698.
2004-07-10 22:05:33 +00:00
901d44d2a6 More SDL_ACTIVEEVENT
This was SVN commit r697.
2004-07-10 21:50:35 +00:00
1001aeacf5 Linux/GCC compat, headers and such
This was SVN commit r695.
2004-07-10 21:25:35 +00:00
bad0b0629d add lseek (needed for uncached_io)
This was SVN commit r667.
2004-07-09 00:17:55 +00:00
92f14cd90a move hInst = GetModuleHandle to wsdl_init, to make sure it's done before anything else
This was SVN commit r664.
2004-07-08 15:16:31 +00:00
c33bcfd03d add keyboard hook to intercept printscreen and windows keys
This was SVN commit r662.
2004-07-08 15:11:42 +00:00
3d7b76c140 add read/write prototypes (file.cpp wasn't including a windows header that defined them elsewhere)
This was SVN commit r653.
2004-07-08 14:24:17 +00:00
b07360ccf7 reqnum uint->int, to allow error return
This was SVN commit r652.
2004-07-08 14:22:10 +00:00
5c96e991eb cleanup; more last-error neutral; fix start_io for file writes
This was SVN commit r651.
2004-07-08 14:21:14 +00:00
66e202afa5 S_* flags in sys/stat are wrong! spent quite a while searching for this problem. disassembly reports S_IWRITE is 0x80, header says 0x100.
fixes aio_open warning tossed when file was created by file_open

This was SVN commit r629.
2004-07-05 02:29:21 +00:00
1f9ac488cd open wrapper: fixes file sharing bug, now passes in O_CREAT mode
This was SVN commit r628.
2004-07-05 02:27:51 +00:00
e22f6b120a revised aio_open (now: aio_reopen) interface; now closer to open(), so that pmode can be passed
This was SVN commit r627.
2004-07-05 02:26:55 +00:00
85b0e120af fixed file sharing + open mode bug
This was SVN commit r626.
2004-07-05 02:26:04 +00:00
d467b1a944 fixed resolution calculation for GetTickCount (previously assumed uniform updates)
This was SVN commit r617.
2004-07-01 13:28:07 +00:00
6a85b4a331 some more comments and cleanup
This was SVN commit r612.
2004-06-30 14:31:19 +00:00
12170cabeb Headers for non-PCH
This was SVN commit r611.
2004-06-28 15:34:10 +00:00
02f509feb7 fixed timer jump issue when timer implementation changes at runtime; now calculates time more accurately
This was SVN commit r609.
2004-06-27 01:45:47 +00:00
bbad6a4d6a fix order of detect calls (TSC wasn't getting selected in wtime due to not-yet-set cpu_smp)
This was SVN commit r608.
2004-06-27 01:42:55 +00:00
ce8f5d3520 described a way to make the TSC work on SMP systems, but not gonna tackle it for now (too little benefit).
also added a bugfix from someone whom i sent the source (hrt_origin now
correct after switching timer)

This was SVN commit r596.
2004-06-24 14:04:30 +00:00
ca4558d48d fix hExitEvent double-free
This was SVN commit r592.
2004-06-23 14:49:14 +00:00
da7d60e3ec fixed HT detect (thanks to philip for testing)
This was SVN commit r590.
2004-06-23 13:45:50 +00:00
d633fd201d add code to check if system is SMP (needed for wtime; not trivial, since hyperthreading may be in play)
This was SVN commit r588.
2004-06-22 17:20:38 +00:00
fd701dc5d9 more L4 warnings stomped
This was SVN commit r585.
2004-06-22 13:22:46 +00:00
fc476e04f6 stomped on numerous warnings
This was SVN commit r584.
2004-06-21 16:29:47 +00:00
fa0741c5f6 increase buffer size; cleaned up basic type lookup routine
This was SVN commit r583.
2004-06-21 14:23:36 +00:00
0d4f9b8a00 add on_each_cpu comments
This was SVN commit r582.
2004-06-21 14:22:33 +00:00
55f7411ba9 improved thread start code
This was SVN commit r581.
2004-06-21 14:22:07 +00:00
d231baccef use ia32_cap() instead of direct access to cap var
This was SVN commit r580.
2004-06-21 14:19:43 +00:00
8c8a692025 added feature bit for SpeedStep; intel added another reg to the CPUID definition, so changed the feature flag ("cap") interface - no more direct access
This was SVN commit r579.
2004-06-21 14:17:48 +00:00
9d13d607ab SDL_Delay, SDL_APPACTIVE event
This was SVN commit r576.
2004-06-21 13:59:58 +00:00
6891ca6e1f improve timer detection logic and document time-source disable macros
This was SVN commit r571.
2004-06-19 22:53:14 +00:00
62f3945116 use EnumDisplaySettingsA instead of unicode version, which seems to cause a memory overrun
This was SVN commit r570.
2004-06-19 22:51:54 +00:00
ccd32180ec fixed header name
This was SVN commit r562.
2004-06-19 14:57:29 +00:00
ed17ed9fb4 debug functions (superassert with stack trace)
This was SVN commit r561.
2004-06-19 14:54:25 +00:00
a9864a5e66 add some code for detecting hyperthread systems (needed for timer). incomplete
This was SVN commit r559.
2004-06-19 14:46:44 +00:00
a27224db69 split out of wdetect; added some code for hyperthreading support (incomplete)
This was SVN commit r553.
2004-06-19 14:36:59 +00:00
f761c91c73 no change
This was SVN commit r552.
2004-06-19 14:31:43 +00:00
3c11f6e5d6 split into os, cpu, and gfx parts
This was SVN commit r551.
2004-06-19 14:30:55 +00:00
fa7d4991d6 move SDL headers to sysdep/win (only used by wsdl)
This was SVN commit r550.
2004-06-19 14:29:40 +00:00
5da9ecd1b0 move SDL headers to sysdep/win (only used by wsdl)
This was SVN commit r546.
2004-06-19 12:21:05 +00:00
32b6627645 Miscellaneous gcc fixes
This was SVN commit r541.
2004-06-18 18:56:10 +00:00
a2fdd3e190 renamed some vars for clarity
This was SVN commit r533.
2004-06-18 13:34:37 +00:00
0d7f2501f9 Enable memory leak detection
This was SVN commit r517.
2004-06-15 21:08:51 +00:00
ea68626ec1 Remove new new (Xerces doesn't like it)
This was SVN commit r516.
2004-06-15 21:08:05 +00:00
e61f416e0d Changes to make the numpad minus (and other keys) be recognised in KEYDOWN correctly
This was SVN commit r502.
2004-06-13 19:42:48 +00:00
ade1ee19cc re-enable exceptions (wasn't necessary to strip them)
This was SVN commit r501.
2004-06-13 19:41:42 +00:00
0fb2ec31fc fix LONG_PTR VC6 error reported by stuart
This was SVN commit r499.
2004-06-13 19:23:37 +00:00
475d4ed509 snazzy new module init/shutdown hook mechanism
This was SVN commit r490.
2004-06-13 16:06:23 +00:00
0cce0ea5bc handles details of delay loading and implements the helper function (=> extra lib no longer needed)
This was SVN commit r489.
2004-06-13 16:05:38 +00:00
7975657f0b variable name change for clarity
This was SVN commit r488.
2004-06-13 16:04:11 +00:00
f9625ecd00 make possible DLL CRT (declare CRT funcs as _CRTIMP)
This was SVN commit r481.
2004-06-11 17:55:24 +00:00
15ca5cbf21 newline stomper and fixed warnings
This was SVN commit r473.
2004-06-11 02:14:18 +00:00
a06bff04b6 Added VK_CONTROL/_ALT/_MENU mappings onto SDLK_LCTRL/etc (I can't find an non-positional SDL CTRL key)
This was SVN commit r467.
2004-06-10 09:57:03 +00:00
a0a9276b21 not freeing dll after manual import; allows delay load
This was SVN commit r458.
2004-06-09 15:52:15 +00:00
f197601cbb clean up test delayload hook. very tricky - automagically calls WSAStartup on first sockets call
This was SVN commit r457.
2004-06-09 15:50:38 +00:00
1c5c3da703 some fixes to coexist with windows.h, if included from win-specific code (i.e. wsdl)
This was SVN commit r456.
2004-06-09 15:48:47 +00:00
0409f4d9d3 support for delay loading
This was SVN commit r455.
2004-06-09 15:45:47 +00:00
40b2cbcba3 fix bc warnings (RDC params)
This was SVN commit r454.
2004-06-09 15:45:15 +00:00
69fb0064b4 remove winmm dependency (timeSetEvent -> thread)
This was SVN commit r453.
2004-06-09 15:44:44 +00:00
131573f7c4 fix boundschecker warning (was resetting gamma ramp after shutdown)
This was SVN commit r452.
2004-06-09 15:43:59 +00:00
8002f5fe6e str[n]icmp => str[n]casecmp on non-windows
This was SVN commit r437.
2004-06-09 13:43:25 +00:00
770845d823 investigating delay loading; mess
This was SVN commit r431.
2004-06-08 20:37:15 +00:00
921463e55a added timestamp to measure startup time
This was SVN commit r430.
2004-06-08 20:36:17 +00:00
3c220be8ef added getcwd
This was SVN commit r429.
2004-06-08 20:35:46 +00:00
53425fa4b5 implementation complete, hopefully :P
This was SVN commit r427.
2004-06-08 15:22:40 +00:00
092fa131ff more faithfully emulating the real FAM now (keeping track of watches by request number). not finished
This was SVN commit r404.
2004-06-06 23:58:52 +00:00
916ddc8c02 fixed ICC warning about func decl
This was SVN commit r403.
2004-06-06 23:58:03 +00:00
0ca334ed39 now emulates FAM API so other code can use one interface. implemented but untested.
This was SVN commit r399.
2004-06-04 17:44:17 +00:00
0dc6007fbd (re)added headers so it'll work without HAVE_PCH
This was SVN commit r396.
2004-06-04 12:41:53 +00:00
df4b9df830 fixed reference to since removed hrt.h
This was SVN commit r393.
2004-06-03 18:46:21 +00:00
c7a84e84be added precompiled.h everywhere
This was SVN commit r392.
2004-06-03 18:38:14 +00:00
5747fe33b0 new: windows-specific opengl header (included by ogl.h)
This was SVN commit r391.
2004-06-03 18:37:07 +00:00
8e6e179187 cleanup
This was SVN commit r390.
2004-06-03 18:36:48 +00:00
520e2a1ff6 rename hrt -> wtime; emulate POSIX routine with HRT (simplifies timer code)
This was SVN commit r389.
2004-06-03 18:36:35 +00:00
4daa183dd3 stripped some headers from deprecated prometheus.h => huge rearrange
This was SVN commit r378.
2004-06-03 01:43:33 +00:00
d94c41fe9c fixed incorrect endian detect macro
This was SVN commit r366.
2004-06-02 17:40:43 +00:00
f1a3cd9e31 ../lib/lib.cpp
This was SVN commit r349.
2004-06-02 15:12:48 +00:00
3abf9ac4b5 lots of type fixes; types.h is now a convenience wrapper on top of the standard uintN_t routines
This was SVN commit r334.
2004-06-01 17:34:12 +00:00
5af6d6007b removed endian.* and rolled it into (w)sdl
This was SVN commit r329.
2004-05-31 12:21:14 +00:00
1eaadd38aa ran everything though mark's newline stomper.
This was SVN commit r322.
2004-05-30 00:46:58 +00:00
27f8a68de3 some smaller fixes
This was SVN commit r293.
2004-05-29 12:04:42 +00:00
672c25084b fixed log location; win code modules now register init/shutdown (=> less dependencies, more control over init order)
This was SVN commit r277.
2004-05-27 17:30:06 +00:00
9aacf9b4bf no message
This was SVN commit r275.
2004-05-27 00:29:54 +00:00
6c608edd60 linefix stomped everything :P
This was SVN commit r266.
2004-05-25 23:16:21 +00:00
3ae2db717d more warning fixes. added missing wfam.h
This was SVN commit r262.
2004-05-25 00:34:19 +00:00
MarkT
6ef97a6e9a Yet more warnings resolved; SDL gamma option added to command line.
This was SVN commit r261.
2004-05-24 21:28:49 +00:00
df6fceba62 fixed some signed/unsigned warnings; added gamma control via SDL
This was SVN commit r258.
2004-05-24 20:25:48 +00:00
53e8734d4f quick fix: suppress windows "drive empty" warnings reported by chad
This was SVN commit r242.
2004-05-18 01:29:10 +00:00
34c3c12934 fixes for VC6 build problems reported by Stu.
This was SVN commit r239.
2004-05-18 00:38:39 +00:00
fbba2e463d merged in rich's demo
This was SVN commit r236.
2004-05-16 03:31:29 +00:00
44d4621ea4 fixed stupid stat bug reported by rich
This was SVN commit r228.
2004-05-15 03:02:26 +00:00
c6054e9c4f automagic reload implemented (vfs and file monitor)
This was SVN commit r227.
2004-05-14 21:20:23 +00:00
d1036b9a18 VFS updates; texture reloading now works, tex.cpp is WIP
This was SVN commit r223.
2004-05-13 13:52:48 +00:00
f383cfd4a8 fix for vc7 (incomplete type in container). also some updates to vfs
This was SVN commit r221.
2004-05-08 01:11:51 +00:00
5b5726ed4d merge of (work in progress) VFS code with new dir layout
This was SVN commit r216.
2004-05-06 17:14:30 +00:00
6869ffd9a5 no message
This was SVN commit r213.
2004-04-24 16:52:39 +00:00
0c46f9ee2a Added _WIN32 ifdefs, linux compat
This was SVN commit r199.
2004-04-09 12:39:55 +00:00
7ac53dceae Added INADDR_LOOPBACK
This was SVN commit r198.
2004-04-09 12:39:15 +00:00
5defaa9416 -EINPROGRESS => EINPROGRESS
This was SVN commit r197.
2004-04-09 12:38:47 +00:00
6a3b74b966 Unicode Input and VK-->SDLK mapping
This was SVN commit r191.
2004-03-29 13:21:42 +00:00
ce9c517eb4 fix 2 lib resource leaks; update h_mgr dox
This was SVN commit r179.
2004-03-07 15:00:51 +00:00
757aca19ef h_mgr dox update; fixed redefinition error in wposix.h when building against DLL CRT
This was SVN commit r177.
2004-03-07 14:17:23 +00:00
d2b8c799c4 pthread_self, return the thread ID instead of the virtual handle
This was SVN commit r175.
2004-03-07 02:00:54 +00:00
a470253b0b big merge goes linux! ; )
This was SVN commit r171.
2004-03-04 20:36:31 +00:00
a8d448ad19 no message
This was SVN commit r167.
2004-03-03 15:16:20 +00:00
9c2a8a5658 fixed little gremlin due to i64 handle change (implicit conversion in overloaded function)
This was SVN commit r163.
2004-03-03 00:37:41 +00:00
89c5b0d88c the big merge (tm). see forum post for changes made.
This was SVN commit r158.
2004-03-02 23:56:51 +00:00