Commit Graph

365 Commits

Author SHA1 Message Date
Benau
dd6768911d Build for armv7 windows
No installer as armv7 windows has no x86 emulation
2022-09-18 23:54:44 +08:00
Panagiotis "Ivory" Vasilopoulos
0c147c0a0b Fix URLs on Haiku
My general strategy of getting ports to work on Haiku is to just take advantage
of whatever makes things work on FreeBSD by adding an additional condition and
then fixing up things later once it compiles successfully. This generally
works, as Haiku contains FreeBSD headers for compatibility and code that
takes other operating systems into account other than Windows, Linux and OS X
and has a higher degree of POSIX compatibility tends to work on FreeBSD and
Haiku. This strategy is not perfect, and this commit proves it.

Haiku is the successor of BeOS, which, in turn, shows similarities to macOS
every now and then, as the company almost acquired Be, Inc., but later chose to
acquired NeXT, Inc. instead.

`xdg-open` is not available on Haiku by default the same way it is on
FreeBSD and Linux. With that in mind, this should fix URLs, which do
not not work properly on Haiku. Actually, nevermind, I forgot that there
is actually a package available that adds support for them. But still.
The less dependencies, the better, probably. This is also how other
packages with ports available on Haiku solve this problem.
2022-03-27 21:22:48 +02:00
David Carlier
fcf7cf953f http curl client favoured new progress api if supported.
suppress openssl warning with openssl 3.0
2022-02-26 11:49:44 +00:00
Benau
38cfd912bd Add extractURLFromGlyphLayouts which handles RTL layout properly 2021-09-08 14:58:35 +08:00
Benau
e85b82001f Fix invalid URL in line breaking 2021-09-08 13:27:09 +08:00
Benau
ae98b0cf9b Use LinkHelper::openURL on highlighted URL 2021-09-06 14:19:39 +08:00
Benau
f5f821c925 Use SDL_OpenURL when possible 2021-09-06 11:13:46 +08:00
Benau
2dffb78679 Implement background download for addons pack 2021-08-11 10:50:27 +08:00
Benau
5ec426b275 Don't clear password if downloading error, fix #4549 2021-07-14 10:47:14 +08:00
Benau
7f9f4dc182 Fix compilation with latest sdl2 2020-12-05 14:22:59 +08:00
David Carlier
a27737ef85 xdg-open NetBSD supports it too. 2020-10-24 23:01:10 +01:00
David Carlier
d4a9f1c5b5 online helper enabled on haiku 2020-07-25 13:52:59 +00:00
Benau
8cc4dd3383 Initial work to make android STK use SDL2 completely 2020-07-12 08:25:06 +08:00
Benau
9157fb43f0 Use std::thread, std::mutex and std::condition_variable everywhere 2020-04-11 11:01:18 +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
00c7bf561e Fix news manager assert error when exit too early 2020-02-03 01:27:17 +08:00
David Carlier
b3e76e082e FreeBSD online linker URL support 2020-01-19 12:15:16 +00:00
Benau
01c57fa483 Add link helper for iOS 2019-12-21 01:30:01 +08:00
Benau
a45d4fe9f2 Show download size for addons pack 2019-12-06 19:34:26 +08:00
Benau
4cb3383c4a Remove the unneeded manage memory option in request 2019-12-01 01:19:51 +08:00
Benau
89d35f09fa Replace observeExistence with std::weak_ptr of Request 2019-11-30 16:25:21 +08:00
Benau
13975cc5db Use std::shared_ptr for Request to avoid leaking 2019-11-30 16:01:31 +08:00
Benau
19d008d0f8 Add support for installing addons pack 2019-11-30 00:36:35 +08:00
Benau
ab3d8ef415 Implement link helper for android 2019-10-28 16:47:05 +08:00
Benau
bb27cb17fb Fix missing auto login for saved session
setWasOnlineLastTime(true) before saving, before it was run in
BaseUserScreen::loginSuccessful which is after writing players.xml
2019-10-11 22:55:14 +08:00
Benau
ed376d329c Try to fix a rare crash 2019-10-11 22:44:08 +08:00
Benau
5cc5780f28 Add download assets screen for mobile stk 2019-07-24 01:33:12 +08:00
Benau
8510ebfb27 Add iOSDevice and EAGLManager 2019-07-13 13:44:03 +08:00
Benau
12a9237016 Make all rename utf8 path aware 2019-06-28 21:06:27 +08:00
Benau
31caa7e056 Make all fopen utf8 path aware 2019-06-28 21:05:50 +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
Deve
88c2ce7ee5 Use system LD_LIBRARY_PATH when opening web browser 2019-02-25 22:07:38 +01:00
Benau
1855d4262b Revert "Use xmlEncode for proper unicode handling"
This reverts commit c5cf87071c.

We can remove utf8_encode in stk_addons api so it will handle
utf8 characters in db correctly, as utf8_encode is only needed for
a string encoded in ISO-8859-1.

Fix #3670
2019-02-12 11:26:20 +08:00
Daniel Butum
edd1280dbc Update config to use the new online servers & remove hardcoded certificate (#3703)
* Update config to use the new online servers. Remove hardcoded certificate as we will use Let's encrypt from now on

* Fix new server SSL curl certificate by shipping CA bundle from https://curl.haxx.se/docs/caextract.html

* Remove debug log for curl host

* Move server config to stk_config.xml and Update news.xml redirects
2019-01-19 17:49:11 -05:00
auria.mg
e4168e7a28 Revert "Update config to use the new online servers. Remove hardcoded certificate as we will use Let's encrypt from now on (#3690)"
This reverts commit b2c11c120b.
2019-01-07 20:01:00 -05:00
Daniel Butum
b2c11c120b Update config to use the new online servers. Remove hardcoded certificate as we will use Let's encrypt from now on (#3690) 2019-01-07 19:42:30 -05:00
auria.mg
562fe8a4c8 Fix STK hanging on shutdown when networking disabled 2018-11-23 19:07:58 -05:00
auria.mg
3ff0724cb4 Fix cases where stk connects to the internet while the user forbid it, see #3319 2018-11-22 20:32:38 -05:00
Benau
5b38f73b27 Allow displaying new friend requests without restart 2018-10-30 13:19:42 +08:00
Benau
5ec4865008 Fix possible crash 2018-10-30 13:14:39 +08:00
Benau
05e1d629ee Fix exit STK requests leak 2018-09-30 12:42:17 +08:00
Alayan
137a7e671f Move online screns to their own folders to reduce clutter 2018-09-16 23:55:40 +02:00
Alayan
4d68d324a2 Move options screns to their own folder to reduce clutter 2018-09-16 23:35:40 +02:00
Benau
4cf9542be1 Add user version in string to connection request 2018-09-15 15:57:27 +08:00
Benau
c8d56cc2b9 Use absolute path of cert location 2018-09-13 16:29:50 +08:00
Benau
8bb2eeb629 Always disable online user polling for wan server
With d6955f03fcbc21cb4cd9332d0d528063ad9a0f60 in stk-addons it is no
longer necessary
2018-09-11 14:31:43 +08:00
Benau
612e8bdaf6 Keep http header of curl_slist* until the exit of stk to prevent memory leak 2018-09-11 14:24:59 +08:00
Benau
0b19ee77fa Use xmlDecode for server name 2018-09-05 01:52:51 +08:00
Benau
c8a42fd355 Show friends currently joined servers when polling user profile 2018-09-04 14:36:48 +08:00
Benau
d4f7d6baaa Don't show the polling log if currently server 2018-07-20 15:46:07 +08:00