Commit Graph

3296 Commits

Author SHA1 Message Date
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 fe92d524d6 Fix JS_THREADSAFE redefinitions (it's defined by the build system now)
This was SVN commit r7231.
2009-12-28 17:07:29 +00:00
Ykkrosh 00409b9583 # Support latest version of SpiderMonkey
Add --with-spidermonkey-tip option to Premake

This was SVN commit r7230.
2009-12-28 16:45:42 +00:00
Ykkrosh 0765207641 Fix ScriptingHost with threadsafe debug JS builds
This was SVN commit r7228.
2009-12-28 14:50:20 +00:00
Ykkrosh b3d2f665d3 Fix ConfigDB storing invalid values (with LSB set) in JS privates
This was SVN commit r7227.
2009-12-28 14:49:31 +00:00
Ykkrosh a39cb0c83e Fix --without-pch build
This was SVN commit r7224.
2009-12-23 01:46:44 +00:00
Ykkrosh 6fbc524e65 # Terrain-related bug fixes
Fix several off-by-one errors
Reorder some loops to be theoretically more efficient
Other minor cleanups

This was SVN commit r7221.
2009-12-12 17:52:38 +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 9709e80936 Fix MSVC warning
This was SVN commit r7215.
2009-12-03 21:13:27 +00:00
Ykkrosh f0d9806b3f # Restructured GUI implementation
CGUI now represents a single 'page'. CGUIManager maintains multiple
pages and switches between them.
Split the XML files into pregame, loading, session and messagebox pages.
Added hotloading of GUI pages.
Minor GUI cleanups.
(Merge from hg 81862d33780c)

This was SVN commit r7214.
2009-12-03 20:17:22 +00:00
Ykkrosh f85f0c0c2e (Dummy change to help hgsvn)
This was SVN commit r7213.
2009-12-03 20:10:22 +00:00
Ykkrosh 455137afed Fix broken tests
This was SVN commit r7211.
2009-11-24 15:36:08 +00:00
Ykkrosh ab14b71a76 List Lars Kemmann (Caius), for patch in 181a3529de
This was SVN commit r7210.
2009-11-24 13:34:38 +00:00
Ykkrosh 88ad49bfc2 OS X build fix
This was SVN commit r7209.
2009-11-23 13:02:07 +00:00
Ykkrosh 181a3529de Fix #402 (Clean up GUItypes.h), based on patch from Caius
This was SVN commit r7206.
2009-11-19 21:44:19 +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
janwas 781538313c use lib/wchar.h for UTF8 conversion (avoid duplication, more aware of wchar_t differences and surrogate pairs)
fixes #400

This was SVN commit r7201.
2009-11-16 20:05:03 +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 51f16c30d1 Fix recently-introduced bug
This was SVN commit r7196.
2009-11-14 00:08:16 +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
janwas 33ec9060dd gcc compile fix (thanks to Heron for reporting the problem)
This was SVN commit r7184.
2009-11-08 18:58:14 +00:00
janwas 6cc0b1649a robustified GetPatch / GetTile:
- clarify the meaning of mapSize (patchesPerSide)
- use a single ClampCoordToMap function for clamping
- add annotations to all call sites when it is sure they will succeed
- otherwise, ensure return value is checked or at least add debug_assert
fixes #311 (successfully built house and dock at top of latium map)
thanks to Heron for tracking down the cause!

This was SVN commit r7183.
2009-11-08 16:49:52 +00:00
Ykkrosh 934bc31246 Fix GCC build error
This was SVN commit r7181.
2009-11-07 13:34:11 +00:00