mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-07 23:41:18 +12:00
Use utf8 aware string conversion for wxLaunchDefaultBrowser()
This commit is contained in:
parent
0030fa44a5
commit
92639cd517
5 changed files with 11 additions and 9 deletions
|
@ -4,6 +4,7 @@
|
|||
#include "gui/helpers/wxCustomEvents.h"
|
||||
#include "util/helpers/helpers.h"
|
||||
#include "gui/helpers/wxHelpers.h"
|
||||
#include "gui/wxHelper.h"
|
||||
#include "Cafe/Filesystem/WUD/wud.h"
|
||||
|
||||
#include <zip.h>
|
||||
|
@ -518,7 +519,7 @@ void ChecksumTool::VerifyJsonEntry(const rapidjson::Document& doc)
|
|||
file.flush();
|
||||
file.close();
|
||||
|
||||
wxLaunchDefaultBrowser(fmt::format("file:{}", path));
|
||||
wxLaunchDefaultBrowser(wxHelper::FromUtf8(fmt::format("file:{}", path)));
|
||||
}
|
||||
else
|
||||
wxMessageBox(_("Can't open file to write!"), _("Error"), wxOK | wxCENTRE | wxICON_ERROR, this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue