mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
UI: Fix game installer extension check.
This commit is contained in:
parent
2adc3c668a
commit
1f3d31f687
2 changed files with 1 additions and 2 deletions
|
@ -378,7 +378,6 @@ bool Load_PSP_ELF_PBP(FileLoader *fileLoader, std::string *error_string) {
|
|||
|
||||
Path full_path = fileLoader->GetPath();
|
||||
std::string path = full_path.GetDirectory();
|
||||
std::string extension = full_path.GetFileExtension();
|
||||
std::string file = full_path.GetFilename();
|
||||
|
||||
size_t pos = path.find("PSP/GAME/");
|
||||
|
|
|
@ -290,7 +290,7 @@ bool GameManager::InstallGame(Path url, Path fileName, bool deleteAfter) {
|
|||
|
||||
std::string extension = url.GetFileExtension();
|
||||
// Examine the URL to guess out what we're installing.
|
||||
if (extension == "cso" || extension == "iso") {
|
||||
if (extension == ".cso" || extension == ".iso") {
|
||||
// It's a raw ISO or CSO file. We just copy it to the destination.
|
||||
std::string shortFilename = url.GetFilename();
|
||||
return InstallRawISO(fileName, shortFilename, deleteAfter);
|
||||
|
|
Loading…
Add table
Reference in a new issue