[Kernel] Check XAM is attached using bounding path
This commit is contained in:
@@ -35,6 +35,22 @@ uint32_t UserModule::title_id() const {
|
||||
return 0;
|
||||
}
|
||||
|
||||
std::string UserModule::bounding_filename() const {
|
||||
std::string bounding_filename = "";
|
||||
|
||||
if (module_format_ != kModuleFormatXex) {
|
||||
return bounding_filename;
|
||||
}
|
||||
|
||||
xex2_opt_bound_path* bounding_path = nullptr;
|
||||
if (xex_module()->GetOptHeader(XEX_HEADER_BOUNDING_PATH, &bounding_path)) {
|
||||
bounding_filename =
|
||||
utf8::find_base_name_from_guest_path(std::string(bounding_path->path));
|
||||
}
|
||||
|
||||
return bounding_filename;
|
||||
}
|
||||
|
||||
uint32_t UserModule::disc_number() const {
|
||||
if (module_format_ != kModuleFormatXex) {
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user