Skip to content

Commit

Permalink
Use .bak for backups
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoester committed Oct 20, 2024
1 parent 7df0e33 commit 13fad0c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion bfme-resfix/src/main/java/controller/Controller.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import helper.GitHub;
import model.*;
import model.updateCheck.Release;
import org.jetbrains.annotations.NotNull;
import view.MainView;

import javax.swing.*;
Expand Down
6 changes: 3 additions & 3 deletions bfme-resfix/src/main/java/listener/ChangeListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ private void pollSingleGame(Game game, Map<String, Boolean> runningStatus) {

Maps maps = new Maps();
maps.setFilePath(Paths.get(currentInstallPath + "/Maps.big"));
maps.setBackupPath(Paths.get(currentInstallPath + "/Maps_Backup.big"));
maps.setBackupPath(Paths.get(currentInstallPath + "/Maps.big.bak"));
maps.setHash(retrieveHash(maps.getFilePath()));
maps.setAspectRatio(retrieveMapsAspectRatio(maps.getHash()));
maps.setBackup(Files.exists(maps.getBackupPath()));
Expand All @@ -129,7 +129,7 @@ private void pollSingleGame(Game game, Map<String, Boolean> runningStatus) {

DVD dvd = new DVD();
dvd.setFilePath(Paths.get(currentInstallPath + "/game.dat"));
dvd.setBackupPath(Paths.get(currentInstallPath + "/game_Backup.dat"));
dvd.setBackupPath(Paths.get(currentInstallPath + "/game.dat.bak"));
dvd.setHash(retrieveHash(dvd.getFilePath()));
dvd.setOriginal(retrieveGameDatVersion(dvd.getHash()));
game.setDvd(dvd);
Expand Down Expand Up @@ -297,7 +297,7 @@ private void handleFileChange(Path filePath, GameID gameId) {

controller.updateMapsBox(game.getId());

} else if (filePath.toString().endsWith("Maps_Backup.big")) {
} else if (filePath.toString().endsWith("Maps.big.bak")) {
System.out.println("NEW " + gameId + ": Modified: " + filePath);
Maps maps = game.getMaps();
maps.setBackup(Files.exists(filePath));
Expand Down
2 changes: 1 addition & 1 deletion bfme-resfix/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
appName = BFME-ResFix
version = 0.8.4
version = 0.9
repo = jcoester/bfme-resfix
storage = jcoester/bfme-resfix-storage
bucket = bfme-resfix.appspot.com
4 changes: 2 additions & 2 deletions launch4j/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
<timeoutErr>true</timeoutErr>
</splash>
<versionInfo>
<fileVersion>0.8.4.0</fileVersion>
<fileVersion>0.9.0.0</fileVersion>
<txtFileVersion>beta</txtFileVersion>
<fileDescription>BFME ResFix</fileDescription>
<copyright>2024 jcoester</copyright>
<productVersion>0.8.4.0</productVersion>
<productVersion>0.9.0.0</productVersion>
<txtProductVersion>beta</txtProductVersion>
<productName>BFME ResFix</productName>
<companyName>https://github.com/jcoester/bfme-resfix/releases</companyName>
Expand Down

0 comments on commit 13fad0c

Please sign in to comment.