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. */ /* 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);