Commit Graph

275 Commits

Author SHA1 Message Date
Deve
ed8b5e9f76 Allow to set different path for log files 2018-07-11 00:31:30 +02:00
Deve
19736c2a51 Try to create external/internal directory if it's not available.
Typically it always exists on new phones, but I didn't find any information if it's guaranteed to exist and it's missing on my old phone.
2018-06-11 22:23:48 +02:00
Benau
402e447ba1 Merge remote-tracking branch 'origin/master' into aes 2018-06-05 10:21:55 +08:00
auria.mg
3f1bd6b25e Merge branch 'UTF8_Config' 2018-06-04 19:34:07 -04:00
Deve
ffee5d266d Prefer /sdcard/Android/data/ for extracting assets.
Fixes #3266, #3281
2018-06-04 22:24:26 +02:00
Benau
ec51a2dfbb Fix memory leak 2018-06-04 11:12:11 +08:00
auria.mg
42d98f8ff1 Start on UTF-8 config conversion 2018-06-03 21:04:46 -04:00
Benau
fa61059ad2 Add double for xml node 2018-05-17 10:28:46 +08:00
Deve
4b972b73c7 Ignore paths that are not writable in assets manager 2018-04-05 22:18:11 +02:00
Deve
d271e27590 Show progress bar before new data is extracting. It will at least show that the game is not hanged and is doing something. 2018-03-08 21:45:20 +01:00
Deve
ff884852d7 Don't hardcode stk data dir on android 2018-02-03 22:18:42 +01:00
Benau
f70af4677c Add direct conversion to map for xml nodes 2017-12-09 16:06:43 +08:00
Deve
57c874f703 Add a possibility to overwrite assets dir using environment variable.
It fixes #2982 when both SUPERTUXKART_DATADIR and SUPERTUXKART_ASSETS_DIR are set.
2017-10-29 21:02:13 +01:00
QwertyChouskie
039a7d0ecc Put screenshots in ~/.local/share/supertuxkart/screenshots (#2932)
* Put screenshots in ~/.local/share/supertuxkart/screenshots

Instead of `~/.cache/supertuxkart/screenshots`.

* whoops :(
2017-09-06 20:22:05 -04:00
Benau
7b571de395 Fix the wrong "misuse"
Now you can play hot.ogg
2017-08-25 16:39:34 +08:00
Deve
6c472660a1 Some additional checks for android assets manager.
If data was already extracted somewhere, then use this directory as preferred path. This is to avoid a situation that we have data extracted in two different places after STK upgrade.
2017-03-03 21:57:55 +01:00
Deve
7c48c3e6cc Choose a directory where we have the most available disk space for data extraction.
It's not a perfect solution because at least on my device internal storage is much faster than sd card. But at least it should be much safer to choose a path with more free space.
2017-02-03 23:53:47 +01:00
Deve
803eba5d5c Fixed typo 2017-01-27 22:44:22 +01:00
auria.mg
7e6761e968 Minor : reduce logging level 2017-01-09 20:30:08 -05:00
auria.mg
67e66b44b0 Improve texture cache code to use precise subpaths instead of hashes 2017-01-06 21:07:53 -05:00
Deve
674e617018 Allow to use isDirectory function outside of file manager class.
It is used on android for extracting assets
2016-12-23 19:01:16 +01:00
Deve
c0cd915716 Minor fixes in file manager.
The listFiles function returns absolute paths, so the condition if ((*i)=="..") doesn't have a sense. I added a check for absolute paths (file == name + "/.."). Btw. what about Windows? Does it return 'name + "\\.." ' or so?

I also enabled recursive removing of directories on Android. It is needed for example when you have already installed STK with extracted data files, and then you want to upgrade STK to newer version.
2016-12-04 22:22:42 +01:00
Deve
419e9e5351 Some minor modifications that make merging with master easier 2016-12-04 15:11:48 +01:00
Deve
8f8acdcef3 Remove android related code part2.
Again, it will be handled in different branch and hopefully with curl and sounds support.
2016-07-14 19:50:34 +02:00
Deve
0f7976e5f8 Merge branch 'master' into gles 2016-07-11 23:23:02 +02:00
Deve
66e76be76d Don't use hardcoded path for irrlicht shaders 2016-07-06 06:37:22 +02:00
Benau
f6ce065cee Allow a few replays coming with the game 2016-04-22 09:49:46 +08:00
hiker
9c71dc78d1 Merge remote-tracking branch 'origin/master' into refactor-network-string 2016-03-06 16:42:16 +11:00
hiker
ab641b0dad Replaced the filename for packet log file in the UserConfig with a
flag to enable/disable this debug output in the file STDOUT.packets
(where stdout is the final set at startup).
2016-03-03 17:10:18 +11:00
Lucas Baudin
419b516dcf Add extra stk-assets possibility (inside the data/) 2016-02-25 23:10:27 +01:00
Benau
5cd27f8f99 Seperate directory for replay files
It allows replay GUI to load them easier
2016-02-12 10:01:54 +08:00
deve
94d5c19b7f Fixed compiler warnings.
The winsock2.h header should be always included before windows.h header (or we should define WIN32_LEAN_AND_MEAN). It's because windows.h header includes also winsock.h header and there is possible conflict between winsock and winsock2.

I didn't test in on Visual Studio yet. I hope there is no WIN32_LEAN_AND_MEAN redefinition errors...
2015-12-03 14:59:54 +01:00
hiker
4833659085 Added --stdout= command line option to change the name of
the stdout.log file.
2015-10-22 11:51:18 +11:00
Marianne Gagnon
06fb6d4eb2 Delete old fonts and related code 2015-10-18 20:15:05 -04:00
Benau
3a5ec83ae9 Basic render of text using freetype
This is a testing version of stk using freetype

It enable better arabic font display with less blurred glyph to all fonts thanks to hinting provide by freetype.

TODO: billboard text
2015-10-04 11:59:44 +08:00
hiker
78c592e4e5 Added a file with a 'unique filename' with version number which is used by STK
to detect that stk is reading the right data files (and therefore avoids #2073,
in which stk finds the wrong data directory).
2015-07-31 22:06:21 +10:00
hiker
431853b451 Removed some unused code, added better error message in case
stk_config.xml could not be found.
2015-07-31 15:45:25 +10:00
hiker
262fc0c373 Started refactoring of shaders to follow our coding style.
One transform feedback buffer shader in particles is done.
2015-04-23 16:44:26 +10:00
hiker
67d5e41d2c Try an improvement for #2073 (stk does not start if /data
exists).
2015-04-05 22:14:48 +10:00
hiker
8d07d26c25 Updated (c) year to include 2015. 2015-03-30 11:42:50 +11:00
Marianne Gagnon
e6aea6e0b6 Improve tools and usage of XML encoding, fixes #1982 2015-02-14 18:30:23 -05:00
hiker
e17add7bc8 Allow users to enable high res textures, even if their default
value stats that they should be disabled.
2015-01-22 11:38:15 +11:00
Deve
d0f96a7673 Allow to cross-compile Windows build under Linux using MinGW.
It works fine on Ubuntu. You only need to use:
cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain-mingw.cmake
2015-01-08 21:46:59 +01:00
hiker
93a3e6c3da Allow irrlicht to use an existing file system (instead of creating
a new each time a device is created). This simplifies the implementation
of the file manager (now the file manager always exists, even when
deleting the dummy device and creating the real device).
2015-01-06 07:48:32 +11:00
hiker
eba7d709c1 Added support for wip-tracks and wip-karts directories, which are only
used when artist debug mode is enabled.
2014-12-15 11:10:54 +11:00
hiker
006a7f95c9 Cherrypicked pull request #1743 (cppcheck performance fixes). 2014-12-01 15:14:27 +11:00
hiker
4e00f691dc Added an assert to check if new was successful. 2014-11-27 09:17:08 +11:00
Tobias Markus
61ccfaac77 Fix errors in src/ that cppcheck yielded with the default configuration 2014-11-20 22:01:46 +01:00
Marianne Gagnon
139f20b39d Merge remote-tracking branch 'sachith/ScriptEngine'
Conflicts:
	CMakeLists.txt
	sources.cmake
	src/io/file_manager.cpp
	src/io/file_manager.hpp
	src/modes/world.hpp
	src/tracks/track.hpp
	src/tracks/track_object_presentation.cpp
2014-10-27 18:43:09 -04:00
hiker
584e909846 Use a separaet asset class for library object to avoid hardcoding
the name of library directory (and avoid searching for files in
more than one directory).
2014-09-30 10:47:10 +10:00