b9a6d2af16
Use the debugger output on Windows for invalid parameter tests (see bd9bc6db78
).
...
This way, the test output is not polluted by the error messages when
running in debug mode.
This was SVN commit r18608.
2016-08-15 12:15:19 +00:00
bcbf25bfbd
Fix line endings of all files in source/ except source/third_party/.
...
This was SVN commit r18558.
2016-07-25 09:07:45 +00:00
f4e69b7c07
Cleanup of #3255 , fixes #3966 .
...
Don't create an empty oos_logs directory when starting the game.
Rename getDateIndexSubdirectory to createDateIndexSubdirectory.
Add a comment for the breakpoint argument of CreateDirectories.
This was SVN commit r18183.
2016-05-16 00:56:07 +00:00
c9cecab0be
Remove libjpeg. Fixes #2828 .
...
Based on patch by dalerank, tested on Windows, might need to be amended
for OSX.
This was SVN commit r17870.
2016-03-12 18:15:04 +00:00
a32ed75bff
Fix a race-condition when two games have been started simultaneously and attempt to create the same replay directory, refs #3255 .
...
Instead of triggering a debug-breakpoint, print a warning to stdout and
succeed in the N'th retry when having started N processes
simultaneously.
Previously the problem had been addressed by using the processID in the
directory name.
This was SVN commit r17776.
2016-02-19 11:22:32 +00:00
48ba4d9cb4
Updates precompiled win32 SDL libs to 2.0.4 from libsdl.org.
...
Fixes windows build with SDL 2.0.4, fixes #3138 , #3225
This was SVN commit r17658.
2016-01-17 23:11:37 +00:00
c33d1e3741
Remove commented out code and comments invalid since 9542ecdd7e
.
...
This was SVN commit r17647.
2016-01-13 22:39:09 +00:00
89aef0b6eb
Cinematic camera core functionality. Patch by Vladislav Belov.
...
Based on existing code that was still around from an old(not working)
implementation.
Supports basic control from trigger scirpts (queue, start and stop
camera paths) and works in multiplayer.
This was SVN commit r17594.
2016-01-03 12:41:04 +00:00
9a2d0f803e
Remove disabled by default SDL1 support.
...
Refs #2041 .
This was SVN commit r17470.
2015-12-14 10:52:21 +00:00
5b2738b0cb
Doubles size of sound card string buffers, for users with many sound devices present. Fixes #3660
...
This was SVN commit r17365.
2015-12-02 22:41:17 +00:00
6f09803e8c
TerrainTextureManager file loading rewrite. Fixes #3358 .
...
Add directory callback to vfs::ForEachFile.
Each terrain directory should now have a terrains.xml file,
as using the previous terrains.xml file is unlikely to be what was
intended.
This was SVN commit r17341.
2015-11-30 20:12:12 +00:00
c0b4e78801
Fixes stream serialization bug on OS X 10.8 and older, which caused instant OOS in multiplayer games, fixes #3108 .
...
Fixes test failures on OS X 10.7 and older, refs #3109
This was SVN commit r17133.
2015-10-15 03:31:30 +00:00
36c6b50944
Revert emplace for associative containers. Fixes #3366 .
...
GCC < 4.8.0 does not support emplace for those.
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44436 .
This was SVN commit r16922.
2015-08-19 03:32:47 +00:00
674f49f1a8
Remove generated test files during clean-workspaces.sh. Patch by otero. Fixes #3275 .
...
Also remove two generated and disabled test files.
This was SVN commit r16921.
2015-08-19 01:30:09 +00:00
217a500d60
Add missing license headers. Fixes #3357 .
...
This was SVN commit r16903.
2015-07-31 11:28:14 +00:00
c5aad60776
Actually stop iterating if retval != INFO::OK. Also fix comments.
...
This was SVN commit r16900.
2015-07-30 21:50:58 +00:00
15a4c813d6
Add support for AArch64 (ARM64). Patch by tbm. Fixes #3345 .
...
This was SVN commit r16899.
2015-07-30 19:52:55 +00:00
8bfe16cac8
Use in-place construction.
...
This was SVN commit r16894.
2015-07-29 23:44:17 +00:00
bd53e9d736
Remove unused ah_translate code.
...
This was SVN commit r16881.
2015-07-27 01:08:15 +00:00
caa8f51c2e
Annotate custom assert for clang-analyzer.
...
This was SVN commit r16800.
2015-06-21 18:46:23 +00:00
e5727980da
Adds debug output to display return code of failing SHGetFolderPathW, refs #3267
...
This was SVN commit r16688.
2015-05-27 02:02:32 +00:00
487d6a1afc
When using SDL2 recommend a >= 2.0.2 version to avoid incurring in possible bugs with older versions.
...
This was SVN commit r16585.
2015-04-27 07:56:34 +00:00
b6bcfdbb2e
Fixes missing newlines in debug_printf, patch by elexis, fixes #3056
...
This was SVN commit r16534.
2015-04-12 19:38:31 +00:00
cf527707da
Revert "Improve ARRAY_SIZE." ( 7afaacda19
).
...
constexpr and noexcept are only supported by VS November 2013 CTP.
This was SVN commit r16508.
2015-04-06 21:24:53 +00:00
7afaacda19
Improve ARRAY_SIZE.
...
This was SVN commit r16499.
2015-04-05 16:50:26 +00:00
89107d1406
Fixes grayscale PNG handling, there is no need to convert them all to RGB and 4741e896c4
broke special font texture handling. Instead, only grayscale with alpha PNGs will be converted to RGBA (they fail to load otherwise).
...
Removes warning about converting grayscale textures, refs #1640 .
This was SVN commit r16449.
2015-03-19 03:04:01 +00:00
4741e896c4
Improves handling of PNG textures based on GdkPixbuf's setup_png_transformations. The PNG decoder should now support grayscale, RGB or indexed color; bit depth up to 16; and interlacing. Fixes #1640 , refs #2823 , #3082
...
This was SVN commit r16439.
2015-03-16 02:28:00 +00:00
b1c4e29ac8
Fixes inconsistencies in spelling of colour/color by preferring "color" (only wxWidgets remains with some API that requires "colour"), fixes #1029 .
...
NOTE: requires update-workspaces and may require correction of some
modded actors/scenarios
This was SVN commit r16438.
2015-03-15 23:59:48 +00:00
e41ec77eb6
Remove unused file.
...
This was SVN commit r16417.
2015-03-15 04:16:31 +00:00
7fe9eb956f
Fixes error in SMBIOS::InitStructures by not warning on invalid header size, fixes #2985
...
This was SVN commit r16374.
2015-02-22 00:42:11 +00:00
e48e330db7
Sets SDL2 as default and only build option on Windows.
...
Removes remnants of WSDL. Refs #2041
This was SVN commit r16357.
2015-02-20 05:52:18 +00:00
a5e940430f
Suppresses libpng warning "iCCP: known incorrect sRGB profile" by manually handling warning messages (errors still use default handler), fixes #2184
...
This was SVN commit r16350.
2015-02-17 10:50:19 +00:00
49222a4c6a
Fix Windows build
...
This was SVN commit r16334.
2015-02-14 02:22:22 +00:00
e06a7b37d8
Convert debug_printf to take UTF-8 strings instead of wchar_t.
...
This fixes the problem where passing a non-ASCII string to
debug_printf(L"%hs", s) caused vswprintf_s to fail on Linux (because it
doesn't know what encoding the char* is meant to have). Now debug
messages will remain as UTF-8 until they reach the OS.
Fixes #3021 .
This was SVN commit r16332.
2015-02-14 01:45:13 +00:00
4473ed5c88
glext_funcs: Support glMapBuffer, glMapBufferRange
...
This was SVN commit r16231.
2015-01-25 16:36:23 +00:00
4c1903500b
Switch to std::shared_ptr and std::weak_ptr.
...
This was SVN commit r16227.
2015-01-25 03:10:58 +00:00
0843100d11
Remove partial emulation of some C++11 features for older compilers.
...
This was SVN commit r16226.
2015-01-24 20:37:18 +00:00
0261d12727
Remove some checks for usupported VS versions (<2013).
...
This was SVN commit r16225.
2015-01-24 20:37:16 +00:00
fc902df07c
Remove checks for unsupported GCC versions (<4.6).
...
This was SVN commit r16224.
2015-01-24 20:37:07 +00:00
67956f969e
Make ARRAY_SIZE(pointer) complain in GCC, not just in MSVC.
...
The ArraySizeDeducer trick has worked since at least GCC 4.4, so it's
fine to rely on it now.
This was SVN commit r16218.
2015-01-24 17:35:25 +00:00
de25e536c3
Update NONCOPYABLE to use C++11 "=delete".
...
This gives slightly better error messages.
This was SVN commit r16217.
2015-01-24 17:33:49 +00:00
3ce38e536e
Update cassert to use C++11 static_assert.
...
This gives clearer error messages, and simplifies the code.
This was SVN commit r16216.
2015-01-24 17:29:19 +00:00
8f0ace2658
Make Android %ls/%hs workaround work on secure_crt as well as wsecure_crt.
...
Refs #2996 .
This was SVN commit r16210.
2015-01-24 00:22:12 +00:00
4d4ddb5978
Add workaround for Android libc++ swprintf bug.
...
Based on patch by BogDan. Refs #2996 .
This was SVN commit r16209.
2015-01-24 00:20:15 +00:00
c9dee72667
GLES doesn't have glDisable(GL_TEXTURE_2D).
...
Patch by BogDan. Refs #2996 .
This was SVN commit r16206.
2015-01-23 20:40:02 +00:00
ad3e330861
Workaround for limitations of Android's vswprintf implementation.
...
Based on patch by BogDan. Refs #2996 .
This was SVN commit r16203.
2015-01-23 20:38:13 +00:00
65cc47f6c0
Deletes unused bundled MSVC runtime libs for old 2005 and 2008 versions.
...
Removes VC80 manifest info.
This was SVN commit r16199.
2015-01-23 03:21:48 +00:00
f350a24c73
Disable "assignment operator could not be generated" warning globally on Windows, since it's never useful.
...
This was SVN commit r16192.
2015-01-22 21:09:33 +00:00
d7926eb612
Add basic tests for %s/%hs/%ls in sprintf_s, swprintf_s.
...
This was SVN commit r16191.
2015-01-22 20:39:53 +00:00
ef2a358f87
Remove sys_vswprintf.
...
The implementation on Windows was gross. The only user was CLogger,
which no longer uses it.
Also fix vswprintf_s to handle truncated output correctly (by returning
"") on Linux, now that CLogger is no longer relying on the buggy
behaviour.
This was SVN commit r16190.
2015-01-22 20:39:28 +00:00