Commit Graph
240 Commits
Author SHA1 Message Date
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
Benau d1c2688510 Fix outdated new addon arrow if stk is killed in background 2021-01-26 16:33:19 +08:00
QwertyChouskie 4b47cf3f24 Remove separate menu FPS throttling
We should let VSync/m_max_fps (which defaults to 120) do their job.  If a monitor has a refresh rate even slightly higher than 60FPS (e.g. 60.0007FPS), throttling will introduce stutters, even more so at modern high refresh rates (75, 90, 120, etc.)

This also cleans up the code, e.g. the var name `m_throttle_fps` was also being used in the main loop for a different function, despite having the same var name.
2020-09-27 17:10:17 -07:00
Benau 2fc992ded9 Fix possible crash 2020-09-21 00:49:23 +08:00
Benau 13fa56d951 Fix #4368 2020-08-31 08:46:02 +08:00
Benau 7f8ca9d4ac Proper fix for rubber band effect during resume in mobile STK 2020-08-27 01:04:09 +08:00
Benau 8cc4dd3383 Initial work to make android STK use SDL2 completely 2020-07-12 08:25:06 +08:00
Benau d2474f79aa Update strings for iOS STK 2020-06-13 16:16:27 +08:00
Benau 84cf6b1ea0 Add pause main loop for mobile STK 2020-06-13 15:38:22 +08:00
Benau 719af8c54b Add the missing checking for wrong password 2020-05-01 08:36:53 +08:00
Benau cc9980f2a4 Allow re-enter password instantly for failed private server joining 2020-04-30 07:43:14 +08:00
Benau fbb1889faa Pause request in iOS STK to avoid crash when pressing home button 2020-03-12 23:48:29 +08:00
Benau 63bad92765 Turn race event manager into a singleton get for 2 processes 2020-02-28 09:43:00 +08:00
Benau 6a3e606c2d Turn race manager into a singleton get for 2 processes 2020-02-28 09:42:44 +08:00
Benau 88bbdbdc92 Move no graphics setting to guiengine which is a better place 2020-02-15 14:00:48 +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 f5f647c7ce Save players.xml to avoid achievements gone when pressing home button in mobile stk 2019-12-25 14:38:00 +08:00
Benau dce9bf1e63 Save addons xml when going into background for mobile stk
So the icons don't need to be redownloaded again after it's killed
by OS in the background
2019-12-20 08:59:02 +08:00
Benau d60b087c25 Exit server stk process if STKHost no longer exists 2019-12-06 12:03:18 +08:00
Benau 20ea7fe2ff Improve rubber banding effects of rewinders when going back to phone 2019-11-23 12:52:38 +08:00
Benau 148dc49817 Don't poll irrlicht device without graphics
It fixed crashes for joystick event which does XResetScreenSaver
2019-11-07 09:40:52 +08:00
Benau e5de8f764c Fix #3902 2019-11-01 08:13:41 +08:00
Benau 3437fa5edf Fix iOS crashing when going to background 2019-10-18 19:08:21 +08:00
Benau f4e7ccccfd Implement half sync in iOS manually 2019-10-16 16:46:40 +08:00
Benau 5cc5780f28 Add download assets screen for mobile stk 2019-07-24 01:33:12 +08:00
Benau c337976413 Use unicode windows build with enabling directinput support in mingw 2019-06-26 11:32:18 +08:00
Benau a56343b7e3 Clean up headers
Remove special RTL handling as it will be done when texting shaping
2019-06-15 13:52:28 +08:00
Reiner Herrmann 07b6a16000 Fix several spelling/grammar errors (#3951)
found by lintian
2019-06-04 19:04:18 -04:00
Benau ebf95ee958 Use monotonic clock to avoid system time changes 2019-05-06 15:17:19 +08:00
Benau e2b694f47f Prevent hangs in networking game if system clock running backwards 2019-04-16 19:16:55 +08:00
Benau 44fdd1ec85 Try to fix cutscene timing issues 2019-04-09 02:06:59 +08:00
Benau 52ad702d13 Add fast forward in rewind to avoid android hangs 2019-02-01 17:22:41 +08:00
Benau 2eba8c179f Disable highlight until render gui during loading is bug free 2018-12-21 19:52:27 +08:00
Benau e4e03e6209 Highlight selected vote by player
Animation is disabled atm because not working very well
2018-12-21 19:40:52 +08:00
hiker 4bd57b9f67 Remved VoteOverview screen, and migrated voting related code
to TracksScreen. No display of votes yet.
2018-12-16 01:34:51 +11:00
hiker c4e5a24059 Made the window responsive. 2018-12-13 09:40:45 +11:00
hiker a041832f36 Commented out more debug output. 2018-12-13 09:16:57 +11:00
hiker 92754e09fd Removed debug output, applied work-around for minimap, and reduce
rendernig frequency.
2018-12-11 11:39:32 +11:00
hiker ed29c280b3 Added initial voting animation while loading the track. 2018-12-10 00:29:14 +11:00
hiker f6e758a9d6 Added a phase and optional iteration index/max-iteration to
renderGUI to allow for smooth display of progress bar.
2018-12-06 09:58:29 +11:00
hiker edad214001 Allow the gui to be updates while loading a track, and use this
to show a simple (and still stuttering) animation while loading
a track,
2018-12-05 09:51:41 +11:00
Deve 0313a308d8 Always use real dt for cutscenes.
It fixes #3213
2018-10-28 23:21:55 +01:00
Benau e78dbe2cce Don't start demo world wrongly when isNetworking is true in menu
Fix the weird abyss screenshot with tux in android
2018-10-24 14:37:51 +08:00
Benau ce8125b03a Dismiss the on screen keyboard too when shutdown 2018-10-24 14:32:01 +08:00
Deve c360209676 Avoid memory leaks when window is closed during the race 2018-09-26 22:34:23 +02:00
Deve 0dca414e02 Fixed some memory leaks when a server is closed 2018-09-22 22:06:27 +02:00
Benau 0f39add432 Convert time-related code in network to 64bit to avoid overflow 2018-08-27 13:49:11 +08:00
Benau e5925a53b7 Use the network timer synchronizer to start game 2018-08-27 09:16:35 +08:00