You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Cafe/Filesystem/FST/KeyCache.cpp
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
-
#include<wx/msgdlg.h>
2
1
#include<mutex>
3
-
#include<gui/helpers/wxHelpers.h>
4
2
3
+
#include"Cemu/Logging/CemuLogging.h"
4
+
#include"WindowSystem.h"
5
5
#include"config/ActiveSettings.h"
6
6
#include"util/crypto/aes128.h"
7
7
#include"Common/FileStream.h"
@@ -75,7 +75,7 @@ void KeyCache_Prepare()
75
75
}
76
76
else
77
77
{
78
-
wxMessageBox(_("Unable to create file keys.txt\nThis can happen if Cemu does not have write permission to its own directory, the disk is full or if anti-virus software is blocking Cemu."), _("Error"), wxOK | wxCENTRE | wxICON_ERROR);
78
+
WindowSystem::ShowErrorDialog(_tr("Unable to create file keys.txt\nThis can happen if Cemu does not have write permission to its own directory, the disk is full or if anti-virus software is blocking Cemu."), _tr("Error"), WindowSystem::ErrorCategory::KEYS_TXT_CREATION);
79
79
}
80
80
mtxKeyCache.unlock();
81
81
return;
@@ -108,8 +108,8 @@ void KeyCache_Prepare()
108
108
continue;
109
109
if( strishex(line) == false )
110
110
{
111
-
auto errorMsg = formatWxString(_("Error in keys.txt at line {}"), lineNumber);
0 commit comments