mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-11 01:08:30 +12:00
Use utf8 aware string conversion for wxLaunchDefaultBrowser() (#185)
This commit is contained in:
parent
0030fa44a5
commit
e5d7d5d173
5 changed files with 11 additions and 9 deletions
|
@ -5,6 +5,7 @@
|
|||
#include "Cafe/TitleList/GameInfo.h"
|
||||
#include "util/helpers/helpers.h"
|
||||
#include "gui/helpers/wxHelpers.h"
|
||||
#include "gui/wxHelper.h"
|
||||
#include "gui/components/wxTitleManagerList.h"
|
||||
#include "gui/components/wxDownloadManagerList.h"
|
||||
#include "gui/GameUpdateWindow.h"
|
||||
|
@ -479,7 +480,7 @@ void TitleManager::OnSaveOpenDirectory(wxCommandEvent& event)
|
|||
if (!fs::exists(target) || !fs::is_directory(target))
|
||||
return;
|
||||
|
||||
wxLaunchDefaultBrowser(fmt::format("file:{}", _utf8Wrapper(target)));
|
||||
wxLaunchDefaultBrowser(wxHelper::FromUtf8(fmt::format("file:{}", _utf8Wrapper(target))));
|
||||
}
|
||||
|
||||
void TitleManager::OnSaveDelete(wxCommandEvent& event)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue