mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-03 13:31:18 +12:00
Portable way of opening URLs and directories (#156)
Replaced every instance of ShellExecute with wxLaunchDefaultBrowser
This commit is contained in:
parent
f3c70e69b4
commit
1a1de370e4
5 changed files with 15 additions and 67 deletions
|
@ -37,10 +37,6 @@
|
|||
#include "Cafe/GraphicPack/GraphicPack.h"
|
||||
#include "Cafe/TitleList/GameInfo.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <shellapi.h>
|
||||
#endif
|
||||
|
||||
#include <boost/algorithm/string.hpp>
|
||||
#include "util/helpers/SystemException.h"
|
||||
#include "gui/DownloadGraphicPacksWindow.h"
|
||||
|
@ -1951,11 +1947,7 @@ public:
|
|||
"/*****************************************************************************/\r\n"
|
||||
);
|
||||
delete fs;
|
||||
#ifdef _WIN32
|
||||
ShellExecute(0, 0, tempPath.generic_wstring().c_str(), 0, 0, SW_SHOW);
|
||||
#else
|
||||
assert_dbg();
|
||||
#endif
|
||||
wxLaunchDefaultBrowser(fmt::format("file:{}", _utf8Wrapper(tempPath)));
|
||||
});
|
||||
lineSizer->Add(noticeLink, 0);
|
||||
lineSizer->Add(new wxStaticText(parent, -1, ")"), 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue