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