Commit Graph

284 Commits

Author SHA1 Message Date
Alayan
03839b7cfe Move GUI files to categorized folders and update all references 2018-09-16 16:37:42 +02:00
Benau
c8d56cc2b9 Use absolute path of cert location 2018-09-13 16:29:50 +08:00
Alayan-stk-2
323af45fbd
Change profile folder to avoid compatibilities issues
As discussed on IRC with Auria.

This removes the several issues already noticed when switching between 0.9.3 and git versions (forgotten challenges and settings ; and more recently a crash with highscores).

Reminder for git users : you can migrate your data by copying it from the previous folder to the new one, so you won't have to redo your settings/profiles.
2018-09-13 02:19:00 +02:00
Benau
c778a22a3a Use a correct xml syntax for map config 2018-09-11 20:57:19 +08:00
Benau
a5c9bbd3ef Get private port and server id from file 2018-09-06 08:33:11 +08:00
Deve
8b2a40e914 Fixed compilation 2018-08-24 03:27:13 +02:00
Deve
ad8b30b5d3 Recreate libchildprocess after apk upgrade also when device has non-typical internal data dir 2018-08-23 23:08:27 +02:00
Deve
1e0a4dc1aa Delete old libchildprocess after apk upgrade 2018-08-19 21:51:15 +02:00
Deve
80fd62c7d8 More fixes for global_android_app 2018-08-16 22:30:15 +02:00
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