ams: prepare for 0.10.3
This commit is contained in:
@@ -179,23 +179,6 @@ namespace ams::mitm {
|
||||
}
|
||||
}
|
||||
|
||||
void RenameTitlesDirectoryProgramFoldersForCompatibility() {
|
||||
FsDir titles_dir;
|
||||
if (R_FAILED(mitm::fs::OpenAtmosphereSdDirectory(&titles_dir, "/titles", ams::fs::OpenDirectoryMode_Directory))) {
|
||||
return;
|
||||
}
|
||||
ON_SCOPE_EXIT { fsDirClose(&titles_dir); };
|
||||
|
||||
ams::fs::DirectoryEntry dir_entry;
|
||||
s64 read_entries;
|
||||
while (R_SUCCEEDED(fsDirRead(&titles_dir, &read_entries, 1, &dir_entry)) && read_entries == 1) {
|
||||
if (strlen(dir_entry.name) == 2 * sizeof(ncm::ProgramId) && IsHexadecimal(dir_entry.name)) {
|
||||
/* We found a program directory, try to rename it. Failure is allowed. */
|
||||
mitm::fs::RenameProgramDirectoryForCompatibility(dir_entry.name);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Initialization implementation */
|
||||
void InitializeThreadFunc(void *arg) {
|
||||
/* Wait for the SD card to be ready. */
|
||||
@@ -211,10 +194,6 @@ namespace ams::mitm {
|
||||
/* Backup Calibration Binary and BIS keys. */
|
||||
CreateAutomaticBackups();
|
||||
|
||||
/* Rename program folders in the titles directory. */
|
||||
/* TODO: Remove this in Atmosphere 0.10.2. */
|
||||
RenameTitlesDirectoryProgramFoldersForCompatibility();
|
||||
|
||||
/* If we're emummc, persist a write-handle to prevent other processes from touching the image. */
|
||||
if (emummc::IsActive()) {
|
||||
if (const char *emummc_file_path = emummc::GetFilePath(); emummc_file_path != nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user