|
|
@ -66,7 +66,7 @@ void GameList::ValidateEntry(const QModelIndex& item)
|
|
|
|
|
|
|
|
|
|
|
|
if (file_path.isEmpty())
|
|
|
|
if (file_path.isEmpty())
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
std::string std_file_path = file_path.toStdString();
|
|
|
|
std::string std_file_path = file_path.toLocal8Bit();
|
|
|
|
if (!FileUtil::Exists(std_file_path) || FileUtil::IsDirectory(std_file_path))
|
|
|
|
if (!FileUtil::Exists(std_file_path) || FileUtil::IsDirectory(std_file_path))
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
emit GameChosen(file_path);
|
|
|
|
emit GameChosen(file_path);
|
|
|
@ -148,7 +148,7 @@ void GameListWorker::AddFstEntriesToGameList(const std::string& dir_path, bool d
|
|
|
|
|
|
|
|
|
|
|
|
emit EntryReady({
|
|
|
|
emit EntryReady({
|
|
|
|
new GameListItem(QString::fromStdString(Loader::GetFileTypeString(filetype))),
|
|
|
|
new GameListItem(QString::fromStdString(Loader::GetFileTypeString(filetype))),
|
|
|
|
new GameListItemPath(QString::fromStdString(physical_name)),
|
|
|
|
new GameListItemPath(QString::fromLocal8Bit(physical_name.c_str())),
|
|
|
|
new GameListItemSize(FileUtil::GetSize(physical_name)),
|
|
|
|
new GameListItemSize(FileUtil::GetSize(physical_name)),
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|