mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-12-23 04:41:12 +00:00
pm: actually use the flag detection code in libstratosphere
This commit is contained in:
parent
8177a27db9
commit
4db212ea7b
1 changed files with 1 additions and 5 deletions
|
@ -221,13 +221,9 @@ namespace sts::boot2 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check if the title is flagged. */
|
/* Check if the title is flagged. */
|
||||||
char title_path[FS_MAX_PATH];
|
if (!cfg::HasTitleSpecificFlag(title_id, "boot2")) {
|
||||||
std::snprintf(title_path, sizeof(title_path), "sdmc:/atmosphere/titles/%s/flags/boot2.flag", ent->d_name);
|
|
||||||
FILE *f_flag = fopen(title_path, "rb");
|
|
||||||
if (f_flag == nullptr) {
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
fclose(f_flag);
|
|
||||||
|
|
||||||
/* Actually launch the title. */
|
/* Actually launch the title. */
|
||||||
LaunchTitle(nullptr, ncm::TitleLocation::Make(title_id, ncm::StorageId::None), 0);
|
LaunchTitle(nullptr, ncm::TitleLocation::Make(title_id, ncm::StorageId::None), 0);
|
||||||
|
|
Loading…
Reference in a new issue