4981af4a57
OS X build/warning/test fixes
...
This was SVN commit r7512.
2010-05-07 20:55:23 +00:00
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
27556f4b21
Fix window title only displaying the first character
...
This was SVN commit r7440.
2010-04-06 12:32:17 +00:00
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
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
e1c6249eab
Fix warning and debug spew on OS X
...
This was SVN commit r7417.
2010-03-31 20:33:42 +00:00
13302cc133
Disable visible warnings when gamma-setting fails. Fixes #480 .
...
This was SVN commit r7410.
2010-03-28 18:33:35 +00:00
672b1221c3
Disable executable stacks in .asm files
...
This was SVN commit r7408.
2010-03-28 18:20:46 +00:00
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
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
9a1fab5243
Build fixes ( closes #464 )
...
This was SVN commit r7343.
2010-03-03 14:14:26 +00:00
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
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
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
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
cdf0ef1908
add SSE4 cap bits
...
This was SVN commit r7315.
2010-02-08 15:56:43 +00:00
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
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
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
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
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
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
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
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
8dca5f7320
Fix rtl_AllocateAligned on GCC. Add tests for it.
...
This was SVN commit r7255.
2010-01-07 18:52:29 +00:00
a116670620
Remove unused wsdl field that doesn't exist in SDL
...
This was SVN commit r7253.
2010-01-07 18:41:28 +00:00
48f0c9b5d7
Set svn:eol-style=native
...
This was SVN commit r7252.
2010-01-07 17:42:56 +00:00
d1f6ea785a
Linux build fixes
...
This was SVN commit r7247.
2010-01-05 20:55:07 +00:00
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
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
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
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
5f56ec86e9
fix waio error handling and update comments
...
This was SVN commit r7234.
2009-12-30 14:28:24 +00:00
88ad49bfc2
OS X build fix
...
This was SVN commit r7209.
2009-11-23 13:02:07 +00:00
7738eecbb0
icc build fix
...
This was SVN commit r7204.
2009-11-16 23:45:56 +00:00
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
b51a0187bf
Fix potential unfreed memory on shutdown
...
This was SVN commit r7200.
2009-11-14 19:12:09 +00:00
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
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
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
44066f5ae4
GCC build fix
...
This was SVN commit r7191.
2009-11-12 19:35:28 +00:00
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
6ee9dd8afe
GCC build fixes
...
This was SVN commit r7188.
2009-11-09 21:40:24 +00:00
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
593bf6a571
GCC build fixes
...
This was SVN commit r7186.
2009-11-09 17:36:39 +00:00
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
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
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
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
3334c83ce0
Fix build and tests on Linux
...
This was SVN commit r7174.
2009-11-06 18:35:32 +00:00