4aa740bff5
- split up lib/res into file, graphics and sound.
...
- wposix.cpp: initial support for MEM_RESERVE and MEM_COMMIT semantics
in mmap
- cstr: removed no longer necessary serialization header
- xmlutils: wrap new() calls in nommgr/mmgr; allows tracking other
allocs in this file.
- add u64_from_u32
- various minor comments/improvements.
This was SVN commit r2604.
2005-08-12 17:06:53 +00:00
5299dcad86
- config: all macros are defined as 1 / 0. testing with #if allows compiler warnings (testing undefined macro) to spot misspelled macros
...
- debug: add provision for naming threads. allows adding current thread
name to log messages and displays their names in the debugger.
- replaced various if(err < 0) complain() sequences with new variants of
CHECK_ERR (see lib.h)
- fixes to mmgr/VC debug alloc enable code
- improved h_mgr error reporting (now complains when h_free fails)
- US -> UK english (partial)
- fix tex_load double-free bug
- move win32 mouse cursor code into sysdep
- error dialog is now topmost to make sure it's visible (was a problem)
- handle WM_QUIT before displaying error dialog (makes sure it's shown)
also as in previous 3 revisions.
This was SVN commit r2588.
2005-08-09 16:23:19 +00:00
ec6b78b252
rename assert2 debug_assert; use instead of all plain assert(), since there are no longer any issues (e.g. can't use while handling an exception)
...
This was SVN commit r2447.
2005-06-28 04:06:25 +00:00
8f9a3fc38f
- config.h: massive improvements, much clearer.
...
- tentatively activate PCH if gcc > 3.4. remove XP_ defines (which were
undocumented; now in scripting/spidermonkey.h)
- rename some config defines
- move sysdep/debug.h to lib/debug.h (it's portable; was wrong all
along)
- grouped all debug heap related stuff to debug.h:debug_heap_*
- sysdep: fix circular include issue with debug.h
This was SVN commit r2427.
2005-06-22 03:23:22 +00:00
fd4eb91e93
debug_out -> debug_printf; MICROLOG moved to ps/Pyrogenesis.h
...
This was SVN commit r2285.
2005-05-11 18:56:30 +00:00
f777979cc8
detect: add posix.h so _SC_* defines are visible (enables mem detect)
...
in several files, expand one-line function bodies (hard to debug)
This was SVN commit r2066.
2005-03-27 17:24:57 +00:00
2b33ba8ade
security push: checked every strcpy / strncpy. converted most to strcpy_s; some are flagged as "safe" (e.g. if copying literal that's obviously OK)
...
This was SVN commit r1962.
2005-03-01 20:13:00 +00:00
8e7b800521
remove atexit, minor improvements
...
This was SVN commit r1944.
2005-02-27 14:34:46 +00:00
85fd8a0f0e
stomped various lint warnings:
...
- /* */ -> //
- clarified expressions
- add casts
- func() -> func(void)
- signed/unsigned
also KB -> KiB, MB -> MiB
This was SVN commit r1775.
2005-01-23 17:54:20 +00:00
851a30215f
add h_add_ref; add leak report (currently disabled, since all textures are leaked)
...
This was SVN commit r1511.
2004-12-16 01:17:50 +00:00
f1dac9c626
better error handling: lots of little changes.
...
added some error codes, tried to eliminate unspecific return -1 where
it made sense.
This was SVN commit r1436.
2004-12-01 21:37:01 +00:00
Gee
caff02e8da
I had to ask some things to make some word-processing easier/faster. Feel free to adjust anything that's crooked.
...
This was SVN commit r1395.
2004-11-24 23:47:48 +00:00
6f114dcd5e
h_force_close support for sound shutdown issue
...
This was SVN commit r1268.
2004-10-22 21:58:03 +00:00
1ef7ce088c
add support for forcibly closing cached files (needed when closing all active sounds before resetting openal)
...
This was SVN commit r1261.
2004-10-20 00:58:55 +00:00
cd24c9c6f7
fixes for RES_UNIQUE (used by sound instances) - no longer add such handles to the h_find lookup data struct, because it can't handle several instances backed by the same file
...
This was SVN commit r1239.
2004-10-15 13:19:37 +00:00
4f230f061d
less dependencies: handle.h forward-defines Handle, so that not everything that uses res headers is dependent on h_mgr
...
This was SVN commit r1213.
2004-10-06 14:00:43 +00:00
7a0cf92c25
add RES_UNIQUE, required for sound code
...
This was SVN commit r1209.
2004-10-05 13:10:49 +00:00
b459e7e640
fixed debug_check_heap definition
...
This was SVN commit r1170.
2004-09-19 19:27:04 +00:00
b3a5bad377
fix 2 stupid h_mgr_shutdown bugs leading to failure to close some leaked handles at exit (see bug 26)
...
- was iterating over all HDATA slots up to last_in_use, but it is
inclusive
- when closing, wasn't resetting refcount, so h_free kept those with
refcount > 1 open
This was SVN commit r1158.
2004-09-19 13:46:38 +00:00
5a8dd803a7
fix for gcc: philip reports it doesn't have upper_bound (although it's part of STL). replaced with equal_range
...
This was SVN commit r1150.
2004-09-19 11:23:12 +00:00
57fad52ef3
GCC non-fixes: marked broken code
...
This was SVN commit r1032.
2004-08-21 12:53:17 +00:00
f94ecbd6d7
hide ugly multimap code behind interface
...
This was SVN commit r1022.
2004-08-19 12:03:15 +00:00
3d455fc05f
h_find now via hash multimap instead of linear search (it's called often)
...
This was SVN commit r1015.
2004-08-18 02:08:15 +00:00
0d6477d83b
add note and added (currently commented out) debug_outs to determine when/why handles are being allocated
...
This was SVN commit r1011.
2004-08-17 21:06:08 +00:00
5edadf1433
don't cache handles that don't have a key (i.e. couldn't be found when reloading)
...
This was SVN commit r991.
2004-08-14 12:36:03 +00:00
93b40f835e
improvement: don't cache if reload failed
...
This was SVN commit r971.
2004-08-11 20:19:31 +00:00
7c36638fd0
minor bugfix / commenting
...
This was SVN commit r958.
2004-08-10 15:59:11 +00:00
5bdfaf5758
fix several bugs related to tag reset when reopening cached handles
...
This was SVN commit r938.
2004-08-08 18:04:03 +00:00
f08cd3466c
increase REF_BITS to 16 (=> 64k refs possible)
...
This was SVN commit r936.
2004-08-08 16:40:59 +00:00
b2afef529c
Introducing: The Pre-Game State. The game instance is not created on program load as before, but can be started by JS functions.
...
This was SVN commit r912.
2004-08-05 13:07:51 +00:00
06725f7613
be less annoying when tag security check is undermined
...
This was SVN commit r884.
2004-08-02 21:29:55 +00:00
8485fc3d82
cleanup; keep_open scheme that means resources will actually be cached (default is now to keep in mem). caching control is still missing
...
This was SVN commit r882.
2004-08-02 13:46:44 +00:00
29f5d23dae
no change
...
This was SVN commit r868.
2004-07-31 19:36:46 +00:00
ab2b08d97b
fix a problem that allowed use of non-open but cached resources
...
This was SVN commit r853.
2004-07-31 11:29:57 +00:00
21e685b1f6
fix refcount (now initialized to 1)
...
This was SVN commit r738.
2004-07-13 21:12:46 +00:00
8306c53492
increase control block size to "plenty" until things settle
...
This was SVN commit r669.
2004-07-09 02:13:09 +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
aed6d949d5
new #included
...
This was SVN commit r566.
2004-06-19 21:12:39 +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
0dc6007fbd
(re)added headers so it'll work without HAVE_PCH
...
This was SVN commit r396.
2004-06-04 12:41:53 +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
47a4af4c82
fixed bug found via mem leak: handles now closed at exit regardless of refcount
...
This was SVN commit r323.
2004-05-30 00:57:20 +00:00
1c5a2d8f10
started vfs enumerate directory support, not finished or functional
...
This was SVN commit r292.
2004-05-29 12:00:53 +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
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
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
5aa404a8f2
no message
...
This was SVN commit r174.
2004-03-05 16:23:31 +00:00
a8d448ad19
no message
...
This was SVN commit r167.
2004-03-03 15:16:20 +00:00