Any references to Win32-specific symbols should be precluded with this
header file to avoid undefined reference errors.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9534 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: a32d06d62773b99b8878b9dbecb6425c2cf7fcf5
Former-commit-id: a16cf8bd4dcd47c1fc82904138b9daa8a9737931
Unfortunately,
AbstractColorChooserPanel.setColorTransparencySelectionEnabled was
introduced by Java 9, whereas Speed Dreams still targets Java 8 (aka
1.8).
Despite the more confusing GUI, which allows users to adjust
transparency, it returns the same Color to the caller regardless
transparency, so no regressions are introduced.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9533 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 747030115c46ef36e4e9e644e8c1c04cc26ccf2c
Former-commit-id: 2e4e0df74521e4f16371d8832cdd6b4f6e3e34f1
std::ios::binary holds equivalent semantics to fopen(3)'s 'b' flag.
Whereas POSIX systems would typically ignore this flag, Windows relies
on this flag to apply conversions to newline characters.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9529 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: e91037ffa80ddede63866f10012d9d8a5d0e67e5
Former-commit-id: 115f04a57001cf92fca5d3b27ce5e2b2c5fe4dd9
The following shell script was used:
while read f
do
sed -Ei 's/[[:space:]]+$//g' "$f"
done <<EOF
$(svn ls -R | grep \
-e '.\cpp$' \
-e '\.cmake$' \
-e '\.txt$' \
-e '\.cppcheck$' \
-e '\.frag$' \
-e '\.h$' \
-e '\.hpp$' \
-e '\.vert$' \
-e '\.xml$' \
-e '\.java$' \
-e '\.c$')
EOF
As a side effect, this has also converted some files from CRLF line
endings to LF.
File extensions such as .ac or .osg were intentionally left out because
those usually are very large files generated by tools.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9507 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 6c1e5ab34415982ec77fc92a77e1b1c149518eca
Former-commit-id: c6cf9480ae7c1d2f9a999eb6c6b976eef8bae3ba
Otherwise, GfLocalDir and GfDataDir might be residing on different file
systems, and therefore rename(3) could fail with EXDEV ("Invalid
cross-device link").
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9503 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 7ffb92a15b0e36930c930f279d75e940d8083527
Former-commit-id: e0947c2dba73073af5b1be4b60469474b9fd6dea
Whenever an error occurs, libcurl expects a value different than size,
and not a negative value. This should fix signed-to-unsigned diagnostic
messages from some implementations.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9501 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 328c49f1644e946096f78b581f2d3fac6b3eea7a
Former-commit-id: 3beaee432ff7f655b11aaa3f2c33f2600e86d9ae
This file was originally in C99 and (poorly) adapted to C++, which
caused some syntax errors as C++ holds different rules compared
to C99.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9494 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: d7020315ae5cd1d5657c44695ec321e15be7545f
Former-commit-id: 2a88f57ba6e41584074a6410edcecf39463f868a
This in-game download manager allows users to fetch assets, such as
cars, tracks or drivers, from a configurable list of servers following a
specific JSON schema.
Several smaller classes have been designed to assist the download
manager:
- entry: defines an entry in the assets lists and its state.
- thumbnail: defines a visible entry on the list, will always match
one entry.
- writebuf: allows dumping a file downloaded over HTTP{S} to memory.
- writefile: allows dumping a file downloaded over HTTP{S} to a file.
- unzip: a higher-level, C++ wrapper to minizip.
It was also required to implement a function that removed directories
recursively, namely rmdir_r. Since this is not portable accross POSIX
and Windows systems, their respective implementations have been provided
on src/libs/portability.
The following dependencies have been added:
- libcurl: HTTP{S} operations, already required by webserver.
- OpenSSL: hash calculation.
- minizip: zip extraction, it required its on Findminizip.cmake as it is
not provided by upstream CMake.
- zlib: required by minizip.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9490 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 915908c54f5ea8d7f6926943b2fea670e9973bea
Former-commit-id: 9cb2a8874779f6b4d9d6201f3d8af8b29c067a13
Future commits will make use of C++11 features.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9488 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: f05b17bcd17f756665d440da4ed8c29a61ca9785
Former-commit-id: 459a21a593e3a2e129a7a1aa08b2cabd45931780
For some unknown reason, labels could not have their text reassigned to
a longer text, being limited to the length of the first text that was
ever assigned to it.
This seems like an arbitrary limitation that does not introduce any
regressions, so it is probably reasonable to remove it.
Additionally, future commits will make use of labels whose text could be
reassigned several times.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9487 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 2536884b05c76ec5788ef59fc8556cc5a9fe3705
Former-commit-id: 2deec2b67b979e173b4f878dbed1811ebdde475e
There is no actual reason why the path length ought to be limited to
1024 bytes. Since strPath was already a std::string, it made sense to
use to concatenate all tokens with it and use c_str instead.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9486 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 1ffcb2a1e6b949ce31ddc3466921997b38855f44
Former-commit-id: 1a0565184bdc86ad5c7fd10f1db29b08ae000953
This will be used by future commits.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9485 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 45f75ac5601b75d4b9abd1d6962dd2144fc20005
Former-commit-id: 1191050c84198aae6f224c7b50eecad6a10fde7b
This new configuration can be adjusted from the display configuration
screen and allows to cap maximum fps so that CPU load is greatly
reduced, especially on menu screens.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9484 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: b63c4a7c907bbfb3fc8d44a6a77c7c1948341174
Former-commit-id: c331b396c32d1fd7d57b17ab880f44b808e12088