mirror of https://github.com/PCSX2/pcsx2.git
Folder memcards: Suppress "file does not exist" errors for memcard index
This commit is contained in:
parent
affa24e596
commit
c27ae16b42
|
@ -33,7 +33,14 @@ static YAML::Node LoadYAMLFromFile( const wxString& fileName ) {
|
|||
YAML::Node index;
|
||||
|
||||
wxFFile indexFile;
|
||||
if ( indexFile.Open( fileName, L"r" ) ) {
|
||||
bool result;
|
||||
{
|
||||
// Suppress "file does not exist" errors
|
||||
wxLogNull noLog;
|
||||
result = indexFile.Open( fileName, L"r" );
|
||||
}
|
||||
|
||||
if ( result ) {
|
||||
wxString fileContents;
|
||||
if ( indexFile.ReadAll( &fileContents ) ) {
|
||||
index = YAML::Load( fileContents.mbc_str() );
|
||||
|
|
Loading…
Reference in New Issue