CitraQt: Simplify the game list loader code

This commit is contained in:
Emmanuel Gil Peyrot 2016-05-18 22:06:50 +01:00
parent 9a35d1fb4a
commit 314ce5e505
5 changed files with 18 additions and 34 deletions

View file

@ -272,7 +272,7 @@ bool GMainWindow::InitializeSystem() {
}
bool GMainWindow::LoadROM(const std::string& filename) {
std::unique_ptr<Loader::AppLoader> app_loader = Loader::GetFileLoader(filename);
std::unique_ptr<Loader::AppLoader> app_loader = Loader::GetLoader(filename);
if (!app_loader) {
LOG_CRITICAL(Frontend, "Failed to obtain loader for %s!", filename.c_str());
QMessageBox::critical(this, tr("Error while loading ROM!"),