mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 05:26:24 +02:00
Avoid trying to create a FileLoader for empty filenames
Assorted cleanup
This commit is contained in:
1 parent
e3d7ca67a0
commit
0cd3ac06d0
6 files changed
+24
-13
No files matched your search
@@ -229,6 +229,11 @@ bool GameInfo::LoadFromPath(const std::string &gamePath) {
|
||||
}
|
||||
|
||||
std::shared_ptr<FileLoader> GameInfo::GetFileLoader() {
|
||||
if (filePath_.empty()) {
|
||||
// Happens when workqueue tries to figure out priorities in PrioritizedWorkQueue::Pop(),
|
||||
// because priority() calls GetFileLoader()... gnarly.
|
||||
return fileLoader;
|
||||
}
|
||||
if (!fileLoader) {
|
||||
fileLoader.reset(ConstructFileLoader(filePath_));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user