mirror of
https://github.com/love2d/love.git
synced 2026-08-15 07:41:11 +02:00
Fixes to make Löve compile on Windows 10 UWP
This commit is contained in:
@@ -147,12 +147,18 @@ bool System::openURL(const std::string &url) const
|
||||
// Unicode-aware WinAPI functions don't accept UTF-8, so we need to convert.
|
||||
std::wstring wurl = to_widestr(url);
|
||||
|
||||
HINSTANCE result = ShellExecuteW(nullptr,
|
||||
L"open",
|
||||
wurl.c_str(),
|
||||
nullptr,
|
||||
nullptr,
|
||||
SW_SHOW);
|
||||
HINSTANCE result = 0;
|
||||
|
||||
#if !defined(LOVE_WINDOWS_UWP)
|
||||
|
||||
result = ShellExecuteW(nullptr,
|
||||
L"open",
|
||||
wurl.c_str(),
|
||||
nullptr,
|
||||
nullptr,
|
||||
SW_SHOW);
|
||||
|
||||
#endif // LOVE_WINDOWS_UWP
|
||||
|
||||
return (int) result > 32;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user