haiku: Always assume that the URL is encoded (required on nightly) (#15305)

(cherry picked from commit f3a3b4b95a)
This commit is contained in:
nilFinx
2026-04-03 16:01:21 +09:00
committed by Sam Lantinga
parent f3e1c93ea2
commit 48060320f6
2 changed files with 8 additions and 0 deletions

View File

@@ -25,7 +25,11 @@
bool SDL_SYS_OpenURL(const char *url)
{
#if B_BEOS_VERSION <= B_HAIKU_VERSION_1_BETA_5
BUrl burl(url);
#else
BUrl burl(url, true);
#endif
const status_t rc = burl.OpenWithPreferredApplication(false);
if (rc != B_NO_ERROR) {
return SDL_SetError("URL open failed (err=%d)", (int)rc);

View File

@@ -313,7 +313,11 @@ void HAIKU_VideoQuit(SDL_VideoDevice *_this)
extern "C"
bool HAIKU_OpenURL(const char *url)
{
#if B_HAIKU_VERSION <= B_HAIKU_VERSION_1_BETA_5
BUrl burl(url);
#else
BUrl burl(url, true);
#endif
const status_t rc = burl.OpenWithPreferredApplication(false);
if (rc != B_NO_ERROR) {
return SDL_SetError("URL open failed (err=%d)", (int)rc);