mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-12-23 02:42:09 +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. */
|
||||
char title_path[FS_MAX_PATH];
|
||||
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) {
|
||||
if (!cfg::HasTitleSpecificFlag(title_id, "boot2")) {
|
||||
continue;
|
||||
}
|
||||
fclose(f_flag);
|
||||
|
||||
/* Actually launch the title. */
|
||||
LaunchTitle(nullptr, ncm::TitleLocation::Make(title_id, ncm::StorageId::None), 0);
|
||||
|
|
Loading…
Reference in a new issue