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
Ykkrosh
f22e40b64c
Fix warning
...
This was SVN commit r9354.
2011-04-29 23:55:47 +00:00
Ykkrosh
335e7db6be
Fix build more
...
This was SVN commit r9353.
2011-04-29 23:30:29 +00:00
janwas
34ba390a0d
build fix for pre-C++0x compilers.
...
archive_zip, stream: work around possibly missing support for
std/tr1::bind in GCC by defining a functor manually
also renamed RVREF to RVALUE_REF and ensured RVALUE can convert from
both lvalue and rvalue.
io: avoid dodgy constants and possible overflow by using blockSize=0 to
indicate "don't split"
This was SVN commit r9352.
2011-04-29 22:55:35 +00:00
Ykkrosh
1139124451
Fix some build errors and warnings
...
This was SVN commit r9351.
2011-04-29 20:38:13 +00:00
janwas
2374caac3e
major refactor of file/io and alignment code. requires update-workspaces
...
. completely rewrite waio - use IOCP, add several hardcore
optimizations. now outperforms the
AS SSD and ATTO benchmarks when writing
. refactor file interface - use LIO_READ instead of 'r', allow access to
file descriptor.
. completely rewrite the IO wrapper. now much more simple, less CPU
overhead, adds
support for pre-issue/post-completion hooks and preallocation.
io::Run defaults to simple synchronous IO; use io::Parameters to get
asynchronous.
. add alignment.h with constants and Align() function template (more
efficient than
round_up for compile-time constants)
. add UniqueRange - similar to C++0x unique_ptr (emulated for C++03),
plus a
built-in size. avoids expensive thread-safe reference counting in
shared_ptr.
cleanup:
- move fat_time functions into archive_zip
- remove no longer needed io_align and block_cache
- reduce dependencies in sysdep/compiler (move parts to
code_annotation.h)
- move IOCP into separate file (reused by waio)
This was SVN commit r9350.
2011-04-29 19:10:34 +00:00
janwas
9d5539a215
fix runtime check error - see http://www.wildfiregames.com/forum/index.php?showtopic=14656&pid=218675&st=0&#entry218675
...
thanks to Yves for reporting this + suggesting the fix.
This was SVN commit r9339.
2011-04-28 17:13:55 +00:00
Ykkrosh
5a773d4ca0
Be robust to null proxy URL strings. Should fix #778 .
...
This was SVN commit r9299.
2011-04-22 16:05:00 +00:00
Ykkrosh
b35d3a5e3d
__cpuidex was added in VC2008 SP1, so don't use it if pre-SP1
...
This was SVN commit r9284.
2011-04-19 23:23:16 +00:00
janwas
a3812af176
smbios: avoid warning when no information is returned (happens on 32-bit XP)
...
This was SVN commit r9218.
2011-04-09 17:09:48 +00:00
Ykkrosh
c59f7bcb8f
Fix Clang warning ("operands of ? are integers of different signs")
...
This was SVN commit r9214.
2011-04-09 00:07:21 +00:00
Ykkrosh
7a8aefae34
Fix release-mode warnings in unused code
...
This was SVN commit r9212.
2011-04-09 00:05:00 +00:00
janwas
d46a892a5d
smbios: avoid displaying unknown maxError value; add enumerators for BIOS characteristics and extended characteristics
...
This was SVN commit r9207.
2011-04-08 07:10:31 +00:00
janwas
5b7dbe6bc9
smbios: more convenient interface that avoids having to check if the structures pointer is null (can still detect failure by checking whether all/guaranteed member pointers are zero)
...
This was SVN commit r9200.
2011-04-07 19:35:45 +00:00
janwas
b5c6868ac2
smbios SystemSlot fix: add missing field, avoid displaying unknown device/function numbers
...
This was SVN commit r9199.
2011-04-07 19:28:24 +00:00
Ykkrosh
aab98f90e0
Fix startup crash on non-Windows
...
This was SVN commit r9197.
2011-04-07 17:22:28 +00:00
Ykkrosh
e1b9083c41
Fix probable OS X build error
...
This was SVN commit r9196.
2011-04-07 17:18:32 +00:00
janwas
99aa427ffa
make use of SMBIOS information to detect CPU frequency and memory size
...
smbios fixes: also ignore max value (used by Dell BIOS to report invalid
MemoryDevice bit width); fix incorrect error check that caused 0 to be
returned on all but the first call; add implicit conversion operator to
allow using size without appending .value
This was SVN commit r9195.
2011-04-07 17:06:00 +00:00
janwas
329d044a9e
64-bit gcc warning fix
...
This was SVN commit r9171.
2011-04-05 19:49:04 +00:00
janwas
dcde67038f
ICC compile fixes (VC's overload resolution is apparently quite different)
...
This was SVN commit r9169.
2011-04-05 17:45:47 +00:00
janwas
1c2e410b7d
final smbios improvements.
...
add comments
add support for bit flags
use wrapper classes and SFINAE instead of flags to detect enums / sizes
/ handles
avoid potential truncation of byte sizes
avoid displaying numeric_limits::min values ("unknown")
This was SVN commit r9168.
2011-04-05 17:14:18 +00:00
Ykkrosh
d3ba9a24d3
Fix GCC build errors ("explicit template specialization cannot have a storage class",
...
"need 'typename' before 'static_assert_<...>::type' because
'static_assert_<...>' is a dependent scope").
Fixes #767 .
This was SVN commit r9167.
2011-04-05 17:07:06 +00:00
janwas
3dbb29d665
smbios improvements: add specializations for bool/Handle (no longer requires a flag); omit empty/meaningless fields
...
convert remaining enumerators to ENUM, lowercase them to avoid conflicts
with macros, wrap them in struct to allow identical enumerator names
This was SVN commit r9165.
2011-04-05 09:52:57 +00:00
janwas
f35da41a0c
smbios: minor fixes, add partial support for displaying enumerator names, move visitors to .cpp, use pragma pack regardless of compiler
...
This was SVN commit r9163.
2011-04-04 17:44:36 +00:00
janwas
68bc0a5651
smbios: add support for stringizing the structures
...
This was SVN commit r9162.
2011-04-04 16:50:02 +00:00
janwas
a2bad46f27
smbios fixes:
...
- memmove all bytes in the table, not just 8
- end pointer was off by 4
- add support for structures 8,10,22,26,27,28
This was SVN commit r9161.
2011-04-04 15:01:40 +00:00
Ykkrosh
0ddf2b0f34
Fix build on VC2008
...
This was SVN commit r9157.
2011-04-03 21:41:17 +00:00
janwas
66807d40c1
windows build fix: use arb names/function pointers; +noncopyable/struct vs. class warning fix
...
This was SVN commit r9156.
2011-04-03 20:45:43 +00:00
janwas
3d21cf98f9
better aio error checking / avoid unnecessary repeated calls to aio_error (investigated on the occasion of the recent Linux aio trouble)
...
This was SVN commit r9155.
2011-04-03 20:07:55 +00:00
janwas
231387d2da
linux compile fix (explicit instantiation must be at namespace scope), adjust end pointer to match 8 bytes removed in workaround
...
This was SVN commit r9153.
2011-04-03 19:29:16 +00:00
janwas
01a0825c94
disable aio on linux until the glibc aio implementation and/or kernel is fixed (see http://www.wildfiregames.com/forum/index.php?showtopic=14561&pid=217711&st=0&#entry217711 )
...
This was SVN commit r9150.
2011-04-03 19:07:35 +00:00
janwas
2c72e1f364
(requires update-workspaces)
...
add initial SMBIOS implementation for retrieving system information
wacpi -> wfirmware (now also used to retrieve SMBIOS table)
This was SVN commit r9144.
2011-04-03 15:38:48 +00:00
janwas
6026330fce
updated version of Aken that includes support for MSR and static validation (-> .c instead of .cpp)
...
closes #754 (please re-open if not)
This was SVN commit r9137.
2011-04-01 15:06:52 +00:00
janwas
d5b3201bfe
noted while checking MSR prerequisites that the previous HasNehalem is inaccurate. PLATFORM_INFO is also supported by newer processors (e.g. Sandy Bridge), whereas UNCORE_* are tied to Nehalem and Westmere => split up HasNehalem into HasPlatformInfo and HasUncore. (the latter has been replaced by a "system agent" in newer designs)
...
refs #754
This was SVN commit r9136.
2011-03-31 21:30:42 +00:00
Ykkrosh
1014da1f88
Use pool allocator to avoid apparently expensive dynamic allocations when rendering terrain.
...
Add function to get pool usage, for debugging.
This was SVN commit r9132.
2011-03-30 21:42:35 +00:00
janwas
fb872e0bd5
fix: update all pool freelist initializations to reflect the new invariant (prevents null-pointer dereference crash)
...
This was SVN commit r9129.
2011-03-28 21:10:41 +00:00
janwas
c396997009
fixes from work: avoid potential 0-pointer dereference in freelist, also avoid branching in freelist functions via sentinel
...
wdll_main.h: avoid warning for DLLs using TLS
file_system_util.h: export functions
This was SVN commit r9128.
2011-03-28 12:28:29 +00:00
Ykkrosh
d295dacb9b
# Add new renderer mode based on GL_ARB_fragment_program.
...
Change lighting model for new maps to allow better overbrightness.
Cache player colours instead of loading from scripts every time the
renderer wants them.
This was SVN commit r9123.
2011-03-26 20:17:21 +00:00
janwas
1eb5eeb225
minor fixes from integration with working copy at work.
...
This was SVN commit r9116.
2011-03-24 09:05:06 +00:00
Ykkrosh
9193ba56f9
Build fixes and whatnot
...
This was SVN commit r9115.
2011-03-23 21:15:22 +00:00
janwas
1f7e8d7194
per discussion with Philip, remove STL_HASH_MAP etc. because they're ugly, rarely used and superseded by boost::unordered*
...
This was SVN commit r9111.
2011-03-23 16:56:27 +00:00
janwas
588bfa11bf
remove unnecessary utf8 includes
...
This was SVN commit r9110.
2011-03-23 16:32:44 +00:00
janwas
0999ba0941
refactoring:
...
- simplify sys_get_executable_name interface - return OsPath directly,
rename to sys_ExecutablePathname
- add validation of path components in GetDirectoryEntries
- replace multiple calls to GetModuleFileNameW with
sys_ExecutablePathname
- lift nearly all MAX_PATH limitations (required at work)
This was SVN commit r9109.
2011-03-23 16:14:47 +00:00
janwas
64a02932e3
refactor headers: path_util -> path, native_path -> os_path, remove where unnecessary
...
This was SVN commit r9108.
2011-03-23 14:43:35 +00:00
janwas
dcd192cb60
refactor path interface:
...
- use wrapper class instead of std::wstring (reduces mixing of
strings/paths; allows safe+easy join via operator/ and convenient
case-insensitive comparison via operator==, avoids NativePathFromString,
similar to boost::filesystem)
- NativePath -> OsPath
- add hash and To/FromJSVal for Path
- add TS_ASSERT_PATH_EQUALS
- replace _wfopen_s with sys_OpenFile
- remove obsolete SortFiles/Directories
This was SVN commit r9107.
2011-03-23 13:36:20 +00:00
Ykkrosh
c4cd85bb98
Build fixes
...
This was SVN commit r9100.
2011-03-22 18:46:39 +00:00
Ykkrosh
c0a105432e
Use path types and conversions more consistently.
...
This was SVN commit r9094.
2011-03-21 22:59:00 +00:00
Ykkrosh
5b7ea2371f
Fix some line endings.
...
This was SVN commit r9093.
2011-03-21 22:47:02 +00:00
Ykkrosh
83271ec816
Fix build errors.
...
Fix VFS root directory failing IsDirectory, which breaks the search for
textures.xml.
Fix incompatible change to loose cache name determination.
This was SVN commit r9092.
2011-03-21 21:06:08 +00:00
janwas
c3405e6f50
path improvements/fixes:
...
- replace more std::wstring with Native or VfsPath; wstring_from_utf8 ->
NativePathFromString
- replace sequences of Join(Path(), Basename+extension) with
ChangeExtension in wsdl, CacheLoader
- add Path::IsDirectory to replace .empty() / path_is_dir_sep(.back()).
also changed behavior to reflect the fact that "" is the VFS root
_directory_
- Path::Join now allows 2 identical path types (e.g. VfsPath) or one
char* literal (prevents inadvertently introducing non-safe characters).
to convert from wstring or wchar_t, use an explicit ctor (e.g.
VfsPath(wchar_t_string))
This was SVN commit r9091.
2011-03-21 19:54:08 +00:00
janwas
6d25329412
# towards locale-independent pathnames on Linux
...
c.f.
http://www.wildfiregames.com/forum/index.php?showtopic=14541&st=0&p=217250&#entry217250
and 2011-03-19 meeting
This was SVN commit r9090.
2011-03-21 17:53:13 +00:00
janwas
9a22dc1351
warning fixes
...
This was SVN commit r9088.
2011-03-21 11:55:49 +00:00
janwas
cec05f02ea
fix insidious OpenAL issue: the spec doesn't guarantee 0 isn't a valid source name => we need to use an out-of-band mechanism for specifying whether the source is valid.
...
refs #557
This was SVN commit r9087.
2011-03-20 16:40:36 +00:00
Ykkrosh
44e1a863e1
Fix cache detection assertion failure
...
This was SVN commit r9085.
2011-03-19 15:16:14 +00:00
Ykkrosh
0af8cdc54a
Fix likely cache table typos, based on Intel Software Developer's Manual.
...
This was SVN commit r9084.
2011-03-19 15:03:25 +00:00
janwas
fb499ff0d0
further refactoring of new cache detect code
...
- add invariant - level/type are always valid, numEntries indicates
whether the cache is actually present and not disabled
- handle pseudo-descriptors 0xF0 and F1 (avoids warning)
This was SVN commit r9083.
2011-03-19 12:48:56 +00:00
Ykkrosh
89b7b6b52d
Avoid divide-by-zero on AMDs with missing caches
...
This was SVN commit r9081.
2011-03-18 19:48:54 +00:00
Ykkrosh
22a651bb86
Fix assertion failure when no L3 cache.
...
Fix typo.
This was SVN commit r9078.
2011-03-18 18:42:10 +00:00
Ykkrosh
ecbd0ae31b
Fix Windows build.
...
Improve compatibility with GL1.3.
This was SVN commit r9077.
2011-03-18 18:07:18 +00:00
janwas
5b91e2d7ab
move cache detection into separate file.
...
add support for CPUID.2 cache descriptors (many Bothans died to bring us
this information)
simplify the API - use one structure to describe cache and TLB; only one
accessor for both.
HWDetect: version change, since dtlbs and itlbs are no longer
distinguished
fixes #752
This was SVN commit r9074.
2011-03-18 16:44:03 +00:00
Ykkrosh
e70fae8d80
Stop using glMultiDrawElements since it's too buggy
...
This was SVN commit r9064.
2011-03-14 21:57:09 +00:00
Ykkrosh
fc2c54c39f
# Optimise terrain renderer.
...
Batch patch splats by texture match.
Use VBOs for patch indices.
Fixes #722 .
This was SVN commit r9053.
2011-03-13 19:06:33 +00:00
janwas
a0a245d0ec
sync with work. add u8_from_larger, sys_IsDebuggerPresent, wdll_main.h;
...
robustify waio file mode and remove a safety check (since
OVERLAPPED.Internal is documented to be subject to change)
This was SVN commit r9050.
2011-03-11 16:29:27 +00:00
Ykkrosh
b4d9ab336b
Simplify hiding of system cursor on non-Windows.
...
Fixes #683 .
This was SVN commit r9038.
2011-03-06 00:48:26 +00:00
Ykkrosh
d3929b6af1
Actually, delete the cpuid() inline asm entirely since it still causes various problems in various compilers
...
This was SVN commit r9024.
2011-03-05 14:11:57 +00:00
Ykkrosh
712a92caa1
Save PIC register in cpuid() to fix "can't find a register in class 'BREG'" error in some versions of GCC
...
This was SVN commit r9023.
2011-03-05 13:53:02 +00:00
Ykkrosh
2229c10e05
Delete rint/rintf emulation for Windows, since it got broken (the tests fail) and we don't use it any more
...
This was SVN commit r9015.
2011-03-04 23:16:04 +00:00
Ykkrosh
eb163c8d24
Improve reporting of extensions promoted into GL 1.2
...
This was SVN commit r8996.
2011-02-27 14:25:04 +00:00
janwas
bb562ce179
fixes:
...
avoid reporting a (not-present) third-level cache for Athlon X2 that
don't have one
add better documentation of cache information
ensure we're running on the same CPU while retrieving cache/TLB
descriptors
wgfx: always check all known graphics driver names (more robust in the
face of changing gfx_card strings), correct the intel driver name
This was SVN commit r8991.
2011-02-26 19:22:02 +00:00
janwas
567a698628
check all file names known to belong to a GPU's drivers instead of trying to rule out 32/64 bit variants
...
fixes #737
This was SVN commit r8990.
2011-02-26 17:10:09 +00:00
janwas
4e8c305c6e
sync with work - export app_hooks_update; add boost replacement FileExists and FileSize; avoid conflict with stdint.h;
...
remove asm rintf implementation (sse is faster); avoid the need for an
external 64-bit asm file with vc2008/vc2010; allow arbitrarily long
command line args
This was SVN commit r8985.
2011-02-25 16:31:42 +00:00
Ykkrosh
0378500bdc
Fix #712 (remove S3TC warning).
...
Add timer to S3TC decoder so it's still easy to determine if it was
used.
This was SVN commit r8981.
2011-02-25 01:28:46 +00:00
Ykkrosh
f6c1d98c9a
Fix #739 (test failures).
...
Use JSON in debug serializer output unless it fails due to e.g. cyclic
values, in which case use toSource.
Disable file stats code by default, since its output isn't used.
This was SVN commit r8975.
2011-02-24 00:32:38 +00:00
Ykkrosh
059a53dd37
Fix startup hang on OS X, caused by using timers before initialising them
...
This was SVN commit r8974.
2011-02-23 09:19:41 +00:00
Ykkrosh
0c1e05d672
Fix typo
...
This was SVN commit r8972.
2011-02-22 20:15:59 +00:00
Ykkrosh
e370223d1d
Fix register handle leak
...
This was SVN commit r8971.
2011-02-21 22:25:51 +00:00
Ykkrosh
abe07e096a
Build fix
...
This was SVN commit r8970.
2011-02-21 22:22:49 +00:00
Ykkrosh
9bbda8b80b
HTTP proxy discovery for Windows
...
This was SVN commit r8969.
2011-02-21 21:54:47 +00:00
janwas
8f59d52697
sync with work; fix compile error due to lack of boost/serialization in 0ad svn
...
This was SVN commit r8965.
2011-02-21 09:23:51 +00:00
Ykkrosh
e8a650bc30
Const-correctness
...
This was SVN commit r8956.
2011-02-20 20:42:54 +00:00
Ykkrosh
e91434a23d
Extend isImplementedInCore up to GL 3.0
...
This was SVN commit r8950.
2011-02-20 00:52:50 +00:00
Ykkrosh
b2f5dd1b62
Non-PCH build fixes
...
This was SVN commit r8949.
2011-02-19 22:30:34 +00:00
janwas
1a2a7677fd
replace set/map with boost::unordered_* to reduce the number of expensive filesystem::basic_path::operator< calls based on a patch by ortalo (thanks!)
...
This was SVN commit r8947.
2011-02-19 21:24:39 +00:00
janwas
a02a5d8e5e
refactor graphics driver detect code, ensure both variants return name.dll(version)
...
This was SVN commit r8945.
2011-02-19 20:46:43 +00:00
janwas
83569c8f13
detect when detecting OpenGL driver version failed because the driver didn't describe itself in the registry;
...
fall back to detecting the version of the driver DLL (whose name we
guess)
This was SVN commit r8944.
2011-02-19 20:24:38 +00:00
janwas
7445342b61
wdll_ver: avoid errors while reading DLL version due to (lack of) FS redirection
...
UserReport: avoid windows iterator debugging warning due to invalid
operator[]
This was SVN commit r8942.
2011-02-19 19:15:00 +00:00
janwas
1b1230ca3e
wgl compile fix: add types required by new wglext.h
...
wutsname fix (noticed by Philip from hwdetect information, thanks!):
uname.release wasn't always set.
BinarySerializer.h: warning fix
This was SVN commit r8940.
2011-02-19 18:00:09 +00:00
Ykkrosh
ceb4bc9b94
Report more hardware details
...
This was SVN commit r8937.
2011-02-19 00:39:32 +00:00
Ykkrosh
3e1f09a58f
Fix missing newline in GL error reporting
...
This was SVN commit r8936.
2011-02-19 00:38:08 +00:00
Ykkrosh
1c7e33b528
Remove a load of implicit CStr type conversions, since they're error-prone and can cause silent data loss.
...
Handle most CStr8/CStrW conversions via UTF-8 instead of effectively
assuming Latin-1.
Return UTF-8 strings from Xeromyces API.
This was SVN commit r8929.
2011-02-17 20:08:20 +00:00
Ykkrosh
0da7e822ff
# Add opt-in automatic feedback system.
...
Add GL implementation limits to hwdetect.
Make the in-game manual support multiple text files.
Remove unnecessary instruction on how to close the manual window.
Make guitextobject.caption return the original value without stripping
formatting tags.
Remove unused non-VFS support from config system.
Support writing config files back to their original path.
Remove unnecessary user profile directory; use normal config directory.
This was SVN commit r8925.
2011-02-16 20:40:15 +00:00
Ykkrosh
1c3c962ea1
Import libcurl for Windows
...
This was SVN commit r8924.
2011-02-16 11:22:34 +00:00
Ykkrosh
3d992ffea6
GCC build fix
...
This was SVN commit r8923.
2011-02-15 16:40:23 +00:00
janwas
ddba0cc311
topology.cpp: fix for non-contiguous APIC IDs
...
wcpu: avoid undefined shift right on 64-CPU systems (caught via
assertion)
filesystem: add wrename
path_util: add std::wstring variants of common boost::filesystem
routines
This was SVN commit r8922.
2011-02-15 10:38:11 +00:00
Ykkrosh
fe21c5e023
# Rewrite fog-of-war rendering.
...
Disable shadows when only 2 TMUs available.
Clean up some other rendering code.
This was SVN commit r8882.
2011-02-03 01:12:24 +00:00
janwas
fd46b9e370
fixes/improvements from work:
...
file/wfilesystem: avoid error dialog when opening a file that doesn't
exist
precompiled/pch_warnings: remove push/pop that prevented our warning
disables to applying to other code. update comments
topology: refactor APIC field access and add support for constructing
APIC ID from topology
waio: add file_attribute_normal
wsysdep: slightly safer sys_generate_random_bytes implementation
This was SVN commit r8869.
2011-01-28 13:40:07 +00:00
janwas
002e3f5606
minor fixes from work; also add sys_WideFromArgv
...
This was SVN commit r8856.
2011-01-04 19:53:38 +00:00
Ykkrosh
2fa3c554de
Windows build fixes
...
This was SVN commit r8845.
2010-12-30 20:10:04 +00:00
Ykkrosh
40933c06e1
Primitive support for gamepad camera movement
...
This was SVN commit r8844.
2010-12-30 19:45:13 +00:00
Ykkrosh
802f22485b
Fix some warnings on Windows
...
This was SVN commit r8834.
2010-12-11 12:33:02 +00:00
janwas
ba2a9d7af3
improvements from work: [update-workspaces required]
...
- split precompiled.h into several headers (simplifies reuse)
- enable additional warnings not in W4
- split ErrorReaction into ErrorReactionInternal - clarifies which
values can actually be returned by debug_DisplayError
- wsdl: slightly safer HDC usage via CS_OWNDC, avoid dipping into DC
cache via ValidateRect instead of BeginPaint; remove unused thread
create
- StdDeserializer - wasn't including byte_order => BYTE_ORDER was
undefined
- wsysdep: clean up error dialog message handling
This was SVN commit r8828.
2010-12-09 11:16:21 +00:00
historic_bruno
19dbbb816d
Changed all references from old CLogger API to use the new API. Removed old API. Fixes #247
...
This was SVN commit r8791.
2010-12-05 08:41:55 +00:00
Ykkrosh
5df240d97d
Disable broken GUI error reporter on OS X
...
This was SVN commit r8787.
2010-12-04 19:09:41 +00:00
Ykkrosh
53b1447007
Fix what looks like miscompilation with GCC 4.0 on OS X
...
This was SVN commit r8786.
2010-12-04 19:06:13 +00:00
Ykkrosh
4575c26616
Disable compression of public.zip ( fixes #671 ).
...
This was SVN commit r8785.
2010-12-04 15:57:55 +00:00
Ykkrosh
f959390d0b
Mostly fix hypothetical thread/fork interaction dangers
...
This was SVN commit r8689.
2010-11-25 16:11:16 +00:00
Ykkrosh
404f7d4caa
Don't put 64-bit OS X code in the 32-bit-only file. Do put it in the 64-bit-only file.
...
This was SVN commit r8687.
2010-11-24 17:08:00 +00:00
Ykkrosh
94dca529b1
Fix OS X build errors
...
This was SVN commit r8684.
2010-11-23 19:20:03 +00:00
Ykkrosh
80888a7325
Avoid buffer overflow assertion failures when dumping stack trace on Windows.
...
Try to be marginally less likely to get stuck in infinite recursion.
This was SVN commit r8669.
2010-11-20 21:26:22 +00:00
Ykkrosh
c36fc2b8d7
Add script-based system for doing messy stuff based on system configuration.
...
Display warning for certain broken NVIDIA drivers.
This was SVN commit r8663.
2010-11-20 19:46:49 +00:00
Ykkrosh
74c19b5015
Add xmessage-based GUI dialog box for debug messages on Linux ( fixes #663 ).
...
Switch out of fullscreen before displaying dialog boxes.
Add Engine.DebugWarn for testing.
This was SVN commit r8661.
2010-11-20 17:14:45 +00:00
Ykkrosh
404456ee8e
Fix int8_t redefinition errors in VC2010
...
This was SVN commit r8635.
2010-11-17 03:02:04 +00:00
Ykkrosh
bd3bd084c0
Support new SpiderMonkey API.
...
wposix: Define int8_t compatibly with SpiderMonkey.
Remove unused camera, lightenv JS interfaces.
Remove most of vector JS interface.
Remove some of the redundant JS string conversion functions.
Remove unneeded vmem, _lodBias functions.
Clean up some formatting.
This was SVN commit r8629.
2010-11-16 23:00:52 +00:00
Ykkrosh
58b33af168
Support X mouse buttons on Windows
...
This was SVN commit r8591.
2010-11-13 19:51:15 +00:00
Ykkrosh
4100a13e0a
# Add resource shuttling.
...
Add resource-carrying animations/props to an actor for testing.
Warn more quietly about invalid cursor names.
This was SVN commit r8589.
2010-11-13 19:15:29 +00:00
Ykkrosh
25cd781641
Support horizontal scroll wheels for camera rotation
...
This was SVN commit r8582.
2010-11-13 01:00:54 +00:00
janwas
6e74c53ee9
fix file/dir mode bits
...
fixes #648
also fix self-test on ICC 12
This was SVN commit r8558.
2010-11-08 15:02:05 +00:00
janwas
6935a03743
remove no-longer needed GLU dependency; avoids delay-load warning.
...
This was SVN commit r8555.
2010-11-08 10:42:34 +00:00
janwas
24f1a00190
avoid setting executable bit in files/dirs we create
...
thanks to fabio for reporting + a suggested fix.
fixes #648
This was SVN commit r8554.
2010-11-08 10:39:52 +00:00
janwas
6b4d5091b3
fixes from work: use ICC bswap intrinsics instead of fallbacks; update UNUSED2 to work with ICC; update mahaf for Win7
...
This was SVN commit r8553.
2010-11-08 10:01:12 +00:00
janwas
f45c74c368
thread-safety fixes to debug.cpp - most functions were already reentrant, just CAS-ified the assert suppression flags.
...
(NB: the debug_filter stuff remains non-reentrant because it's usually
only called from main() or at least the main thread)
closes #654
This was SVN commit r8543.
2010-11-06 19:14:16 +00:00
janwas
383cf7b220
cleanup:
...
use intrinsics for cpu_AtomicAdd and cpu_CAS, get rid of the
corresponding assembly implementations. (wrapper functions are necessary
at work because mere declarations aren't enough to export the functions
from DLL)
also remove no longer needed fminf
This was SVN commit r8521.
2010-11-02 13:38:56 +00:00
janwas
52851faeb6
cleanup - remove old cpu_memcpy and cpu_i64FromDouble that are no longer needed
...
This was SVN commit r8517.
2010-11-01 11:09:03 +00:00
janwas
b27d6d38e3
thread-safe timer monotonicity check. fixes #653
...
(agree that DBL_EPSILON is an unnecessary hack, since division by
(t+eps)-(t) will yield a number not much more useful than infinity)
This was SVN commit r8516.
2010-11-01 10:19:22 +00:00
janwas
657ec9aa45
WIP timer thread safety:
...
CAS functions now implemented directly in external asm files (avoids
wrapper functions)
reinstated cpu_CAS64 (checking ARCH_IA32 at every call site is onerous)
(temporarily disable timer monotonicity check)
This was SVN commit r8515.
2010-11-01 09:54:03 +00:00
janwas
2b9774aa05
fix: alt+enter -> resize window -> maximize window failed to generate a resize event
...
This was SVN commit r8514.
2010-11-01 09:04:55 +00:00
Ykkrosh
aefc87f226
Windows fixes
...
This was SVN commit r8513.
2010-10-31 22:26:41 +00:00
Ykkrosh
034504f536
Remove misleading wposix declaration of unimplemented gettimeofday.
...
This was SVN commit r8510.
2010-10-31 21:58:30 +00:00
Ykkrosh
dd5ff36363
Fix Linux build error ( fixes #651 ).
...
This was SVN commit r8487.
2010-10-29 15:48:46 +00:00
janwas
0c3d69ae29
fixes from work: clarify that cpu_MemoryBarrier has no runtime cost by renaming to COMPILER_FENCE and moving to code_annotation.h; fix 32-bit Parallel Studio 2011 warning.
...
This was SVN commit r8486.
2010-10-29 12:54:51 +00:00
janwas
825bbf8f51
parallel studio 2011 warning fixes
...
This was SVN commit r8484.
2010-10-28 12:22:11 +00:00
Ykkrosh
e188683bab
Preserve cursor-grabbing across alt-tabs on Windows (probably fixes #508 ).
...
This was SVN commit r8430.
2010-10-21 21:09:41 +00:00
Ykkrosh
a596323ea6
Avoid bogus GCC warnings about uninitialised values
...
This was SVN commit r8429.
2010-10-21 20:33:27 +00:00
janwas
d11bc41d9a
move support for GL swap control into wsdl (based on patch from wacko)
...
fixes #523
This was SVN commit r8399.
2010-10-17 08:55:47 +00:00
Ykkrosh
094ccc6a98
Fix playing of sound files in archives (by disabling proper streaming).
...
This was SVN commit r8370.
2010-10-15 23:06:14 +00:00
janwas
2270961d14
VC2010 fix
...
This was SVN commit r8353.
2010-10-14 09:39:41 +00:00
Ykkrosh
7b59550cc3
Fix #612 (passing a program object to glDeleteShader via pglDeleteObjectARB)
...
This was SVN commit r8344.
2010-10-13 16:45:27 +00:00
janwas
fecac5a7be
# add support for streaming sounds, not just loading them entirely into memory (avoids stalls when switching music tracks)
...
very belated revision/integration of Heron/Kyniker's patch (thanks!)
ogg fixes: ensure file remains open by holding a shared_ptr. avoid
returning 0 (success) when bytesRead==requestedSize.
closes #100
This was SVN commit r8322.
2010-10-10 12:08:51 +00:00
janwas
c9cc7d9784
skip populating directories when mounting and scanning archives => reduces startup time by about half a second when archives are present.
...
also disable archive stats (currently unused) and refactor directory
creation/association logic.
This was SVN commit r8321.
2010-10-10 10:22:11 +00:00
janwas
48360edf21
noticed during testing that the file cache is much smaller than our dataset; added logic to choose a decent size. rebuild-workspaces required.
...
wversion: move into separate component from wutil to allow inclusion
from GameSetup without pulling in windows.h (causes conflicts)
This was SVN commit r8319.
2010-10-09 21:14:08 +00:00
janwas
c9ebacaa36
fix assertion under heavy cache usage due to 32-bit overflow (c.f. http://www.wildfiregames.com/forum/index.php?showtopic=13622 )
...
This was SVN commit r8317.
2010-10-09 18:12:11 +00:00
janwas
7f0b055907
warn when VFS directory creation fails due to an existing file of the same name (was seeing a crash due to a Zip file I had created in the cache directory)
...
This was SVN commit r8316.
2010-10-09 17:53:25 +00:00
Ykkrosh
6b5b35c245
Remove BFD-based debugging code, to avoid the runtime dependency on binutils.
...
Fixes #581 .
This was SVN commit r8271.
2010-10-04 17:21:55 +00:00
Ykkrosh
0d172264f8
# Add -archivebuild mode to generate .zip files for releases, with automatic compression of textures.
...
Fix terrain manager to understand .cached.dds files.
Fix IArchiveWriter so you can pass it absolute paths of files to load,
and different relative paths for storing inside the archive.
Fix fs_util::ForEachFile when called on the VFS root.
This was SVN commit r8130.
2010-09-18 18:21:00 +00:00
Ykkrosh
b15c5c1c45
Add anisotropic filtering support to ogl_tex.
...
Shrink some OglTex fields so that it fits in the size limit.
Add function to efficiently read the 1x1 mipmap level's colour.
Add RGB->RGBA and BGR->RGBA transforms.
Fix DXT1a detection logic.
Fix OglTex_validate failing when ogl_max_tex_size == -1 (e.g. before
ogl_Init is called).
This was SVN commit r8097.
2010-09-10 20:37:54 +00:00
Ykkrosh
ad02ab726d
Expose VFS file priorities.
...
This was SVN commit r8096.
2010-09-10 20:29:38 +00:00
Ykkrosh
5b7afe3606
Fix zip file detection.
...
This was SVN commit r8095.
2010-09-10 20:28:48 +00:00
Ykkrosh
dee3cb84b5
Fix S3TC decoder bug.
...
Add S3TC decoder test.
Fix texture codec test to not be a no-op, then disable it since it
fails.
Add DDS mipmap removal transform.
This was SVN commit r8094.
2010-09-10 20:25:23 +00:00
janwas
c0c8132dd4
fix VFS real path retrieval for files mounted from multiple directories (e.g. mods)
...
closes #564
GetRealPath was too simplistic and just asked the directory *most
recently mounted* into the file's VFS directory for its path. the
correct solution is to ask the file's loader for its path. the archiver
IFileLoader new returns the archive's pathname as the real path.
also simplified VfsFile's interface.
This was SVN commit r8082.
2010-09-05 21:41:45 +00:00
janwas
f5f65c23c0
OSX compat: remove cpu_CAS64 wrapper, since intptr_t and i64 apparently aren't compatible types. IA-32 code should call ia32_asm_CAS64 if it wants to CAS 64-bit values.
...
This was SVN commit r8080.
2010-09-05 15:38:34 +00:00
janwas
2e7436434d
warning fixes: mostly size_t vs. specialized API type and other type conversion.
...
added player_id_t typedef and INVALID_PLAYER, use that instead of -1.
also added sanity checks to cpu.cpp to ensure ARCH_* is correct (see
http://www.wildfiregames.com/forum/index.php?showtopic=13327&hl= )
and further predefined macros to arch.h just to be sure.
This was SVN commit r8079.
2010-09-05 09:38:30 +00:00
Ykkrosh
014d504e3a
Fix FAT-tolerant timestamp comparison
...
This was SVN commit r8075.
2010-09-04 16:46:10 +00:00
Ykkrosh
1c535b6a8a
Fix #544 (Fall back to windowed mode if fullscreen fails), based on patch from oln
...
This was SVN commit r8072.
2010-09-04 14:49:12 +00:00
Ykkrosh
99d56959aa
Fix #552 (compile with new boost (1.44+)), based on patch from Karlik
...
This was SVN commit r8043.
2010-08-29 12:44:13 +00:00
Ykkrosh
3abe355b7c
Disable implementation of os_cpu_SetThreadAffinityMask on Linux, since it's not necessary and it causes errors.
...
Should fix #547 .
This was SVN commit r8024.
2010-08-22 11:23:50 +00:00
Ykkrosh
9fa5af5fbf
Avoid crash when loading texture named "".
...
Report texture-loading errors.
This was SVN commit r8006.
2010-08-19 21:58:27 +00:00
Ykkrosh
8367b73087
Fix warning
...
This was SVN commit r7937.
2010-08-13 18:13:14 +00:00
Ykkrosh
4f1b7bb0e6
Complain more informatively about incorrect ENet versions
...
This was SVN commit r7897.
2010-08-10 21:49:33 +00:00
Ykkrosh
08cdb0b9c2
Fix more --without-pch
...
This was SVN commit r7896.
2010-08-10 20:22:23 +00:00
janwas
7eebe05485
fixes+improvements from work:
...
timer: cleanup, remove duplication
topology: fix incorrect param order
tsc: ensure MSRs are available before accessing
msr: add prefix to make clear that registers are nehalem-specific
This was SVN commit r7892.
2010-08-10 17:03:17 +00:00
janwas
b89e86772b
belatedly add files missing from 3d45069b3f (my bad)
...
This was SVN commit r7884.
2010-08-09 07:37:43 +00:00
janwas
3d45069b3f
improvements/additions from work
...
bits: fix bit_mask for signed types, add SetBitsTo, LeastSignificantBit,
ClearLeastSignificantBit.
add MSR support (read/write via mahaf in kernel mode)
x86_x64: expose family/model
topology: add support for determining core/package from APIC ID.
TSC: report actual frequency for nehalem invariant TSC.
improved UNREACHABLE/ASSUME_UNREACHABLE (avoid ICC warning, add GCC4.5
support)
This was SVN commit r7860.
2010-08-06 13:03:44 +00:00
Ykkrosh
b4e409e80d
Fix #525 more, so it doesn't use an uninitialised variable
...
This was SVN commit r7853.
2010-08-05 17:13:10 +00:00
janwas
c944148337
fix deadlock in pre-XP SP2 windows codepath
...
fixes #525
This was SVN commit r7852.
2010-08-05 16:20:11 +00:00
Ykkrosh
df4e9a05c2
Fix build error on 32-bit Linux
...
This was SVN commit r7851.
2010-08-05 14:24:32 +00:00
Ykkrosh
cc8ad0f3c0
Fix line endings
...
This was SVN commit r7850.
2010-08-05 14:22:56 +00:00
Ykkrosh
51d0abbf2a
Use SDL_GL_SWAP_CONTROL to control vsync on non-Windows. Fixes #520 .
...
This was SVN commit r7845.
2010-08-04 21:30:43 +00:00
janwas
95047013d0
improvement to os_cpu_SetThreadAffinityMask: avoid Sleep(), fall back to APIC ID if GetCurrentProcessorNumber is unavailable
...
This was SVN commit r7841.
2010-08-02 07:56:37 +00:00
Ykkrosh
fdb8be2fd5
Fix warning
...
This was SVN commit r7836.
2010-08-01 17:36:39 +00:00
janwas
e20f93ffdc
add proper OGG support, a near-total rewrite of a patch by Kyniker/Heron. not yet integrated into snd_mgr. also remove the no longer used CMusicPlayer and CPlayList.
...
This was SVN commit r7834.
2010-08-01 10:52:12 +00:00
Ykkrosh
d29dd45237
Fix compiling with Clang
...
This was SVN commit r7824.
2010-07-30 21:42:22 +00:00
Ykkrosh
dd5f242e1e
Fix use of undefined behaviour (shifting by >= size of left operand)
...
This was SVN commit r7823.
2010-07-30 21:33:26 +00:00
Ykkrosh
3124b55cc0
Warning fixes
...
This was SVN commit r7821.
2010-07-29 21:04:07 +00:00
Ykkrosh
1706363bab
Fix #423 (Switch from CppDoc to Doxygen), based on patch from anr.
...
Also delete some unused declarations, and rename is_playing to
snd_is_playing.
This was SVN commit r7813.
2010-07-29 15:55:41 +00:00
Ykkrosh
759e452e0b
Fix warning
...
This was SVN commit r7810.
2010-07-25 18:19:30 +00:00
Ykkrosh
f6a1501410
Set svn:eol-style native
...
This was SVN commit r7809.
2010-07-25 18:08:35 +00:00
janwas
f79056efbd
fix CPU topology problem under VMs reported by Philip (update workspaces required)
...
also moved lib.h's code generation macros into a separate file to break
a circular dependency with lib.h's use of debug_assert, and added a stub
implementation of sysdep/numa.h
This was SVN commit r7808.
2010-07-25 17:10:57 +00:00
Ykkrosh
8d7011998e
Fix typo
...
This was SVN commit r7804.
2010-07-25 11:24:44 +00:00
Ykkrosh
3bccfc295f
Fix the GL extension fallback functions so they actually get used
...
This was SVN commit r7803.
2010-07-25 11:03:45 +00:00
Ykkrosh
4cd88d8aa9
Remove an assertion which I hope wasn't important
...
This was SVN commit r7801.
2010-07-24 21:54:54 +00:00
Ykkrosh
bfcb278bf0
swscanf is an insane mess of bugs and incompatibilities, so stop using it for fancy parsing
...
This was SVN commit r7800.
2010-07-24 20:48:18 +00:00
Ykkrosh
93802f257a
Avoid crash caused by glibc <=2.7 bug
...
This was SVN commit r7798.
2010-07-24 20:03:15 +00:00
janwas
fea6745ec9
fix incorrect screening of APIC IDs (now handle OS X's lack of thread affinity and/or running under a VM without complaint)
...
This was SVN commit r7797.
2010-07-24 18:48:25 +00:00
Ykkrosh
523a6a5819
Fix tests to be more tolerant of odd environments
...
This was SVN commit r7796.
2010-07-24 15:49:40 +00:00
Ykkrosh
9f6eb626b4
Fix reported build errors
...
This was SVN commit r7792.
2010-07-23 19:11:02 +00:00
Ykkrosh
a3f37209a5
Warning fix
...
This was SVN commit r7787.
2010-07-22 19:01:25 +00:00
janwas
8ab70776a5
fix: cpu_CAS64 should use i64 for compatibility with 64-bit CAS
...
This was SVN commit r7786.
2010-07-22 18:57:36 +00:00
janwas
aa44bac652
from work: add thread-safe timer; add CAS64 (required for thread-safe timer); remove topology init requirements, no longer cache results (simplifies GroupPolicy_PerCache); add scoped affinitizer; whrt: fix race condition reported by parallel inspector. also refactor cache and TLB detection.
...
This was SVN commit r7785.
2010-07-22 16:17:33 +00:00
WhiteTreePaladin
41e1652e10
Using .png for session cursors
...
Added .png version of cursors
Added gather treasure cursor
This was SVN commit r7779.
2010-07-21 20:35:26 +00:00
janwas
12568b0229
further fixes from work (where i've finally managed to (temporarily) sign the Aken driver)
...
in particular, remove two hindrances to displaying the error dialog
during early init.
This was SVN commit r7754.
2010-07-14 12:23:53 +00:00
janwas
c634a62f4c
from work: cpu_AtomicAdd - return previous value (required for atomic test&set)
...
numa: move allocator into higher-level VirtualMemory module, since
VirtualAllocExNuma requires Server 2008 and the workaround doesn't
require numa support
This was SVN commit r7753.
2010-07-14 08:52:20 +00:00
janwas
17469a93a1
fix: don't complain if redirecting stdout fails (when running as non-admin from "program files")
...
see http://www.wildfiregames.com/forum/index.php?showtopic=12949&hl=
also remove extern "C" to allow C++ implementation functions
This was SVN commit r7750.
2010-07-14 07:29:35 +00:00
Ykkrosh
0833d6a950
Improve OpenGL 1.1 support
...
This was SVN commit r7747.
2010-07-13 20:37:44 +00:00
janwas
45016e3980
numa: fix: nodeNumber isn't guaranteed to be contiguous; fix race conditions during init; add support for ACPI SRAT; pin NUMA alloc thread to NUMA node; major refactor
...
also removed two critical sections (no longer needed due to thread-safe
init)
This was SVN commit r7745.
2010-07-13 12:45:27 +00:00
Ykkrosh
a440569970
Fix warning
...
This was SVN commit r7744.
2010-07-12 22:17:05 +00:00
Ykkrosh
ee72115b7a
Fix Linux compile error
...
This was SVN commit r7743.
2010-07-12 22:14:28 +00:00
janwas
9f66c86d64
fix ACPI table validation after encountering signatures containing ! and _ (invalid)
...
This was SVN commit r7742.
2010-07-12 13:01:12 +00:00
janwas
98770fa4cc
# fix race conditions in ModuleInit and related cleanup.
...
CAS: uintptr_t->intptr_t to allow use of both cpu_CAS and cpu_AtomicAdd
topology: remove non-thread safe caching, expose ApicIds, use ModuleInit
x86_x64: use ModuleInit instead of unsafe static flags; zero-init regs
instead of just setting ecx
ModuleInitState now holds the LibError returned by the init callback (so
that the second init doesn't appear to succeed despite the first
failing)
wnuma: cleanup, add ACPI SLIT relative distance detection
This was SVN commit r7741.
2010-07-12 12:57:58 +00:00
Ykkrosh
8c1deecdbe
C++0x compatibility (fix narrowing conversions in initialisers; avoid ambiguity with std::next)
...
This was SVN commit r7739.
2010-07-11 22:40:17 +00:00
janwas
e6dec4b4b4
(vc2010) warning fixes
...
This was SVN commit r7733.
2010-07-10 18:24:02 +00:00
janwas
5030706314
more ACPI fixes (acpi_Init removed => callers must be prepared for acpi_GetTable to return 0)
...
This was SVN commit r7731.
2010-07-10 17:42:54 +00:00
janwas
c538d483bc
fix overzealous assert (if windows doesn't provide the ACPI routines, the returned list of tables will of course be empty)
...
see
http://www.wildfiregames.com/forum/index.php?showtopic=12669&st=250&p=207927&#
This was SVN commit r7728.
2010-07-10 16:44:34 +00:00
janwas
fad4383a23
fix: wasn't checking function pointers => crash on older windows versions
...
This was SVN commit r7724.
2010-07-08 21:07:46 +00:00
Ykkrosh
a761cbdb6e
Fix URL opener on OS X
...
This was SVN commit r7720.
2010-07-08 18:35:02 +00:00
janwas
fdf92bee98
warning fixes
...
This was SVN commit r7719.
2010-07-08 10:58:24 +00:00
janwas
b2c4a8597e
enable use of ACPI without the mahaf driver (required for NUMA SRAT access at work). also use new DLL import macros.
...
This was SVN commit r7718.
2010-07-08 10:33:38 +00:00
janwas
8c1bd05ab9
fixes+improvements from work (overhaul wutil, add convenience macros for DLL imports)
...
This was SVN commit r7717.
2010-07-08 10:18:42 +00:00
Ykkrosh
88f25849b3
Windows fixes
...
This was SVN commit r7715.
2010-07-07 22:23:18 +00:00
Ykkrosh
4b06ebd52d
Add basic help page into the main menu.
...
Add buttons to open the web site and IRC.
Tentatively allow Atlas to be launched from the menu.
Add some shutdown functions to support relaunching into Atlas without
having to restart the whole process.
This was SVN commit r7714.
2010-07-07 21:47:31 +00:00
Ykkrosh
8d9fa66b67
Fix warning
...
This was SVN commit r7710.
2010-07-07 10:39:12 +00:00
Ykkrosh
b5c5467c88
Fix errors when compiling with _GLIBCXX_PROFILE
...
This was SVN commit r7699.
2010-07-05 19:13:22 +00:00
janwas
6d3930ace7
fix: don't generate spurious resize events in fullscreen mode when interacting with another topmost window
...
fix: don't store a PIVFS reference in HDATA, because those aren't freed
due to caching (fixes memory leak)
This was SVN commit r7687.
2010-07-04 11:12:50 +00:00
janwas
d2cf6ceb88
less global variables: make most uses of g_VFS explicit (required for another app that has two VFSes), g_yres is no longer required by cursor module
...
This was SVN commit r7686.
2010-07-04 10:15:53 +00:00
janwas
3ff0ccc1fa
we noticed that vcbuild somehow excludes winit function pointers from components that don't contain externals referenced by the main EXE (i.e. wposix, wnuma, wsock). the solution will include calling enet_initialize (to replace or coexist with wsock), removing wposix (see below) and ignoring wnuma (because apps that use it will need to call its functions).
...
wposix's sysconf is no longer used because OS X doesn't support some of
the POSIX names, so we had to add os_cpu routines that supplant the use
of sysconf. am now removing the no-longer needed sysconf emulation,
which also gets rid of wposix_Init.
This was SVN commit r7680.
2010-07-03 19:08:18 +00:00
Ykkrosh
5fec6c40dd
Set svn:eol-style native
...
This was SVN commit r7655.
2010-07-01 16:58:44 +00:00
Ykkrosh
20c50d32d4
Windows fixes.
...
Avoid Boost.Random since it adds a dependency on a new library.
This was SVN commit r7654.
2010-06-30 23:40:51 +00:00
Ykkrosh
545979040b
Expose the user's login name.
...
This was SVN commit r7648.
2010-06-30 21:18:29 +00:00
Ykkrosh
103b60daa9
Fix use of deprecated libpng feature.
...
This was SVN commit r7647.
2010-06-30 21:17:39 +00:00
janwas
dba377532e
# low-level fixes and improvements
...
dbghelp: ensure the DLL from our executable directory is loaded (avoids
breakage related to search-path and Dropbox)
wmi: use single-thread apartment COM model because multithreaded breaks
SHGetFolderPathW
wsysdep: sys_pick_directory: allow user-specified initial path; fix
previous non-unicode initial path; avoid reporting error if user cancels
wutil: add function to query executable directory at any time
This was SVN commit r7633.
2010-06-23 16:17:25 +00:00
janwas
1fc3076820
fix handling of window resizing (more closely match what SDL does, allow calling SDL_SetVideoMode without triggering a resize event); add support for video expose events
...
This was SVN commit r7632.
2010-06-21 20:22:26 +00:00
janwas
f066daf21d
update zlib, libpng; rebuild libjpg (avoids dependency on msvcr71)
...
update-workspaces required.
This was SVN commit r7630.
2010-06-21 11:54:15 +00:00
janwas
eb5f0ce639
fix logic error for CPUs lacking xAPIC (thanks to Brian for reporting this)
...
This was SVN commit r7628.
2010-06-19 18:22:47 +00:00
janwas
85bfdf0983
sync with work (add IO callbacks, export wsdl functions, avoid error in ReadVersionString)
...
This was SVN commit r7627.
2010-06-14 12:09:49 +00:00
janwas
4fa5f1892b
# fix CPU detection issue
...
i3 CPUs report a *maximum* of 8 cores/package, which caused the number
of processors to be misreported as 0 (but only because the APIC IDs were
skipped because the CPU generation was deemed to low, which was due to
failing to consider extended family/model)
thanks to titanforever for reporting this.
This was SVN commit r7626.
2010-06-12 20:21:28 +00:00
janwas
045ac1c197
# cleanup
...
mem_util: inline freelist functions to avoid needing an additional if()
in pool.cpp
pool: add comments clarifying the roles of PoolAllocator vs
RawPoolAllocator
wsdl: refactor (naming convention, determination of window style, reduce
forward decls)
This was SVN commit r7610.
2010-06-05 18:52:39 +00:00
Ykkrosh
a18aa24fe3
Windows support for window resizing and fullscreen toggling.
...
Windows build fixes.
This was SVN commit r7607.
2010-06-03 21:15:45 +00:00
Ykkrosh
0f611042b1
# Support alt+enter to toggle fullscreen mode. Make game window resizable.
...
Refactor the video mode setting logic to cope better with dynamic
changes.
This was SVN commit r7606.
2010-06-03 19:07:59 +00:00
Ykkrosh
65cf204423
Display warnings and errors on screen for a short time ( fixes #119 ).
...
Add warn(), error() functions for simulation scripts.
This was SVN commit r7600.
2010-05-31 22:44:59 +00:00
Ykkrosh
7dca91f26b
# Various changes to the text rendering system.
...
Rewrite font builder tool to be much simpler and to support more text
effects.
Change GUI to use new set of fonts.
Switch font textures from TGA to PNG so they're easier for the font
builder to create.
Support RGBA font textures (for e.g. stroked text).
Greatly improve text rendering performance by using vertex arrays.
Fix rendering code leaving vertex buffers bound.
Add 'clip' property to GUI text objects, to disable clipping when
rendering.
Delete part of unused console function registration system.
This was SVN commit r7595.
2010-05-30 13:42:56 +00:00
Ykkrosh
159b96c1a1
MSVC warning fixes
...
This was SVN commit r7585.
2010-05-25 19:41:18 +00:00
Ykkrosh
ff17691d4f
Add STL-compatible pool allocator.
...
Use pool allocator in serialization code.
This was SVN commit r7584.
2010-05-25 19:24:14 +00:00
Ykkrosh
1e40c8c776
MSVC warning fixes
...
This was SVN commit r7583.
2010-05-25 19:12:00 +00:00
Ykkrosh
9090d25ef8
Force some byte-order functions to be inline.
...
Allow aggressive inlining of MD5 buffer updates (particularly for
fixed-size updates).
Make UTF-8 conversion a little faster.
This was SVN commit r7581.
2010-05-25 18:47:11 +00:00
janwas
a6600185ff
fix delete vs delete[]
...
This was SVN commit r7545.
2010-05-14 21:28:16 +00:00
janwas
f0c2479309
avoid non-utf8 encoded characters being passed to main() on windows
...
refs #503
This was SVN commit r7544.
2010-05-14 21:15:33 +00:00
Ykkrosh
202b13d557
Fix the calling conventions properly this time (I hope)
...
This was SVN commit r7542.
2010-05-13 16:22:07 +00:00
Ykkrosh
f728050b3f
Use correct calling convention on x86-64 OS X
...
This was SVN commit r7541.
2010-05-13 15:31:49 +00:00
Ykkrosh
ba7d237d9a
Fix triggering of "buffer too small" error during some stack dumps.
...
Remove dlopen's debug_assert, for POSIX compatibility and because it
causes very ugly problems when dumping the stack if the Collada DLL is
missing.
This was SVN commit r7530.
2010-05-09 19:52:13 +00:00
janwas
e2fd560983
work around sound-related deadlock and assert on exit (due to OS X's broken OpenAL implementation)
...
refs #297
This was SVN commit r7516.
2010-05-08 19:11:28 +00:00
Ykkrosh
4ea28cf809
OS X Atlas build fix. Fix wcsdup emulation. Remove seemingly unneeded compile flag ( closes #424 ).
...
This was SVN commit r7513.
2010-05-07 23:09:36 +00:00
Ykkrosh
4981af4a57
OS X build/warning/test fixes
...
This was SVN commit r7512.
2010-05-07 20:55:23 +00:00
Ykkrosh
c611bf6613
Fix RingBuf tests to not miss bugs. Fix RingBuf iterator bugs.
...
This was SVN commit r7511.
2010-05-07 20:24:42 +00:00
janwas
ef602c3dfd
fixes/improvements from work
...
- improved form of noncopyable that avoids inheritance warnings
- PCH updates to allow more restrictive MINIMAL_PCH
sound/SoundGroup.cpp: fix copy-paste error
This was SVN commit r7498.
2010-05-03 12:27:39 +00:00
janwas
9864da20fc
vfs: disable error dialog if file not found
...
SoundGroup.cpp: add proper error reporting if snd_open fails
This was SVN commit r7493.
2010-05-01 18:36:24 +00:00
Ykkrosh
c5f8ca32a2
64-bit compat in BMP code
...
This was SVN commit r7489.
2010-05-01 09:45:58 +00:00
Ykkrosh
27556f4b21
Fix window title only displaying the first character
...
This was SVN commit r7440.
2010-04-06 12:32:17 +00:00
janwas
b4f680594b
fixes from work:
...
- correct AllocateAligned deleter and alignment value
- workaround for boost #pragma pack warnings
add DivideRoundUp
This was SVN commit r7439.
2010-04-06 12:06:02 +00:00
janwas
6fb5c1b307
lib/ changes required at work:
...
- allow building regardless of UNICODE setting (e.g. use LoadLibraryW
instead of LoadLibrary)
- export dlopen etc.
- more robust redirection of stdout
This was SVN commit r7427.
2010-04-03 10:46:28 +00:00
janwas
870fe8bfe5
fix nvidia multimon gamma issue ("if at first you fail, try again..")
...
refs #480
This was SVN commit r7421.
2010-03-31 22:26:08 +00:00
Ykkrosh
e1c6249eab
Fix warning and debug spew on OS X
...
This was SVN commit r7417.
2010-03-31 20:33:42 +00:00
Ykkrosh
1ebebc4338
Avoid -Wnon-virtual-dtor warnings
...
This was SVN commit r7416.
2010-03-31 08:36:46 +00:00
Ykkrosh
13302cc133
Disable visible warnings when gamma-setting fails. Fixes #480 .
...
This was SVN commit r7410.
2010-03-28 18:33:35 +00:00
Ykkrosh
672b1221c3
Disable executable stacks in .asm files
...
This was SVN commit r7408.
2010-03-28 18:20:46 +00:00
Ykkrosh
49eb176b25
Fix MSVC compiler warnings (replace most M_PI with (float)M_PI)
...
This was SVN commit r7404.
2010-03-26 19:04:40 +00:00
Ykkrosh
5dce8a2d8c
Disable failing test on Windows. See #478 .
...
This was SVN commit r7403.
2010-03-26 18:58:17 +00:00
Ykkrosh
00e18e4ea8
Report S3TC non-support with an in-game GUI message box.
...
Fixes #313 .
This was SVN commit r7390.
2010-03-23 22:45:07 +00:00
Ykkrosh
58e79bfdbe
Force fancywater off if fragment shader extensions are not supported. See #270
...
This was SVN commit r7385.
2010-03-21 14:18:15 +00:00
Ykkrosh
148ff026ca
Avoid apparent error on OS X by simplifying wopen API to avoid varargs.
...
Remove unused sys_wopen.
This was SVN commit r7384.
2010-03-21 12:42:50 +00:00
janwas
0bbb99c3cd
move M_PI etc. to wposix.h to ensure they're always present on Windows (previously required MathUtil.h)
...
use M_PI instead of nonstandard PI
This was SVN commit r7380.
2010-03-20 20:54:03 +00:00
janwas
d1c5119694
fix: mustn't create directories during mount's vfs path traversal (because they may not be associated with a directory, especially in the common case of mounting into the root directory)
...
fixes #459
This was SVN commit r7378.
2010-03-20 19:26:12 +00:00
janwas
4059826759
when mounting a mod, don't attempt to create the directories (it's reasonable to assume the mod must exist, there is no value in creating a dummy mod directory - unlike the screenshots/logs etc. mounts)
...
this fixes write errors because mods/internal doesn't exist in public
SVN checkouts and the default mount logic tries to mount internal anyway
(and now just fails that operation silently)
fixes #458
This was SVN commit r7375.
2010-03-20 18:12:48 +00:00
janwas
bdfe28766a
osx fix: TIMER_ADD_CLIENT identifier conflicted with the name of an existing symbol (namely the OpenGL function whose time was being measured)
...
This was SVN commit r7374.
2010-03-20 17:46:45 +00:00
Ykkrosh
9a1fab5243
Build fixes ( closes #464 )
...
This was SVN commit r7343.
2010-03-03 14:14:26 +00:00
janwas
1861448e6c
needed to split lib into separate headers and source files, which requires lots of drudgery to specify paths for each include filename (no longer relying on same-directory lookups)
...
also rename wchar -> utf8 to avoid conflict with <wchar.h> (requires
rebuild of workspace)
(unfortunately copying history fails to "502 bad gateway"; had to delete
old + add new independently)
This was SVN commit r7340.
2010-03-01 14:52:58 +00:00
janwas
adb3847e38
export pthread and byte_order functions
...
remove ia32_memcpy (no longer provides performance benefit for >= SSE2
CPUs)
This was SVN commit r7339.
2010-03-01 13:54:33 +00:00
olsner
5bb14c7a59
Misc. unity fixes (missing includes, undefs, and other things that could be considered generic cleanup)
...
This was SVN commit r7328.
2010-02-18 00:06:50 +00:00
olsner
02253f82f0
Add/rename header guards
...
This was SVN commit r7326.
2010-02-17 23:21:49 +00:00
janwas
c2fd939898
license change to the more permissible Expat/MIT license for lib/ (see forum thread)
...
This was SVN commit r7316.
2010-02-08 16:23:39 +00:00
janwas
cdf0ef1908
add SSE4 cap bits
...
This was SVN commit r7315.
2010-02-08 15:56:43 +00:00
janwas
50b79962ad
fix off-by-one error in wcscpy_s parameter list causing crash when copying error dialog text
...
closes #454
Thanks to Erik for reporting this!
This was SVN commit r7303.
2010-02-03 11:01:58 +00:00
janwas
cc0c3988d1
build fixes
...
This was SVN commit r7300.
2010-02-02 13:57:52 +00:00
Ykkrosh
0d12738452
Fix crashlog code so it doesn't always crash when trying to generate the crashlog
...
This was SVN commit r7298.
2010-02-01 20:25:42 +00:00
Ykkrosh
0e8698d652
Build fixes
...
This was SVN commit r7288.
2010-01-27 19:05:02 +00:00
janwas
33882ab698
wdll_ver: safely deal with DLLs that don't have version information (OpenAL32's soft_oal doesn't, and we've renamed it to OpenAL32 to override the Creative implementation, so the system detect code tries to retrieve its version)
...
snd_mgr: cleanup, initialize velocity
This was SVN commit r7280.
2010-01-22 14:22:09 +00:00
janwas
43d5e122ab
clean up, update to newer DDS file definitions, tolerate slightly incorrect values of linearSize that are written by Bob's MacOSX DDS converter
...
This was SVN commit r7271.
2010-01-11 20:53:12 +00:00
Ykkrosh
17718981cf
Remove Crypto++ because it causes too much trouble. Replace with a custom MD5 implementation for simulation state hashing.
...
This was SVN commit r7269.
2010-01-10 19:29:27 +00:00
janwas
f8559e8c99
fix: if waiting for successful cancellation of the IO fails, then m_ovl must remain valid as well (thanks to Philip for pointing this out)
...
This was SVN commit r7265.
2010-01-10 09:34:57 +00:00
janwas
8513d57151
fix: GetOverlappedResult on ReadDirectoryChangesW hangs on Vista unless hEvent is valid (instead wait with timeout)
...
fix: return an error when called before the first watch is registered
(fixes error propagation)
This was SVN commit r7264.
2010-01-09 23:54:46 +00:00
janwas
e4be0892f8
fix: atlas calls ReloadChangedFiles before InitVfs, so safely handle directory watch requests before then (by checking for invalid completion port handle)
...
fix: prevent a pending IO from writing into freed memory by waiting for
the CancelIo to complete
This was SVN commit r7263.
2010-01-09 22:32:27 +00:00
janwas
29c1f282ec
fix: shared_ptr dtor was calling delete on m_data, not delete[]
...
fix: freeing DirWatchRequest while IO was in-flight caused memory
corruption. now CancelIO when destroying the request.
This was SVN commit r7262.
2010-01-09 20:06:32 +00:00
Ykkrosh
7c2e9027c2
# Rewrite of the game's simulation system
...
Giant merge from
http://svn.wildfiregames.com/hg-source/file/5fb522019d5e
Infrastructure is largely complete, gameplay is largely missing
Disabled by default; use command-line flag "-sim2"
(Second attempt at commit...)
This was SVN commit r7259.
2010-01-09 19:20:14 +00:00
Ykkrosh
8dca5f7320
Fix rtl_AllocateAligned on GCC. Add tests for it.
...
This was SVN commit r7255.
2010-01-07 18:52:29 +00:00
Ykkrosh
d0e741b261
Add shader compilation timers
...
This was SVN commit r7254.
2010-01-07 18:48:11 +00:00
Ykkrosh
a116670620
Remove unused wsdl field that doesn't exist in SDL
...
This was SVN commit r7253.
2010-01-07 18:41:28 +00:00
Ykkrosh
48f0c9b5d7
Set svn:eol-style=native
...
This was SVN commit r7252.
2010-01-07 17:42:56 +00:00
Ykkrosh
babab3124f
Add ERROR_ASSOCIATE for reporting VFS errors
...
This was SVN commit r7251.
2010-01-06 20:18:07 +00:00
Ykkrosh
306c74ceeb
Fix license indentation
...
This was SVN commit r7250.
2010-01-06 20:17:37 +00:00
Ykkrosh
6db3dd0f12
Fix isfinite, isinf
...
This was SVN commit r7248.
2010-01-05 22:12:13 +00:00
Ykkrosh
d1f6ea785a
Linux build fixes
...
This was SVN commit r7247.
2010-01-05 20:55:07 +00:00
Ykkrosh
c9a6af2134
Add tests for fpclassify functions (currently failing on Windows)
...
This was SVN commit r7245.
2010-01-05 20:29:58 +00:00
Ykkrosh
aafe575445
Fix buffer overflow in logger. Add tests for it. Make this kind of error harder to miss.
...
This was SVN commit r7244.
2010-01-05 19:55:09 +00:00
janwas
97db62c944
fix handling of non-CP1252 characters in paths
...
(added wide-character versions of posix opendir etc. - on Windows, we
must not convert to UTF8)
This was SVN commit r7243.
2010-01-05 19:44:30 +00:00
Ykkrosh
33ab686128
Fix scanf buffer size
...
This was SVN commit r7242.
2010-01-04 19:15:24 +00:00
janwas
b0dcf49893
fix a hack that broke after switching to _wsopen_s (which ensures the pmode parameter only has read/write bits set)
...
(see http://www.wildfiregames.com/forum/index.php?showtopic=12560&hl= )
This was SVN commit r7241.
2010-01-03 15:58:06 +00:00
janwas
936be062ac
non-VC compile fix: map scanf_s to scanf etc.
...
This was SVN commit r7240.
2010-01-01 23:38:07 +00:00
janwas
03726c0b54
ICC build fixes
...
warning fixes
get rid of SAFE_WCSCPY and SAFE_STRCPY
This was SVN commit r7239.
2010-01-01 15:33:07 +00:00
janwas
5e0ae351db
fix further 64-bit trouble
...
This was SVN commit r7237.
2009-12-30 20:47:55 +00:00
janwas
b443627571
64-bit build fix
...
This was SVN commit r7236.
2009-12-30 20:38:40 +00:00
janwas
c0662bcfd0
fix: OpenAL source suballocator wasn't thread-safe nor capable of detecting double-frees
...
(see http://www.wildfiregames.com/forum/index.php?showtopic=12774&hl= )
This was SVN commit r7235.
2009-12-30 16:42:47 +00:00
janwas
5f56ec86e9
fix waio error handling and update comments
...
This was SVN commit r7234.
2009-12-30 14:28:24 +00:00
Ykkrosh
72ce122146
# Fix OS X build error
...
Fixes #414 (wcscasecmp does not exist on OS X), based on patch from
wacko
This was SVN commit r7217.
2009-12-03 22:55:33 +00:00
Ykkrosh
88ad49bfc2
OS X build fix
...
This was SVN commit r7209.
2009-11-23 13:02:07 +00:00
janwas
7738eecbb0
icc build fix
...
This was SVN commit r7204.
2009-11-16 23:45:56 +00:00
janwas
22ac887785
fix: don't raise warnings when overwriting previous realDirectory (e.g. in the case of multiple mods mounting into the same directory) causes previous directory watches to be canceled
...
This was SVN commit r7202.
2009-11-16 21:01:36 +00:00
Ykkrosh
b51a0187bf
Fix potential unfreed memory on shutdown
...
This was SVN commit r7200.
2009-11-14 19:12:09 +00:00
janwas
78bc63d92c
VC fix: mustn't use filename/parent_path instead of leaf/branch_path because those aren't yet available in the version of boost we're currently using.
...
remove needless restriction on wdbg_printf buffer size
update description of wdbg_printf to match wvsprintfW's real behavior
This was SVN commit r7199.
2009-11-14 18:32:27 +00:00
Ykkrosh
a444e6febc
Don't use wide print functions on typically-byte-oriented streams
...
This was SVN commit r7198.
2009-11-14 11:03:43 +00:00
Ykkrosh
c377a69823
# Fix startup problem on Linux
...
Fix CreateDirectories when paths end in '/'
Use boost::filesystem parent_path in it, instead of deprecated
branch_path
This was SVN commit r7197.
2009-11-14 10:57:08 +00:00
Ykkrosh
af8d7ce98d
Fix tests on Linux
...
This was SVN commit r7195.
2009-11-13 20:51:04 +00:00
Ykkrosh
6c8c99a107
# Greatly improve startup time on Linux, and avoid deadlocks
...
Handle FAM events in a background thread, instead of reading
synchronously
This was SVN commit r7194.
2009-11-13 20:26:20 +00:00
Ykkrosh
5174a0a1ce
Fix GCC warnings
...
This was SVN commit r7192.
2009-11-13 00:49:58 +00:00
Ykkrosh
44066f5ae4
GCC build fix
...
This was SVN commit r7191.
2009-11-12 19:35:28 +00:00
janwas
345395375a
wchar: only raise warning dialog if caller doesn't ask for a return code
...
update test_wchar accordingly.
app_hooks: update documentation
This was SVN commit r7190.
2009-11-10 21:07:18 +00:00
janwas
7a6109f474
debug_SkipNextError changed to debug_SkipErrors (allow skipping multiple instances of the same error code until the next debug_StopSkippingErrors, which returns the number that were skipped)
...
also:
- add listing of error codes to avoid collisions
- cpu: add cpu_MemoryBarrier
- wchar: warn whenever a character is replaced/invalid bytes are
encountered
This was SVN commit r7189.
2009-11-10 15:48:41 +00:00
Ykkrosh
6ee9dd8afe
GCC build fixes
...
This was SVN commit r7188.
2009-11-09 21:40:24 +00:00
janwas
ff15c522fe
implement changes suggested by Philip:
...
- add self-test
- allow decoding UTF8 values beyond BMP (and replace them later)
- quietly replace invalid bytes
This was SVN commit r7187.
2009-11-09 20:53:48 +00:00
Ykkrosh
593bf6a571
GCC build fixes
...
This was SVN commit r7186.
2009-11-09 17:36:39 +00:00
janwas
450da0aaf7
rename [w]string_to_[w]string UTF8
...
add safer/more portable/less dependent on locale implementation of
wchar_t <-> UTF8
This was SVN commit r7185.
2009-11-09 14:52:51 +00:00
Ykkrosh
934bc31246
Fix GCC build error
...
This was SVN commit r7181.
2009-11-07 13:34:11 +00:00
janwas
2ef4e7353e
self-test and x64 fixes:
...
- headerless: distinguish between allocation granularity and min size
(hopefully fixes test failure on x64)
- test_wdbg_sym: disable printf spew
- hpet: use workaround when x64 MOVD isn't available due to processor or
compiler
- JSConversions: VC2005 x64 apparently distinguishes ssize_t from long
int (as it does with size_t)
This was SVN commit r7179.
2009-11-07 12:26:40 +00:00
janwas
7cf2888323
fix to sys_vswprintf's buffer termination (caught by self-test)
...
This was SVN commit r7178.
2009-11-07 09:42:25 +00:00
janwas
f432d9d18b
fix dehydra warnings (some of which were dangerous pass-user-string-as-format-string vulnerabilities)
...
This was SVN commit r7177.
2009-11-07 09:32:19 +00:00
Ykkrosh
378bd89c1d
Annotate some more printf-style functions, for type checking
...
This was SVN commit r7176.
2009-11-06 23:06:50 +00:00
Ykkrosh
3334c83ce0
Fix build and tests on Linux
...
This was SVN commit r7174.
2009-11-06 18:35:32 +00:00
janwas
048d4c41c8
fix: unix doesn't have a standard wopen(). we'd like to use wchar_t _wopen on Windows, and convert to UTF8+open() on unix, which calls for adding a new sys_wopen() interface to sysdep.
...
This was SVN commit r7173.
2009-11-06 16:46:08 +00:00
janwas
607ea6f8b4
chip away at gcc errors/warnings
...
This was SVN commit r7172.
2009-11-06 16:15:09 +00:00
janwas
6ec9128e78
refactor: move reload functionality into ps/Filesystem to allow reloading non-resource files (e.g. scripts); VFS is now responsible for returning VirtualPath and invalidating the changed file/directory
...
This was SVN commit r7171.
2009-11-06 11:50:04 +00:00