mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
game_list: Avoid uninitialized variables when retrieving program ID
Avoids potentially leaving this variable uninitialized based off the loader failing to retrieve the ID value.
This commit is contained in:
parent
51ddb130c5
commit
ffd60ee476
1 changed files with 2 additions and 2 deletions
|
@ -438,7 +438,7 @@ void GameListWorker::AddInstalledTitlesToGameList() {
|
||||||
|
|
||||||
std::vector<u8> icon;
|
std::vector<u8> icon;
|
||||||
std::string name;
|
std::string name;
|
||||||
u64 program_id;
|
u64 program_id = 0;
|
||||||
loader->ReadProgramId(program_id);
|
loader->ReadProgramId(program_id);
|
||||||
|
|
||||||
const auto& control =
|
const auto& control =
|
||||||
|
@ -509,7 +509,7 @@ void GameListWorker::AddFstEntriesToGameList(const std::string& dir_path, unsign
|
||||||
std::vector<u8> icon;
|
std::vector<u8> icon;
|
||||||
const auto res1 = loader->ReadIcon(icon);
|
const auto res1 = loader->ReadIcon(icon);
|
||||||
|
|
||||||
u64 program_id;
|
u64 program_id = 0;
|
||||||
const auto res2 = loader->ReadProgramId(program_id);
|
const auto res2 = loader->ReadProgramId(program_id);
|
||||||
|
|
||||||
std::string name = " ";
|
std::string name = " ";
|
||||||
|
|
Loading…
Reference in a new issue