android: jni: game_info: Fix crash on banner load for missing title.
This commit is contained in:
parent
8703051be0
commit
74e9708afb
@ -14,10 +14,13 @@
|
||||
#include "jni/game_info.h"
|
||||
|
||||
namespace GameInfo {
|
||||
|
||||
std::vector<u8> GetSMDHData(std::string physical_name) {
|
||||
std::unique_ptr<Loader::AppLoader> loader = Loader::GetLoader(physical_name);
|
||||
if (!loader)
|
||||
if (!loader) {
|
||||
LOG_ERROR(Frontend, "Failed to obtain loader");
|
||||
return {};
|
||||
}
|
||||
|
||||
u64 program_id = 0;
|
||||
loader->ReadProgramId(program_id);
|
||||
@ -110,4 +113,4 @@ std::vector<u16> GetIcon(std::string physical_name) {
|
||||
return icon_data;
|
||||
}
|
||||
|
||||
} // namespace GameInfo
|
||||
} // namespace GameInfo
|
||||
|
Loading…
x
Reference in New Issue
Block a user