352 Commits

Author SHA1 Message Date
Alayan
543ee92e00
Confirm the performance report saving to the user
Also fix a compilation issue with compilers not recognizing uint
2024-04-26 16:50:50 +02:00
Benau
12a8b1da1d Update haiku file_manager handling code 2023-03-12 08:26:20 +08:00
Benau
3ecc4ccdad Remove IFileSystem.h in file_manager.hpp 2022-11-18 09:24:31 +08:00
Benau
d170f0f445 Remove irrlicht.h in remaining code if unneeded 2022-11-17 08:46:54 +08:00
Benau
b1fa45437f Add dedicated skybox textures folder 2022-09-13 14:23:04 +08:00
Benau
5f9db20b4f Add IFileSystem::existFileOnly (not including directory) 2022-04-16 12:08:57 +08:00
Benau
661a57b5fc Add a way to acquire file archives mutex 2022-04-11 14:32:36 +08:00
Benau
8df6bdf7c8 Move file system mutex to irrlicht 2022-04-11 13:57:06 +08:00
David Carlier
4f4fb01ed7 upstreaming change for settings paths for haiku.
original author @threedeyes slighty adapted.
2022-03-29 22:28:23 +00:00
David Carlier
18018a5cc1 scoped deref mem utils intro proposal.
trying out in two cases for now.
2022-03-06 19:02:15 +00:00
QwertyChouskie
aee11c6de6 Use getThemedIcon instead of duplicated code 2021-11-01 00:11:31 +08:00
Benau
bc7e6de55b Fix uninitialized track pointer 2021-09-19 08:13:25 +08:00
Benau
639eadaa2d Fix broken cert reading if located in unicode named folder 2021-08-08 14:10:39 +08:00
Benau
c7e337f96f Simplify discord rich presence code 2021-03-21 10:03:28 +08:00
Mary
6631dbdfb9
RichPresence: support addon tracks and karts (#4506)
* RichPresence: support addon tracks and karts

* RichPresence: use 'Story Mode' for internal tracks

* RichPresence: only cache is assets has data

* RichPresence: update RPC after asset list retrieved

* RichPresence: move AssetRequest processing to main thread
2021-03-19 23:37:06 +08:00
Benau
b59c65e989 Fix addon karts display of online games 2021-03-18 10:58:06 +08:00
Benau
7763d851be Add spectate icon in discord rich presence 2021-03-18 10:38:29 +08:00
Mary Strodl
9d57deb35b
RichPresence: return on doConnect even when disabled 2021-03-11 07:42:51 -05:00
Benau
da05d1e905 Make discord code more thread safe 2021-03-11 10:44:24 +08:00
Benau
f2cc6559e6 Fix coding style and use Log::error instead 2021-03-10 16:49:20 +08:00
Mary
0dd3c62a43
Discord rich presence (#4500)
* WIP RPC support

* Might have windows support now, don't peek

* Windows support

* RichPresence: __SWITCH__ => DISABLE_RPC (for MOBILE_STK support)

* RichPresence: Handle JSON strings according to spec, support for addons icon

* RichPresence: use translated difficulty name

* RichPresence: disable when client_id=-1

* RichPresence: thread connection, show server name on RPC

* RichPresence: destroy on close

* RichPresence: don't compile methods at all if DISABLE_RPC

* RichPresence: fix windows compile (untested)

* RichPresence: fix for mac

* RichPresence: Linux needs MSG_NOSIGNAL still

* RichPresence: fix memory leaks, don't spam update while not connected

* RichPresence: free thread on terminate

* RichPresence: handle initial registration

* RichPresence: fix compiler warning
2021-03-10 10:47:33 +08:00
Mary
d9b8b7acad
Support for Nintendo Switch (#4491)
* WIP support for Nintendo Switch

* OpenAL is usable

* Remove some debug code, add manual crash when DEBUG_NXLINK is on

* Remove more debug logs

* Support touch, account name detection, language detection. Remove resolution settings

* Stylistic changes

* SFXManager: update on main thread

* Add build script, remove crypto.hpp changes, disable opengl recorder on switch

* make: use sudo where needed, libs=>lib, portlib=>portlibs

* make: build harfbuzz with freetype

* main: remove DEBUG_NXLINK

* socket_address: this comment is no longer relevant

* Fix indentation in SDL, remove extra debug logs from InputManager

* InputManager: make log debug, not info

* CMakeLists: add mbedtls include dirs on switch

* main: deinitialize stuff

* main_loop: fix format
2021-03-04 09:23:23 +08:00
Alayan-stk-2
5a7099da02 Add an improved player ranking system 2020-08-24 18:44:28 +02:00
Benau
097359fcf4 Use native android progress bar for extraction 2020-07-13 11:04:36 +08:00
Benau
8cc4dd3383 Initial work to make android STK use SDL2 completely 2020-07-12 08:25:06 +08:00
Deve
b028c38dd3 Tweak mkdir permissions.
It will use system umask for safety anyway. And ignore user's decision is evil.
2020-07-05 23:27:32 +02:00
Sebastian Krzyszkowiak
b74dce3887 file_manager: Emit a compiler error when no asset dir is defined for mobile platform
This may save some $HOMEs from being rm -rf'd.
2020-06-25 07:16:38 +02:00
riso
4694223c03
SVG support (#4306)
* first version of svg support

* merge some nanosvg pr

* look for svg icons first

* bug fix

* scale svg depends on screen size

* use irrlicht headers to get screen size

* finish isALoadableFileFormat for svg

* delete dynamically allocated memory

* fix wrong delete

* only rescale icons, due to size settings in stkskin.xml depends on the size of the image file

* check svg in FileManager::getAsset

* fix large icon in list
2020-06-14 15:15:47 +08:00
Benau
d147291e2a Clean temp files when starting STK instead of exiting 2020-02-03 16:52:45 +08:00
Benau
db95d2f88f Clean temp files manually in mobile STK 2020-02-03 09:39:43 +08:00
Benau
9103a66651 Allow remove directory recursively if it's inside addons folder 2019-11-29 21:25:25 +08:00
Benau
45e4175ba6 Add moveDirectoryInto function 2019-11-29 19:49:00 +08:00
Benau
63cb55acb6 Clear previous assets version to free space 2019-10-31 12:53:55 +08:00
Deve
170e4be0ca Merge branch 'master' of https://github.com/supertuxkart/stk-code 2019-10-15 06:13:08 +02:00
Deve
377dd80a05 Fixed cygwin build 2019-10-15 06:12:50 +02:00
Deve
6b26737cd2 Fixed AI in lan multiplayer on android 2019-10-12 22:52:47 +02:00
Deve
c2a20e1526 Avoid a crash when global android app is null in separate process 2019-10-12 22:07:56 +02:00
Deve
1e3313068f Delete libchildprocess_ai when updating apk 2019-10-12 00:49:25 +02:00
Deve
674cfff070 Remove/extract new data only if apk has assets 2019-10-12 00:22:55 +02:00
Benau
e6801e1599 Initial work on icon theme 2019-09-21 11:25:13 +08:00
Benau
c8e3d5b512 Reload addons and grand prix info after downloading assets 2019-08-12 10:21:57 +08:00
Benau
4200f0ca59 Allow install full game assets from stk server 2019-08-08 16:38:53 +08:00
Benau
bdf8c589de Allow using external full stk-assets 2019-08-08 09:39:01 +08:00
Benau
d24e253435 Re-initialize file archives after downloading assets 2019-07-24 01:34:31 +08:00
Benau
5cc5780f28 Add download assets screen for mobile stk 2019-07-24 01:33:12 +08:00
Benau
e9a6882bc3 Fix data path discovery in iOS 2019-07-13 13:46:20 +08:00
Benau
9e6e31cfb2 Allow osx app bundle running inside unicode directory 2019-07-06 16:33:55 +08:00
Benau
b3200937da Allow getting unicode environment variables in windows 2019-06-29 00:31:30 +08:00
Benau
cbf55b6ecf Make all ofstream creation utf8 path aware 2019-06-28 22:54:02 +08:00
Benau
1cd725586f Add functions to handle file in utf8 encoded name 2019-06-28 20:49:33 +08:00