mirror of
https://github.com/Auties00/Reboot-Launcher.git
synced 2026-01-13 11:12:23 +01:00
Fixed small bug
This commit is contained in:
@@ -23,16 +23,31 @@ extension FortniteVersionExtension on FortniteVersion {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
final lastModified = await result.lastModified();
|
final lastModified = await _getLastModifiedTime(result);
|
||||||
if(lastModified != _marker) {
|
if(lastModified != _marker) {
|
||||||
print("Applying patch");
|
|
||||||
await Isolate.run(() => patchHeadless(result));
|
await Isolate.run(() => patchHeadless(result));
|
||||||
await result.setLastModified(_marker);
|
await _setLastModifiedTime(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Future<void> _setLastModifiedTime(File result) async {
|
||||||
|
try {
|
||||||
|
await result.setLastModified(_marker);
|
||||||
|
}catch(_) {
|
||||||
|
// Ignored
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Future<DateTime?> _getLastModifiedTime(File result) async {
|
||||||
|
try {
|
||||||
|
return await result.lastModified();
|
||||||
|
}catch(_) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
File? get launcherExecutable => findExecutable(location, "FortniteLauncher.exe");
|
File? get launcherExecutable => findExecutable(location, "FortniteLauncher.exe");
|
||||||
|
|
||||||
File? get eacExecutable => findExecutable(location, "FortniteClient-Win64-Shipping_EAC.exe");
|
File? get eacExecutable => findExecutable(location, "FortniteClient-Win64-Shipping_EAC.exe");
|
||||||
|
|||||||
Reference in New Issue
Block a user