1
0
forked from 0ad/0ad
Commit Graph

346 Commits

Author SHA1 Message Date
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
602b706481 Non-PCH header fix
This was SVN commit r649.
2004-07-07 19:40:20 +00:00
bfafb8fce4 add to some comments
also removed redundant VFS file open flags

This was SVN commit r633.
2004-07-05 02:33:47 +00:00
7bb375ac69 completed support for writing files (hopefully). now adds them to the VFS tree.
also removed VFS file open flags, used file.h flags instead

This was SVN commit r632.
2004-07-05 02:32:43 +00:00
680d5dd7b4 revisions to file open flag comments. btw, these are now also used by VFS
This was SVN commit r631.
2004-07-05 02:31:32 +00:00
e9a7876e0d slight changes to open / stat interface to bring in line with SUS (and therefore POSIX, i hope)
also pass in pmode

This was SVN commit r630.
2004-07-05 02:30:53 +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
b137e965f3 nice new timeSinceLastFrame filter, stable yet responsive. useful for interpolating stuff and of course for FPS.
FPS update code is a hack/unfinished, but it's not important right now.

This was SVN commit r619.
2004-07-02 03:04:55 +00:00
fd6a4d6aed no change, fixed conflict with local version (i have the debug new stuff commented out, because it conflicts with BC)
This was SVN commit r618.
2004-07-02 03:02:40 +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
64444251d4 fixed bug (missing else) reported by philip. thanks!
This was SVN commit r615.
2004-06-30 18:47:15 +00:00
5f6e9f3819 Slightly nicer control of debugging memory allocators
This was SVN commit r614.
2004-06-30 16:06:05 +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
70b7f4249f fixed sneaky iterator bug: when ring buffer full, begin() was equal to end()
This was SVN commit r607.
2004-06-27 01:42:17 +00:00
ddd7821425 res reload callback interface change: now also receives handle of object being reloaded. simplifies tex reload code
This was SVN commit r602.
2004-06-25 22:19:19 +00:00
766a0b4077 split tex code into (file format specific) loaders and opengl texture ops like upload()
This was SVN commit r601.
2004-06-25 22:18:03 +00:00
74ad38fa95 better interface (constants for event handler return value, instead of "what does it do again" bool)
This was SVN commit r597.
2004-06-24 14:05:39 +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
2b7491d159 improvement to timer_res, allows multiple calls
This was SVN commit r595.
2004-06-24 00:41:29 +00:00
cc02e9ea97 more abstraction in VFS<->dir watch interface (thinking of using dazuko and/or FAM)
This was SVN commit r594.
2004-06-23 16:29:03 +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
d5424bcb41 fixed check for monotony (was a no-op); added resolution check (previously guessed 1ms)
This was SVN commit r586.
2004-06-22 16:05:44 +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
250c46ee9e add __ to variables declared in macros for safety
This was SVN commit r578.
2004-06-21 14:16:10 +00:00
9d13d607ab SDL_Delay, SDL_APPACTIVE event
This was SVN commit r576.
2004-06-21 13:59:58 +00:00
24f0756712 bail if #chars = 0 (avoid BC warning); fix debug messages
This was SVN commit r574.
2004-06-21 12:49:37 +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
c01eb01dfb Linux fixedness
This was SVN commit r567.
2004-06-19 21:13:10 +00:00
aed6d949d5 new #included
This was SVN commit r566.
2004-06-19 21:12:39 +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
2299573567 now catches bad_alloc exceptions thrown during reloads (=> no need to wrap new in exception handler there)
This was SVN commit r558.
2004-06-19 14:45:46 +00:00
0eeca662cc split stuff out into cpu, os, gfx interfaces
This was SVN commit r557.
2004-06-19 14:45:04 +00:00
1e47f64630 add log2
This was SVN commit r556.
2004-06-19 14:43:31 +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
d181ccf97e Hopefully now working in gcc *and* MSVC
This was SVN commit r542.
2004-06-18 19:14:42 +00:00
32b6627645 Miscellaneous gcc fixes
This was SVN commit r541.
2004-06-18 18:56:10 +00:00
3b6ad836e2 Minor header adjustments
This was SVN commit r536.
2004-06-18 18:34:04 +00:00
38bfabeb38 fixed goto problem with gcc - was jumping over an (unused) var decl
This was SVN commit r535.
2004-06-18 14:59:50 +00:00
a2fdd3e190 renamed some vars for clarity
This was SVN commit r533.
2004-06-18 13:34:37 +00:00
941f7c3661 bullet-proofing - fail if reloading VDir
This was SVN commit r531.
2004-06-18 13:32:33 +00:00
3c6becec37 was thinking about documenting the whole lib design goals/rationale, added a few notes.
This was SVN commit r530.
2004-06-18 13:24:59 +00:00
b09211c4a3 remove *tot - non-portable and inefficient. replaced with stringstream
This was SVN commit r529.
2004-06-18 13:22:26 +00:00
8347bebebc Spelling corrction
This was SVN commit r524.
2004-06-16 16:29:38 +00:00
f149e007e1 Unicode fonts
This was SVN commit r520.
2004-06-16 15:36:49 +00:00
358f43205a Allow texture format override, so that the 8-bit GL_ALPHA fonts can work
This was SVN commit r519.
2004-06-16 15:35:05 +00:00
d4423850ef Leak-detect malloc/etc too
This was SVN commit r518.
2004-06-15 21:27:12 +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
136182e8bc oglPrintError now outputs to debug output window
This was SVN commit r512.
2004-06-15 02:43:56 +00:00
952ec353fb fix overflow problem if timer res is low; cleaned up in general; use RingBuf for averaging
This was SVN commit r508.
2004-06-14 13:29:23 +00:00
7fb1f4892e adapted ringbug operator[] for timer's needs
This was SVN commit r507.
2004-06-14 13:27:33 +00:00
e1997e6b31 added a few comments
This was SVN commit r506.
2004-06-14 12:59:15 +00:00
70b53d90ef Avoid problems when get_time() frequently returns the same value twice
This was SVN commit r503.
2004-06-13 19:48:04 +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
ed23cb7cc1 hopefully bulletproof is_subpath
This was SVN commit r497.
2004-06-13 19:13:32 +00:00
da1e6df5f0 uhoh, yet another problem. quick fix so others aren't impacted; investigating
This was SVN commit r496.
2004-06-13 17:15:38 +00:00
3893d1597d fixed loophole in mount path handling (cannot now mount parent dir of a previous mounting)
This was SVN commit r495.
2004-06-13 16:58:22 +00:00
f1713bbca0 improved mount logic; added comments
This was SVN commit r491.
2004-06-13 16:12:54 +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
641ad1e382 moved fmod shutdown here from main - this module is responsible for that.
This was SVN commit r485.
2004-06-13 15:32:34 +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
MarkT
e4fe4ed602 JS Interface to entities. It even partially works now.
This was SVN commit r469.
2004-06-10 22:24:03 +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
a30a82469e some toe-stepping that evidently resulted in two prot variables :P
This was SVN commit r465.
2004-06-09 22:38:37 +00:00
5a59c28e95 now includes wglext for "proper" definition of win-specific funcs
This was SVN commit r463.
2004-06-09 17:59:01 +00:00
0997ca4c19 added xerces headers (speeds up build a bit)
This was SVN commit r462.
2004-06-09 17:56:28 +00:00
bb1a9bad7d fail file_map requests for empty files (avoids bc warning)
This was SVN commit r460.
2004-06-09 16:10:23 +00:00
25d2a41c64 glprintf: ignore empty strings (avoids bc warning)
This was SVN commit r459.
2004-06-09 16:09:07 +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
a6246b9045 read_le16/32 can't be inline in source and extern in header - gcc won't export them
This was SVN commit r450.
2004-06-09 14:11:35 +00:00
ca523e9f3c GCC compat (init skipped by goto)
This was SVN commit r442.
2004-06-09 13:49:32 +00:00
5d440712f2 GCC compat
This was SVN commit r441.
2004-06-09 13:48:49 +00:00
d022ac51f8 _WIN32 ifdefs around wglext.h include
This was SVN commit r440.
2004-06-09 13:46:39 +00:00
d455ac90ef Linux/unix debug macros
This was SVN commit r439.
2004-06-09 13:46:06 +00:00
5b8d980809 Fixed path_validate debug statement
This was SVN commit r438.
2004-06-09 13:44:12 +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
825289242a added vfs_get_path (bad name) - returns the VFS path to a given real dir
(used by res.cpp to translate paths from WFAM)

This was SVN commit r426.
2004-06-08 15:21:42 +00:00
d7dbf08bc2 auto-reload finished (last remaining problem: translating OS paths to VFS)
This was SVN commit r425.
2004-06-08 15:18:01 +00:00
78fa30be94 export path conversion function for res.cpp interaction with FAM
This was SVN commit r424.
2004-06-08 15:16:50 +00:00
8d52add5ea ran newline stomper; no real changes
This was SVN commit r423.
2004-06-08 12:10:51 +00:00
f9ad314f5a fix empty-statement warning (i.e. comment out - that spot isn't implemented yet)
This was SVN commit r407.
2004-06-07 00:04:37 +00:00
815e177beb now responsible for watching mountings for changes via FAM
This was SVN commit r406.
2004-06-07 00:04:02 +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
2dcb0d8056 more header fixes
This was SVN commit r401.
2004-06-04 17:47:12 +00:00
7b9e881039 initial code using FAM API. unfinished; one problem remaining is how to convert absolute paths to their VFS equivalent
This was SVN commit r400.
2004-06-04 17:44:56 +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
9dcd2a0c12 re-enabled HAVE_PCH (disabled for testing - oops)
This was SVN commit r397.
2004-06-04 16:06:31 +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
c15300446e fix stupid mmap bug reported by simon
This was SVN commit r387.
2004-06-03 14:20:09 +00:00
0b3d0c9e5c small interface changes to bring in line with vfs and file
This was SVN commit r386.
2004-06-03 13:57:36 +00:00
cb75497412 documentation! w00t
This was SVN commit r385.
2004-06-03 13:57:00 +00:00
d9b1daf2e4 restored fminf
This was SVN commit r384.
2004-06-03 13:35:39 +00:00
MarkT
d32be2011f Pathfinding tweaks; coldet fixes.
This was SVN commit r379.
2004-06-03 02:20:48 +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
2339389870 implemented refcount for mmap
This was SVN commit r376.
2004-06-03 00:27:50 +00:00
2d51e32878 some bulletproofing; completed+documented mmap
This was SVN commit r373.
2004-06-03 00:17:24 +00:00
f84bc36ca3 moved fminf+fmaxf to sysdep
This was SVN commit r372.
2004-06-02 21:50:50 +00:00
af3949ab7a updated file mapping (was partially unimplemented)
This was SVN commit r371.
2004-06-02 20:41:05 +00:00
b82d4dd4b3 removed misc.h - name tells me it isn't necessary ;) everything moved into lib.h
This was SVN commit r368.
2004-06-02 19:02:12 +00:00
d94c41fe9c fixed incorrect endian detect macro
This was SVN commit r366.
2004-06-02 17:40:43 +00:00
0ce04bf73f no message
This was SVN commit r364.
2004-06-02 16:59:12 +00:00
f8dafe455d CVS dirs are skipped when mounting
This was SVN commit r362.
2004-06-02 16:58:35 +00:00
719b8f1074 fixed *nix libpng include fix
This was SVN commit r361.
2004-06-02 16:33:59 +00:00
4ba7fc3b7c yet more tree_lookup fixes for bug pointed out by simon
This was SVN commit r358.
2004-06-02 16:12:13 +00:00
85f335e0fe fixed tree_lookup - now allows dir names (with optional trailing slash)
This was SVN commit r354.
2004-06-02 15:32:42 +00:00
c0d33d3330 Linux/GCC compat, a few newlines at end of file, minor changes
This was SVN commit r353.
2004-06-02 15:31:55 +00:00
270aa5974e - endian ifdefs => __BYTE_ORDER == __BIG_ENDIAN
- round moved to sysdep with _MSC_VER ifdefs
- alternative CHECK_ERR macro (in lib.h)
- some linux compat stuff

This was SVN commit r350.
2004-06-02 15:15:12 +00:00