1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-12-22 18:32:05 +00:00

pm: actually use the flag detection code in libstratosphere

This commit is contained in:
Michael Scire 2019-07-03 20:04:16 -07:00 committed by SciresM
parent 8177a27db9
commit 4db212ea7b

View file

@ -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);