@@ -148,7 +148,8 @@ static bool s_cleanup_after_update = false;
148
148
EmuThread* g_emu_thread;
149
149
150
150
EmuThread::EmuThread ()
151
- : QThread(), m_ui_thread(QThread::currentThread()), m_input_device_list_model(std::make_unique<InputDeviceListModel>())
151
+ : QThread(), m_ui_thread(QThread::currentThread()),
152
+ m_input_device_list_model(std::make_unique<InputDeviceListModel>())
152
153
{
153
154
// owned by itself
154
155
moveToThread (this );
@@ -530,7 +531,13 @@ bool QtHost::SetCriticalFolders()
530
531
// the resources directory should exist, bail out if not
531
532
const std::string rcc_path = Path::Combine (EmuFolders::Resources, " duckstation-qt.rcc" );
532
533
if (!FileSystem::FileExists (rcc_path.c_str ()) || !QResource::registerResource (QString::fromStdString (rcc_path)) ||
533
- !FileSystem::DirectoryExists (EmuFolders::Resources.c_str ()))
534
+ !FileSystem::DirectoryExists (EmuFolders::Resources.c_str ())
535
+ #ifdef __linux__
536
+ // Broken packages that won't stop distributing my application.
537
+ || StringUtil::StartsWithNoCase (EmuFolders::AppRoot, " /usr/lib" )
538
+ #endif
539
+ )
540
+
534
541
{
535
542
QMessageBox::critical (nullptr , QStringLiteral (" Error" ),
536
543
QStringLiteral (" Resources are missing, your installation is incomplete." ));
@@ -2224,7 +2231,7 @@ QString QtHost::FormatNumber(Host::NumberFormatType type, s64 value)
2224
2231
}
2225
2232
break ;
2226
2233
2227
- DefaultCaseIsUnreachable ();
2234
+ DefaultCaseIsUnreachable ();
2228
2235
}
2229
2236
2230
2237
ret = QDateTime::fromSecsSinceEpoch (value, QTimeZone::utc ()).toLocalTime ().toString (format);
0 commit comments