Fix compilation if wxString is wchar_t-based
This commit is contained in:
parent
f1a3b105f2
commit
82440c44bb
1 changed files with 3 additions and 3 deletions
|
@ -1012,13 +1012,13 @@ void wxwin_mainwindow::request_rom(std::string& filename, core_type& coretype)
|
|||
filter = filter + "*." + i;
|
||||
}
|
||||
filter = filter + "|All files|*.*";
|
||||
wxFileDialog* fdiag = new wxFileDialog(this, wxT("Load ROM"), towxstring(rom_path()), "", towxstring(filter),
|
||||
wxFD_OPEN);
|
||||
wxFileDialog* fdiag = new wxFileDialog(this, wxT("Load ROM"), towxstring(rom_path()), wxT(""),
|
||||
towxstring(filter), wxFD_OPEN);
|
||||
if(fdiag->ShowModal() != wxID_OK) {
|
||||
delete fdiag;
|
||||
return;
|
||||
}
|
||||
filename = fdiag->GetPath();
|
||||
filename = tostdstring(fdiag->GetPath());
|
||||
delete fdiag;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue