janwas
93ab45e434
simplify file implementation (remove unnecessary layer of abstraction)
...
ensure struct stat has 64-bit fields on windows
also fixed some warnings
This was SVN commit r7120.
2009-08-24 21:04:01 +00:00
Ykkrosh
cd6a926c14
Fix #293 (Lots of printf format string errors), based on patch from Cygal
...
This was SVN commit r7113.
2009-08-14 18:42:39 +00:00
janwas
92786e368b
use a simple linear distance model for attenuation
...
This was SVN commit r7112.
2009-08-12 21:28:10 +00:00
janwas
4c4fec0644
# fix sound error on Linux
...
Linux OpenALsoft implementations weren't resetting source state
correctly when stopping/clearing buffer queue, leading to errors when
the source was reused. workaround: use 'rewind' to ensure the buffer
state is updated.
closes #297 (please reopen if the problem persists)
This was SVN commit r7111.
2009-08-12 20:27:37 +00:00
janwas
119eb08b47
fix potential bug when reusing OpenAL sources (rollover wasn't always set)
...
This was SVN commit r7108.
2009-08-11 20:26:50 +00:00
Ykkrosh
43950c2fde
Simplify sys_get_executable_name by using realpath
...
This was SVN commit r7104.
2009-08-09 20:28:46 +00:00
Ykkrosh
2114bf6795
Fix secure_crt to match MSVC and pass tests
...
This was SVN commit r7102.
2009-08-09 19:11:14 +00:00
janwas
4cebd021b0
fix insidious 32-bit bug that was causing invalid struct stat offsets
...
This was SVN commit r7100.
2009-08-09 17:04:17 +00:00
janwas
369820c315
fix self-test problems exposed by more complete coverage (thanks, Philip!)
...
refs #294
This was SVN commit r7099.
2009-08-09 09:42:23 +00:00
Ykkrosh
bd9bc6db78
Enable invalid parameter tests for VC's Secure CRT
...
This was SVN commit r7097.
2009-08-08 19:18:16 +00:00
Ykkrosh
f4fbe9dc1a
Extend the sprintf_s tests
...
This was SVN commit r7096.
2009-08-08 19:07:03 +00:00
janwas
7bbb4d4777
add more detailed OpenAL error reporting (the line number of AL_CHECK invocation, to allow exact determination of the faulting function)
...
This was SVN commit r7094.
2009-08-08 16:12:02 +00:00
janwas
0ef5f357be
fix behavior of *sprintf_s
...
add philip's test_printf
also add note to archive_builder
This was SVN commit r7089.
2009-08-08 11:13:05 +00:00
Ykkrosh
5c8861adf4
Remove redundant -L linker arguments on non-Windows.
...
Fix some compiler warnings.
Fix missing non-PCH headers.
This was SVN commit r7083.
2009-08-07 17:22:05 +00:00
Ykkrosh
6374080b60
# Fixed Linux execution problem. Extended unit-test system.
...
Fix sys_get_executable_name.
Add mock object support.
Add CxxTest wrapper to support "-test TestSuitename" and "-test
TestSuitename::test_case_name" command-line arguments for running
individual tests.
This was SVN commit r7081.
2009-08-07 15:21:39 +00:00
janwas
5b302658a3
# fix permissions of created directories
...
also took the opportunity to move file_system_posix to file_system since
a further FS abstraction layer = YAGNI. also namespaced
file_system_util.
This was SVN commit r7074.
2009-08-04 19:57:53 +00:00
Ykkrosh
4a4269824b
Add more vararg error-checking annotation
...
This was SVN commit r7073.
2009-08-04 16:08:41 +00:00
Ykkrosh
d83945e1e7
Annotate functions that have printf-style format strings, for compile-time type checking (see #293 )
...
This was SVN commit r7072.
2009-08-04 13:31:41 +00:00
janwas
3726a7c9b1
# safely and silently handle disabled WMI service
...
(see http://www.wildfiregames.com/forum/index.php?showtopic=12548&hl= )
This was SVN commit r7071.
2009-08-03 21:24:00 +00:00
Ykkrosh
373ed7fcb4
Avoid spurious Valgrind uninitialised-value warnings
...
This was SVN commit r7070.
2009-08-03 20:56:00 +00:00
Ykkrosh
c93db6d057
Fix some GCC warnings
...
This was SVN commit r7067.
2009-08-02 19:52:31 +00:00
janwas
ebac85ee81
# hopefully support non-admin accounts and unwritable directories by moving output folders to home/appdata
...
the old behavior (using directories under binaries/) can be kept by
passing -writableRoot on the command line.
the first game load will be slower than usual due to re-creation of
cached XMBs.
This was SVN commit r7065.
2009-08-02 11:07:42 +00:00
janwas
38737202cb
wseh: write the minidump as soon as possible (inspired by http://www.wildfiregames.com/forum/index.php?showtopic=12533 )
...
GameSetup: fix fs::path append (previous code compiled with VC2005 but
is apparently invalid)
This was SVN commit r7064.
2009-08-01 22:01:01 +00:00
janwas
c8cfd8b40b
# groundwork for separated data/cache etc. directories (XDG)
...
remove path.cpp (it was based on the premise that all data files lie
below binaries/data)
This was SVN commit r7063.
2009-08-01 19:37:38 +00:00
Ykkrosh
c67e2429b0
Fix reported build error
...
This was SVN commit r7061.
2009-08-01 15:34:18 +00:00
janwas
46c437ad50
add missing vswprintf_s for non-Windows platforms
...
This was SVN commit r7060.
2009-08-01 12:14:39 +00:00
janwas
4d1ad62e81
# improvements to HPET driver
...
(experimental, use -wNoMahaf command line argument if this causes
breakage)
see #280
This was SVN commit r7058.
2009-08-01 11:22:29 +00:00
janwas
74d37b17f0
# (hopefully) correctly create missing directories, e.g. data/cache/
...
refs #279
This was SVN commit r7057.
2009-07-31 21:31:04 +00:00
janwas
9ca097da58
# add error checking for VFS directory creation
...
refs #279
This was SVN commit r7056.
2009-07-31 21:16:09 +00:00
janwas
acb9658f81
philip correctly points out that local static init from constants isn't thread-safe, and we shouldn't rely on the compiler moving variables to BSS if their constant initializer is 0.
...
This was SVN commit r7055.
2009-07-31 17:48:45 +00:00
janwas
468a67d18c
# miscellaneous improvements
...
- increase io depth and block size to better utilize FusionIO's crazy
bandwidth
- add OS error number to crashlog (error message may be localized and
illegible)
This was SVN commit r7054.
2009-07-31 16:42:39 +00:00
janwas
f626396cad
# fix infinite recursion (reporting errors in error reporting)
...
fixes #282
+ some refactoring
This was SVN commit r7053.
2009-07-31 16:39:54 +00:00
janwas
36549a61b1
# fix error code collision
...
fixes #283
This was SVN commit r7052.
2009-07-30 18:09:35 +00:00
Ykkrosh
6714d80fba
Fix memory leak, Valgrind warnings
...
This was SVN commit r7051.
2009-07-28 20:13:26 +00:00
Ykkrosh
7d21402d0f
Windows test fix
...
This was SVN commit r7050.
2009-07-28 18:49:22 +00:00
Ykkrosh
008d894dd7
Fix some GCC warnings
...
This was SVN commit r7048.
2009-07-28 16:59:19 +00:00
Ykkrosh
4ee7e26776
Add failing test for TraceEntry. Fix TraceEntry.
...
This was SVN commit r7046.
2009-07-28 10:24:42 +00:00
Ykkrosh
f5f1d47aed
Fix some GCC -Wextra warnings
...
This was SVN commit r7043.
2009-07-27 18:32:59 +00:00
Ykkrosh
afcbbc94a7
Fix GCC type warnings
...
This was SVN commit r7042.
2009-07-27 18:30:22 +00:00
Ykkrosh
cd0554c6bc
Fix Linux build warnings
...
This was SVN commit r7034.
2009-07-25 20:35:48 +00:00
janwas
05d73edd2f
# hopefully fix sound error when exiting
...
as per http://www.wildfiregames.com/forum/index.php?showtopic=12483
thanks to Ykkrosh and oliver!
This was SVN commit r7029.
2009-07-21 18:13:01 +00:00
olsner
a866ade2d7
OS X compile fixes
...
This was SVN commit r7015.
2009-07-18 01:58:16 +00:00
olsner
032a41add6
Fix timer configuration: clock_gettime uses timespec, gettimeofday uses timeval.
...
This was SVN commit r7014.
2009-07-18 01:55:26 +00:00
olsner
ae58c456e5
Fix detection of OpenAL string type ( closes #268 )
...
This was SVN commit r7013.
2009-07-18 00:30:27 +00:00
janwas
78c34c6753
update test to reflect new HeaderlessAllocator min. allocation size
...
This was SVN commit r7007.
2009-07-17 07:51:14 +00:00
janwas
2a0025bc28
# fix warnings and 64-bit bugs in headerless.cpp (workspace update required)
...
(hopefully fixes often-reported crashes on 64-bit Linux)
remove lib/precompiled.cpp to simplify PCH handling in build system
This was SVN commit r7006.
2009-07-16 23:53:46 +00:00
Ykkrosh
df36e937f0
Patch from #258 : [FreeBSD compat] add some missing includes
...
This was SVN commit r7001.
2009-07-16 16:53:55 +00:00
janwas
663fcfeb9a
# macosx compile fix
...
(OpenAL ALC string definition differs on Windows vs OSX)
This was SVN commit r7000.
2009-07-16 16:48:06 +00:00
Ykkrosh
a389dd3afa
Fix buffer overflow on Linux
...
This was SVN commit r6996.
2009-07-16 12:35:23 +00:00
Ykkrosh
ac38db53dd
Try again to fix the GL 2.0 function names
...
This was SVN commit r6987.
2009-07-14 14:06:59 +00:00