Ykkrosh
8eb7af4ac9
Be a bit more robust to build environment changes.
...
Reduce some module dependencies.
Clean up some unused instantiations.
This was SVN commit r9827.
2011-07-15 13:22:48 +00:00
Ykkrosh
a4637c25d0
Fix no-PCH builds
...
This was SVN commit r9786.
2011-07-08 15:07:08 +00:00
janwas
492e49da38
add support for selection and deletion of entire words in text controls (ctrl+backspace/delete/left/right) based on patch by Chakakhan/kenny (thanks!)
...
also refactored wclipboard
closes #511
This was SVN commit r9646.
2011-06-23 10:12:43 +00:00
janwas
ef4df42895
add support for .dylib on OS X based on patch by Yves (thanks!)
...
c.f.
http://www.wildfiregames.com/forum/index.php?showtopic=14173&pid=220828&st=0&#entry220828
This was SVN commit r9642.
2011-06-20 20:06:51 +00:00
Ykkrosh
266977bc78
Attempt to fix manifest problems in autobuild.
...
This was SVN commit r9607.
2011-06-09 23:16:27 +00:00
janwas
6feb143e61
OS X compile fix
...
This was SVN commit r9582.
2011-05-30 23:06:16 +00:00
janwas
ef74ad7f7b
OS X compile fix (hopefully): add definition for O_DIRECT
...
This was SVN commit r9581.
2011-05-30 21:49:33 +00:00
janwas
034881d30c
sync with work. simplify wnuma, refactor+fix topology (bugs: APIC IDs array didn't correspond to OS processor number; couldn't handle noncontiguous APIC ID field values)
...
This was SVN commit r9580.
2011-05-30 13:00:20 +00:00
Ykkrosh
f25407e7fb
Fix typo
...
This was SVN commit r9579.
2011-05-30 11:51:14 +00:00
Ykkrosh
ce647cf8e3
Add a manifest hack to fix building in VC2008+, when loading DLLs built in VC2005
...
This was SVN commit r9576.
2011-05-29 21:13:21 +00:00
Ykkrosh
c2677b4bb0
Upgrade game and build system to ENet 1.3
...
This was SVN commit r9574.
2011-05-29 20:57:28 +00:00
janwas
e3d87b0375
remove no longer necessary lowlevel wsock implementation (superseded by enet) since the delay load hook isn't compatible with a DLL packaging of enet.
...
-> cstr serialization uses lib/byte_order.h instead of htons; removed
hostname/IP from system_info (Philip agrees its utility is negligible)
This was SVN commit r9572.
2011-05-29 19:59:51 +00:00
Ykkrosh
755802d0ce
Fix build errors
...
This was SVN commit r9556.
2011-05-27 13:32:34 +00:00
janwas
34186dd017
refactor file interface. requires workspace update
...
- separate file_system_util into vfs functions (-> vfs/vfs_util) and
file_system (avoids ugly fs_util namespace prefix)
- get rid of non-portable O_BINARY_NP etc. flags
- use standard O_WRONLY etc. flags instead of LIO_WRITE; but avoid the
need for specifying O_CREAT|O_TRUNC
- only open files for aio when O_DIRECT is specified (which 0ad does
not) - avoids wasting time and security issues
- return file descriptor directly instead of via output param
- waio: safer FCB mechanism that avoids mixing descriptors between lowio
and aio
This was SVN commit r9550.
2011-05-25 10:39:13 +00:00
janwas
7600c3862b
refactor gfx detection code (interface), allow exporting from DLL (required at work)
...
This was SVN commit r9546.
2011-05-24 14:17:47 +00:00
janwas
f1a1f023df
reinstate aligned_allocator.h (required at work)
...
further fixes to preserve the last error while building error messages
somewhat more accurate NUMA factor computation
This was SVN commit r9545.
2011-05-23 14:10:45 +00:00
Ykkrosh
1075e206f7
Fix some format string errors
...
This was SVN commit r9534.
2011-05-18 19:10:36 +00:00
Ykkrosh
6539456746
Fix format string
...
This was SVN commit r9524.
2011-05-15 19:52:46 +00:00
janwas
0ea42d3185
avoid stomping on the last error while dumping stack
...
refs #849
This was SVN commit r9519.
2011-05-15 00:00:01 +00:00
janwas
45d358dd9a
add code to output both affected paths in case separators are being mixed
...
This was SVN commit r9516.
2011-05-14 20:25:32 +00:00
janwas
963960fafa
no longer warn when SetFileValidData fails, as it does on all FAT volumes (boo)
...
fixes #849
This was SVN commit r9511.
2011-05-14 10:37:42 +00:00
janwas
452670738a
fix StatusDescription (remove unnecessary and wrong cast)
...
This was SVN commit r9489.
2011-05-08 20:09:31 +00:00
janwas
9b7cdef124
ensure WHRT debug messages are always displayed (in case of compatibility trouble)
...
refs #709
This was SVN commit r9485.
2011-05-08 09:14:21 +00:00
janwas
7ed9a84252
avoid double-free when sounds are reclaimed and then freed.
...
fixes #833
This was SVN commit r9477.
2011-05-07 17:34:47 +00:00
janwas
b82913ea14
make explicit that both iterator debugging and _SECURE_SCL (which is less than iterator debugging) are disabled in release builds
...
This was SVN commit r9476.
2011-05-07 16:46:28 +00:00
janwas
46e5db4dc4
fix build with ICC
...
This was SVN commit r9475.
2011-05-07 15:47:20 +00:00
Ykkrosh
c49f4c677b
Fix bogus error messages when errno=0
...
This was SVN commit r9472.
2011-05-07 00:14:43 +00:00
janwas
f608b44d1d
fix self-test and map load on Windows (avoid mixing dir separators).
...
add more specific error codes (used at work)
This was SVN commit r9462.
2011-05-06 18:45:30 +00:00
janwas
0a7aeb23f7
smbios fix
...
This was SVN commit r9458.
2011-05-06 14:54:46 +00:00
Ykkrosh
1da3cdb498
Fix build errors
...
This was SVN commit r9453.
2011-05-05 20:24:22 +00:00
janwas
5c76bc12fa
refactor status code definitions: allow modules to define an array of them (more convenient+efficient).
...
merge ERR::NO_SYS, NOT_IMPLEMENTED into NOT_SUPPORTED
renderer: remove unnecessary ogl_shader include
This was SVN commit r9447.
2011-05-05 13:03:34 +00:00
janwas
fd561cb88b
hotloading fix on Windows
...
refs #781
This was SVN commit r9446.
2011-05-05 10:50:47 +00:00
janwas
dcec9c4ca9
gracefully handle the case where the file cache is full of data still referenced elsewhere.
...
fixes #832
This was SVN commit r9437.
2011-05-04 22:19:38 +00:00
janwas
9719432ff9
fix memory leak (wasn't freeing the entire chain of SMBIOS structures)
...
This was SVN commit r9425.
2011-05-04 13:08:09 +00:00
janwas
a7152270f4
Path now goes to some trouble to prevent mixing / and \ slashes (causes trouble when hotloading, and some Windows APIs can't handle it, either)
...
WARNING: that means stuff like Path(nativeDataPath/"art/") is forbidden
and will raise errors on Windows when nativeDataPath contains \. always
use /"" to add a trailing slash. never embed "/" in OsPath component
strings (it's OK for VFS strings since they consistently use /).
wdir_watch, CmdLineArgs: avoid mixed separators
wutil: remove overzealous assertion (infinite recursion if an error
arose before we create a window)
refs #781
This was SVN commit r9424.
2011-05-04 12:16:51 +00:00
janwas
7523894760
ENSURE(0) -> DEBUG_WARN_ERR(ERR::LOGIC) (a bit smaller, and more descriptive)
...
This was SVN commit r9423.
2011-05-04 12:10:17 +00:00
Ykkrosh
9733affb05
Fix non-PCH build
...
This was SVN commit r9419.
2011-05-04 01:17:09 +00:00
Ykkrosh
178a700c16
Fix build
...
This was SVN commit r9412.
2011-05-03 15:58:25 +00:00
janwas
cce3bebe0c
fix error propagation/avoid SetLastError pollution
...
This was SVN commit r9411.
2011-05-03 13:46:35 +00:00
janwas
cccd6849a7
cleanup (requires update-workspaces)
...
lib_errors.cpp: replace with status.cpp, adapt to needs at work
wutil: fix runtime warning reported via feedback box
config: merge CONFIG_PARANOIA and !CONFIG_FINAL into
CONFIG_ENABLE_CHECKS
add openmp, pointer_typedefs.h
This was SVN commit r9410.
2011-05-03 12:38:42 +00:00
janwas
88c44c7d73
smbios: add support for structures 34,35,36,39,41 (found on rather new BIOS)
...
This was SVN commit r9377.
2011-05-01 12:18:45 +00:00
janwas
1636f062a3
make VFS thread-safe, per long-standing request by Philip
...
This was SVN commit r9369.
2011-04-30 15:57:43 +00:00
janwas
635c2a12e2
add error code for file not found. return error code from io::Load, warn and return from io::Store (both without triggering assertions).
...
remove out of date comment in io.cpp
fixes #811
This was SVN commit r9368.
2011-04-30 15:41:19 +00:00
Ykkrosh
791ecee26b
Build fixes
...
This was SVN commit r9365.
2011-04-30 13:55:55 +00:00
janwas
5ca66fc757
cleanup: move ADTs into lib/adts (separate files). fix definition of ASSERT
...
This was SVN commit r9364.
2011-04-30 13:35:36 +00:00
janwas
0720025073
cleanup
...
reduce dependency on PCH. move KiB constants to alignment, ARRAY_SIZE to
code_annotation.h.
move glext_funcs.h to external_libraries/glext_funcs.h, move part of
ogl.h to external_libraries/opengl.h
remove unused saturating arithmetic functions
This was SVN commit r9363.
2011-04-30 13:22:46 +00:00
janwas
4663ac0fe7
split debug_assert into ENSURE and ASSERT as discussed in a previous meeting.
...
the old debug_assert always ran and tested the expression, which slows
down release builds. wrapping them in #ifndef NDEBUG is clumsy. the new
ASSERT behaves like assert and ENSURE like the old debug_assert. Let's
change any time-critical but not-super-important ENSURE to ASSERT to
speed up release builds. (already done in bits.h and unique_range.h)
This was SVN commit r9362.
2011-04-30 13:01:45 +00:00
janwas
6c915291cc
cleanup (requires update-workspaces):
...
major refactor of wfilesystem - remove gotos and workaround for FAT file
times
replace more round_up of constants with Align<>
remove old unused allocators (STL aligned, matrix, some shared_ptr)
move allocator utils into separate headers.
remove lockfree, wterminal
avoid testing __cplusplus
This was SVN commit r9361.
2011-04-30 12:34:28 +00:00
janwas
9bdb54bc76
fix failure to preallocate disk space on Windows by always rounding up the file size regardless of the io::Parameters
...
This was SVN commit r9358.
2011-04-30 09:13:10 +00:00
Ykkrosh
e292c55e94
Delete warning-prone unused unusable event recording code
...
This was SVN commit r9355.
2011-04-30 00:06:30 +00:00