mirror of https://github.com/PCSX2/pcsx2.git
Fix some gcc warnings.
This commit is contained in:
parent
eab49dbfa3
commit
a886f6e7e1
|
@ -119,6 +119,9 @@ void Dialogs::ConvertMemoryCardDialog::OnOk_Click( wxCommandEvent& evt ) {
|
|||
case MemoryCardType::MemoryCard_Folder:
|
||||
success = ConvertToFolder( sourcePath, targetPath );
|
||||
break;
|
||||
default:
|
||||
Msgbox::Alert( _( "This target type is not supported!" ), _( "Convert memory card" ) );
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1172,9 +1172,9 @@ bool FileAccessHelper::CleanMemcardFilename( char* name ) {
|
|||
const char illegalChars[] = { '\\', '%', ':', '|', '"', '<', '>' };
|
||||
bool cleaned = false;
|
||||
|
||||
for ( int i = 0; i < sizeof( illegalChars ); ++i ) {
|
||||
for ( size_t i = 0; i < sizeof( illegalChars ); ++i ) {
|
||||
// this sizeof looks really odd but I couldn't get MemoryCardFileEntry::entry.data.name (or variants) working, feel free to replace with something equivalent but nicer looking
|
||||
for ( int j = 0; j < sizeof( ( (MemoryCardFileEntry*)0 )->entry.data.name ); ++j ) {
|
||||
for ( size_t j = 0; j < sizeof( ( (MemoryCardFileEntry*)0 )->entry.data.name ); ++j ) {
|
||||
if ( name[j] == illegalChars[i] ) {
|
||||
name[j] = '_';
|
||||
cleaned = true;
|
||||
|
|
Loading…
Reference in New Issue