mirror of
https://github.com/Maschell/JNUSLib.git
synced 2025-02-19 17:52:43 +01:00
Adapt to new LocalBackup format => tmd version are now stored as tmd.VERSION
This commit is contained in:
parent
07430cc2c7
commit
728e1f01bd
@ -73,7 +73,7 @@ public class NUSDataProviderLocalBackup implements NUSDataProvider {
|
|||||||
String inputPath = getLocalPath();
|
String inputPath = getLocalPath();
|
||||||
String tmdPath = inputPath + File.separator + Settings.TMD_FILENAME;
|
String tmdPath = inputPath + File.separator + Settings.TMD_FILENAME;
|
||||||
if (titleVersion != Settings.LATEST_TMD_VERSION) {
|
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);
|
File tmdFile = new File(tmdPath);
|
||||||
return Optional.of(Files.readAllBytes(tmdFile.toPath()));
|
return Optional.of(Files.readAllBytes(tmdFile.toPath()));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user