Adapt to new LocalBackup format => tmd version are now stored as tmd.VERSION

This commit is contained in:
Maschell 2020-12-20 15:29:24 +01:00
parent 90e83feade
commit 52a92d605c

View File

@ -73,7 +73,7 @@ public class NUSDataProviderLocalBackup implements NUSDataProvider {
String inputPath = getLocalPath();
String tmdPath = inputPath + File.separator + Settings.TMD_FILENAME;
if (titleVersion != Settings.LATEST_TMD_VERSION) {
tmdPath = inputPath + File.separator + "v" + titleVersion + File.separator + Settings.TMD_FILENAME;
tmdPath = inputPath + File.separator + "tmd." + titleVersion;
}
File tmdFile = new File(tmdPath);
return Optional.of(Files.readAllBytes(tmdFile.toPath()));