CitraQt: Simplify the game list loader code
This commit is contained in:
parent
9a35d1fb4a
commit
314ce5e505
5 changed files with 18 additions and 34 deletions
|
@ -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!"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue