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
The JSON schema provides a machine and human-readable specification of
the assets lists that implementors must follow so that Speed Dreams can
fetch them. An example JSON file has also been provided.
Run check-jsonschema(1) to test an assets JSON file. It can be
downloaded via `pip install check-jsonschema`.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9489 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: bff0b86104dfe3e88896e1d5bfcfa35be2008265
Former-commit-id: e830b70b32d944c24515452ebd76f0dfdb0a6860
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