]> git.mxchange.org Git - simgear.git/log
simgear.git
8 years agoFix directory creation: 'ds' remains the same while 'dir' gets updated so use 'dir...
Erik Hofman [Sat, 2 Jul 2016 09:06:36 +0000 (11:06 +0200)]
Fix directory creation: 'ds' remains the same while 'dir' gets updated so use 'dir' instead

8 years agoConvert _filename to an SGPath
Erik Hofman [Sat, 2 Jul 2016 09:03:32 +0000 (11:03 +0200)]
Convert _filename to an SGPath

8 years agoSGPath can convert to std::wstring
James Turner [Sat, 2 Jul 2016 08:34:27 +0000 (09:34 +0100)]
SGPath can convert to std::wstring

8 years agoMore SGPath APIs
James Turner [Fri, 1 Jul 2016 16:14:34 +0000 (17:14 +0100)]
More SGPath APIs

8 years agoFix repository test.
James Turner [Fri, 1 Jul 2016 08:02:52 +0000 (09:02 +0100)]
Fix repository test.

8 years agoBuilding with clean SGPath API
James Turner [Wed, 22 Jun 2016 17:09:47 +0000 (18:09 +0100)]
Building with clean SGPath API

8 years agoFix debug runtime assert
James Turner [Wed, 29 Jun 2016 15:26:42 +0000 (16:26 +0100)]
Fix debug runtime assert

8 years agoFurther SG stream APIs
James Turner [Mon, 27 Jun 2016 17:29:14 +0000 (12:29 -0500)]
Further SG stream APIs

8 years agoProperly et frequency, format and buffer size
Erik Hofman [Mon, 27 Jun 2016 11:19:37 +0000 (13:19 +0200)]
Properly et frequency, format and buffer size

8 years agoMove the isNaN function to soundmgr_openal_private.hxx to make it avaiable for the...
Erik Hofman [Mon, 27 Jun 2016 10:35:58 +0000 (12:35 +0200)]
Move the isNaN function to soundmgr_openal_private.hxx to make it avaiable for the soundmanager too

8 years agoiostream overloads taking an SGPath
James Turner [Sat, 25 Jun 2016 15:30:24 +0000 (16:30 +0100)]
iostream overloads taking an SGPath

8 years agoNative SGPath API on SGInterpTable
James Turner [Thu, 23 Jun 2016 14:21:26 +0000 (15:21 +0100)]
Native SGPath API on SGInterpTable

- string-based version will be removed in the future.

8 years agoChanging SGPath APIs, using SGPath in more places.
James Turner [Mon, 20 Jun 2016 15:38:47 +0000 (16:38 +0100)]
Changing SGPath APIs, using SGPath in more places.

Change most places we control (i.e not helper libs) to use SGPath
to represent a path, instead of using std::string. Extend SGPath
API to explicitly expose the path in either UTF-8 or the
system 8-bit encoding.

8 years agoFix Linux compilation of untar.hxx
James Turner [Thu, 16 Jun 2016 09:46:37 +0000 (04:46 -0500)]
Fix Linux compilation of untar.hxx

8 years agoTests for un-tar code.
James Turner [Wed, 15 Jun 2016 21:27:01 +0000 (22:27 +0100)]
Tests for un-tar code.

8 years agoFix Untar namespacing.
James Turner [Tue, 14 Jun 2016 14:13:58 +0000 (15:13 +0100)]
Fix Untar namespacing.

8 years agoExport untar header
James Turner [Tue, 14 Jun 2016 14:12:20 +0000 (15:12 +0100)]
Export untar header

Needed for scenery installation helper.

8 years agoVS215 tweaks, warning fixes
James Turner [Thu, 9 Jun 2016 19:37:54 +0000 (20:37 +0100)]
VS215 tweaks, warning fixes

8 years agoUse STD_ERROR_HANDLE since SG_LOG uses stderr stream
Jasin Colegrove [Thu, 9 Jun 2016 18:27:56 +0000 (14:27 -0400)]
Use STD_ERROR_HANDLE since SG_LOG uses stderr stream
Fixed spacing, cleaned up uneccessary #ifdef's

8 years agoFixes to Windows console interaction.
James Turner [Wed, 8 Jun 2016 17:01:06 +0000 (18:01 +0100)]
Fixes to Windows console interaction.

Thanks To Jasin Colegrove for helping me understand the issues here!

8 years agoFix missing throw.
Thomas Geymayer [Thu, 9 Jun 2016 11:03:40 +0000 (13:03 +0200)]
Fix missing throw.

8 years agoFix dependency on ‘version’ file.
James Turner [Thu, 9 Jun 2016 10:03:35 +0000 (11:03 +0100)]
Fix dependency on ‘version’ file.

8 years agoFix for HTTP/curl waiting on update
James Turner [Wed, 8 Jun 2016 14:43:59 +0000 (15:43 +0100)]
Fix for HTTP/curl waiting on update

This improves responsiveness of TerraSync with small files and general
throughout dramatically.

8 years agoThreadsafe terrasync state updates/reading.
James Turner [Wed, 8 Jun 2016 14:27:47 +0000 (15:27 +0100)]
Threadsafe terrasync state updates/reading.

8 years agoOnly throw an expection if buf == NULL..
Erik Hofman [Tue, 7 Jun 2016 10:59:16 +0000 (12:59 +0200)]
Only throw an expection if buf == NULL..

8 years agoMore repository test tweaks for Jenkins.
James Turner [Tue, 7 Jun 2016 10:23:48 +0000 (11:23 +0100)]
More repository test tweaks for Jenkins.

8 years agoThrow an exception when the current working directory can not be retrieved
Erik Hofman [Tue, 7 Jun 2016 09:51:28 +0000 (11:51 +0200)]
Throw an exception when the current working directory can not be retrieved

8 years agoImproving channel lifetime in HTTP-based tests.
James Turner [Mon, 6 Jun 2016 16:26:50 +0000 (17:26 +0100)]
Improving channel lifetime in HTTP-based tests.

Previously, closed channels were not cleaned up, which looks to be
the caused of the test failures on Jenkins.

8 years agoFix a leak / potential crash
James Turner [Mon, 6 Jun 2016 10:36:47 +0000 (11:36 +0100)]
Fix a leak / potential crash

8 years agoIncrease test timeout value.
James Turner [Fri, 3 Jun 2016 14:26:48 +0000 (15:26 +0100)]
Increase test timeout value.

- investigating failing tests on Jenkins

8 years agoFix uninitialized var
James Turner [Fri, 3 Jun 2016 13:44:25 +0000 (08:44 -0500)]
Fix uninitialized var

8 years agoFix a warning with GCC
James Turner [Fri, 3 Jun 2016 13:40:55 +0000 (08:40 -0500)]
Fix a warning with GCC

8 years agoCMake tweaks for MSVC detection
James Turner [Fri, 3 Jun 2016 11:19:13 +0000 (12:19 +0100)]
CMake tweaks for MSVC detection

8 years agoFix user-after-free in HTTP repo code
James Turner [Thu, 2 Jun 2016 22:53:15 +0000 (23:53 +0100)]
Fix user-after-free in HTTP repo code

8 years agoMore permissive catalog version checks
James Turner [Wed, 1 Jun 2016 21:46:17 +0000 (22:46 +0100)]
More permissive catalog version checks

- support wildcard prefixes on FlightGear versions
- drop catalog version equality check

8 years agoMore VS2015 fixes
James Turner [Wed, 1 Jun 2016 21:36:36 +0000 (22:36 +0100)]
More VS2015 fixes

8 years agoMake sure block align is in samples when calling alBufferi with AL_UNPACK_BLOCK_ALIG...
Erik Hofman [Wed, 1 Jun 2016 21:12:55 +0000 (23:12 +0200)]
Make sure block align is in samples when calling alBufferi  with AL_UNPACK_BLOCK_ALIGNMENT_SOFT

8 years agoMSVC 12 still requires snprintf to be defined
Jasin Colegrove [Wed, 1 Jun 2016 14:24:30 +0000 (10:24 -0400)]
MSVC 12 still requires snprintf to be defined

8 years agoblock_alignment for AL_SOFT_block_alignment is in samples, not in bytes
Erik Hofman [Wed, 1 Jun 2016 12:16:49 +0000 (14:16 +0200)]
block_alignment for AL_SOFT_block_alignment is in samples, not in bytes

8 years agoFix a comment
Erik Hofman [Wed, 1 Jun 2016 08:10:34 +0000 (10:10 +0200)]
Fix a comment

8 years agoRevert to the previous way of handling OpenAL. The reason was to find alext.h but...
Erik Hofman [Wed, 1 Jun 2016 07:51:41 +0000 (09:51 +0200)]
Revert to the previous way of handling OpenAL. The reason was to find alext.h but that reason has gone by copying a small number of defines

8 years agoFix for VS2015 compilation
James Turner [Tue, 31 May 2016 12:41:28 +0000 (13:41 +0100)]
Fix for VS2015 compilation

8 years agoFix VS2015 compilation
James Turner [Tue, 31 May 2016 12:40:32 +0000 (13:40 +0100)]
Fix VS2015 compilation

8 years agoFix VS2015 compilation
James Turner [Tue, 31 May 2016 12:40:00 +0000 (13:40 +0100)]
Fix VS2015 compilation

8 years agoAdd the option to define volume and pitch using an expression
Erik Hofman [Tue, 31 May 2016 11:40:46 +0000 (13:40 +0200)]
Add the option to define volume and pitch using an expression

8 years agoAdd IMA4 support
Erik Hofman [Mon, 30 May 2016 12:17:16 +0000 (14:17 +0200)]
Add IMA4 support

8 years agoMore libCurl version guards.
James Turner [Mon, 30 May 2016 12:02:01 +0000 (13:02 +0100)]
More libCurl version guards.

8 years agoWhitespace fixes.
James Turner [Mon, 30 May 2016 11:53:26 +0000 (12:53 +0100)]
Whitespace fixes.

8 years agoFreeBSD fixes from Ganael LAPLANCHE
James Turner [Mon, 30 May 2016 11:52:48 +0000 (12:52 +0100)]
FreeBSD fixes from Ganael LAPLANCHE

8 years agoAdd test files for mulaw en IMA4 ADPCM
Erik Hofman [Mon, 30 May 2016 09:50:11 +0000 (11:50 +0200)]
Add test files for mulaw en IMA4 ADPCM

8 years agoAdd support for native mulaw encoded samples if the OpenAL implementation supports it
Erik Hofman [Mon, 30 May 2016 09:46:41 +0000 (11:46 +0200)]
Add support for native mulaw encoded samples if the OpenAL implementation supports it

8 years agoFind OpenAL the proper way
Erik Hofman [Mon, 30 May 2016 08:50:22 +0000 (10:50 +0200)]
Find OpenAL the proper way

8 years agoDo not forget to alter the function declaration as well
Erik Hofman [Fri, 27 May 2016 20:43:52 +0000 (22:43 +0200)]
Do not forget to alter the function declaration as well

8 years agoFix two OpenAL related compiler errors
Erik Hofman [Fri, 27 May 2016 17:08:20 +0000 (19:08 +0200)]
Fix two OpenAL related compiler errors

8 years agoMove all OpenAL function calls from SampleMgr to soundMgr
Erik Hofman [Fri, 27 May 2016 12:40:49 +0000 (14:40 +0200)]
Move all OpenAL function calls from SampleMgr to soundMgr

8 years agoSwitch to out own audio format defines
Erik Hofman [Fri, 27 May 2016 09:58:01 +0000 (11:58 +0200)]
Switch to out own audio format defines

8 years agoRemove unused sample queue code
Erik Hofman [Fri, 27 May 2016 09:37:47 +0000 (11:37 +0200)]
Remove unused sample queue code

8 years agoRemove support for stereo sounds
Erik Hofman [Fri, 27 May 2016 08:52:04 +0000 (10:52 +0200)]
Remove support for stereo sounds

8 years agoHTTP: Always use absolute paths for hashes
James Turner [Thu, 26 May 2016 22:36:03 +0000 (23:36 +0100)]
HTTP: Always use absolute paths for hashes

Ensure we only compute / retrieve hashes for absolute paths. Fixes
duplicate paths in repository hash cache.

8 years agoPartial update support for HTTP repos.
James Turner [Tue, 29 Mar 2016 17:11:56 +0000 (18:11 +0100)]
Partial update support for HTTP repos.

Not used yet, we set full-update mode on repositories for the
moment. Pending Terrasync change will enable partial mode.

8 years agoAllow updating a Catalog URL explicitly.
James Turner [Wed, 25 May 2016 20:46:16 +0000 (21:46 +0100)]
Allow updating a Catalog URL explicitly.

Needed for fallback Catalog URL support.

8 years agoExpose pending count from terrasync
James Turner [Wed, 25 May 2016 19:54:26 +0000 (20:54 +0100)]
Expose pending count from terrasync

Total and expose HTTP pending download value as a new
property under terrasync-root.

8 years agoAbstractRepository interface removed.
James Turner [Wed, 25 May 2016 19:39:15 +0000 (20:39 +0100)]
AbstractRepository interface removed.

8 years agoRemove SVN sync code.
James Turner [Wed, 25 May 2016 19:36:04 +0000 (20:36 +0100)]
Remove SVN sync code.

8 years agoRemove old terraysnc backend methods.
James Turner [Wed, 25 May 2016 19:27:24 +0000 (20:27 +0100)]
Remove old terraysnc backend methods.

Only in-process HTTP access is supported now, SVN and rsync
and removed. This is to allow changes for better use of the
HTTP API.

8 years agoAdd SYSTEM_UDNS CMake option. Remove spurious EXPAT_LIBRARIES linking when using...
Maciej Mrozowski [Thu, 26 May 2016 00:24:19 +0000 (02:24 +0200)]
Add SYSTEM_UDNS CMake option. Remove spurious EXPAT_LIBRARIES linking when using bundled expat.

8 years agoGuard usage of CURLMOPT_MAX_TOTAL_CONNECTIONS
James Turner [Wed, 25 May 2016 19:08:20 +0000 (20:08 +0100)]
Guard usage of CURLMOPT_MAX_TOTAL_CONNECTIONS

Check the Curl patch version to avoid breaking on older
sustems.

8 years agoProbably a better fix
Erik Hofman [Wed, 25 May 2016 12:30:06 +0000 (14:30 +0200)]
Probably a better fix

8 years agoMSVC 2013 and later define std::isnan
Erik Hofman [Wed, 25 May 2016 07:08:52 +0000 (09:08 +0200)]
MSVC 2013 and later define std::isnan

8 years agoRevert to c++98
Erik Hofman [Tue, 24 May 2016 19:37:12 +0000 (21:37 +0200)]
Revert to c++98

8 years agoDo not expose both std::isnan() and isnan()
Erik Hofman [Tue, 24 May 2016 15:32:22 +0000 (17:32 +0200)]
Do not expose both std::isnan() and isnan()

8 years agoFirst layer of separation between SimGear an OpenAL
Erik Hofman [Tue, 24 May 2016 13:47:20 +0000 (15:47 +0200)]
First layer of separation between SimGear an OpenAL

8 years agoRevert the check fro std::isnan() and isnan()
Erik Hofman [Tue, 24 May 2016 12:51:17 +0000 (14:51 +0200)]
Revert the check fro std::isnan() and isnan()

8 years agoSwitch to c++11
Erik Hofman [Tue, 24 May 2016 08:42:01 +0000 (10:42 +0200)]
Switch to c++11

8 years agoAdd more missing header files
Erik Hofman [Tue, 24 May 2016 08:12:39 +0000 (10:12 +0200)]
Add more missing header files

8 years agoFix missing <cstdint> on non-Mac
James Turner [Tue, 24 May 2016 07:16:24 +0000 (08:16 +0100)]
Fix missing <cstdint> on non-Mac

8 years agoIndentation fixes (and signed/unsigned comparison fix) to silence GCC 6 warnings
Alessandro Menti [Sun, 22 May 2016 17:14:42 +0000 (19:14 +0200)]
Indentation fixes (and signed/unsigned comparison fix) to silence GCC 6 warnings

8 years agoInitial Tar package support.
James Turner [Wed, 4 May 2016 19:35:48 +0000 (20:35 +0100)]
Initial Tar package support.

Needs proper testing, but basic unit-test passes.

8 years agoCMakeLists.txt: explicitly set the standard to C++98
Alessandro Menti [Sun, 22 May 2016 17:22:29 +0000 (19:22 +0200)]
CMakeLists.txt: explicitly set the standard to C++98

Set the C++ standard to C++98 to avoid GCC 6 compilation failures.

8 years agoFix missing includes
Florent Rougon [Mon, 23 May 2016 10:10:41 +0000 (12:10 +0200)]
Fix missing includes

When SimGear header files are included in a particular order, these
missing includes can cause the compilation to fail.

8 years agoFix a crash with mismatch package versions.
James Turner [Wed, 18 May 2016 18:02:41 +0000 (19:02 +0100)]
Fix a crash with mismatch package versions.

8 years agoFix removal of directories.
James Turner [Wed, 18 May 2016 09:50:57 +0000 (10:50 +0100)]
Fix removal of directories.

8 years agonew version: 2016.3.0
Automatic Release Builder [Tue, 17 May 2016 08:03:44 +0000 (10:03 +0200)]
new version: 2016.3.0

8 years agonew version: 2016.2.1
Automatic Release Builder [Tue, 17 May 2016 08:03:43 +0000 (10:03 +0200)]
new version: 2016.2.1

8 years agoUse _WIN32 instead of SG_WINDOWS for tests in simgear::strutils::error_string()
Florent Rougon [Fri, 13 May 2016 09:49:33 +0000 (11:49 +0200)]
Use _WIN32 instead of SG_WINDOWS for tests in simgear::strutils::error_string()

Since Cygwin has SG_WINDOWS defined but is likely to expose a POSIX or
GNU-like interface, using _WIN32 to decide whether Windows-specific
functions are available seems more appropriate than SG_WINDOWS to me.

8 years agoFix platform check for strerror_r on Mac
James Turner [Tue, 10 May 2016 18:47:25 +0000 (20:47 +0200)]
Fix platform check for strerror_r on Mac

8 years agoFix missing include in simgear/misc/strutils_test.cxx
Florent Rougon [Mon, 9 May 2016 14:37:09 +0000 (16:37 +0200)]
Fix missing include in simgear/misc/strutils_test.cxx

strutils_test.cxx uses std::string but doesn't include <string>
directly. This doesn't cause any error because it includes this header
indirectly via "strutils.hxx". However, I believe relying on this is bad
practice, hence the tiny fix.

8 years agoFix missing include in simgear/misc/strutils.cxx
Florent Rougon [Mon, 9 May 2016 14:03:37 +0000 (16:03 +0200)]
Fix missing include in simgear/misc/strutils.cxx

Thanks to Alan Teeder for the report.

8 years agoThread-safe alternative to strerror()
Florent Rougon [Sun, 8 May 2016 19:45:01 +0000 (21:45 +0200)]
Thread-safe alternative to strerror()

Uses:
  - strerror_s() on Windows;
  - the GNU strerror_r() on non-Windows systems where _GNU_SOURCE is
    defined (which is currently the case when the GNU libstdc++ is used,
    even if one doesn't explicitely define _GNU_SOURCE, cf.
    <https://gcc.gnu.org/onlinedocs/libstdc++/faq.html#faq.predefined>);
  - the XSI-compliant strerror_r() on other systems, as long as
    _POSIX_C_SOURCE >= 200112L (otherwise, the compilation will abort
    due to a #error preprocessor instruction).

8 years agoadd siblings function to bucket.
Peter Sadrozinski [Sat, 7 May 2016 11:43:22 +0000 (07:43 -0400)]
add siblings function to bucket.
At some latitudes, buckets can have multiple siblings.

8 years agoRemove non-CURL HTTP option.
James Turner [Sat, 7 May 2016 09:11:40 +0000 (10:11 +0100)]
Remove non-CURL HTTP option.

8 years agoUse SGBinaryFile in a couple more places.
James Turner [Sat, 7 May 2016 09:03:48 +0000 (10:03 +0100)]
Use SGBinaryFile in a couple more places.

Most importantly, when computing a hash from the on-disk
state.

8 years agoIntroduce SGBinaryFile
Torsten Dreyer [Fri, 6 May 2016 20:01:42 +0000 (22:01 +0200)]
Introduce SGBinaryFile

For Windows, default file mode is TEXT.
If binary files should be created _O_BINARY shall be or'ed to the open
flags. This is not necessary on *nixes.

Introduce a SGBinaryFile as extension to SGFile which adds the flag
upon construction on Windows.

This should keep existing behaviour for all other usages of SGFile.

8 years agoDon't use object returned from vector::end()
Torsten Dreyer [Fri, 6 May 2016 14:21:43 +0000 (16:21 +0200)]
Don't use object returned from vector::end()

Replace all use of c->name by it->file() in
updateChildrenBasedOnHash()'s fsChildren loop
to avoid confusion.

Thanks to Geoff for spotting this!

8 years agoRemove unneeded local scope
Torsten Dreyer [Fri, 6 May 2016 14:20:09 +0000 (16:20 +0200)]
Remove unneeded local scope

(no functional change intended)

8 years agoFix one more crash on Windows in HTTPRepository
Torsten Dreyer [Fri, 6 May 2016 08:48:16 +0000 (10:48 +0200)]
Fix one more crash on Windows in HTTPRepository

inner scope it seems to overwrite out scope it on Win :-/

Anyway, the erase-remove-idiom is a better solution for that task
https://en.wikipedia.org/wiki/Erase%E2%80%93remove_idiom

Also remove some useless debug messages

8 years agoDon't continue parsing after processing version line
Torsten Dreyer [Thu, 5 May 2016 19:59:35 +0000 (21:59 +0200)]
Don't continue parsing after processing version line

8 years agoPackages: fix extract dir cleanup on success.
James Turner [Wed, 4 May 2016 21:22:34 +0000 (22:22 +0100)]
Packages: fix extract dir cleanup on success.

Don’t leave extract_xxxxxxx dirs in the Aircraft tree after successfully
extract the contents to the final location.

8 years agoAvoid unlink of an open file.
James Turner [Wed, 4 May 2016 21:13:15 +0000 (22:13 +0100)]
Avoid unlink of an open file.

Works on Unix, not so great on Windows it turns out. Thanks to Jasin
and Geoff for figuring this out in the end.

8 years agouse safer stl functions instead of pointer operations
Torsten Dreyer [Wed, 4 May 2016 19:10:12 +0000 (21:10 +0200)]
use safer stl functions instead of pointer operations