Updated ServerFactory to allow parsing of tab-deliminated Server Datatable Files (.sdf txt files) to Interchangeable File Format for source control diff viewing instead of using binary files

An IFF is created for the corresponding SDF if: one does not exist or the SDF's modify date is > than the IFF's modify date
This commit is contained in:
Waverunner
2015-07-20 12:42:41 -04:00
parent 9763777731
commit e225aa8727
11 changed files with 454 additions and 10 deletions
+14 -2
View File
@@ -28,8 +28,10 @@
package services;
import java.io.File;
import java.io.IOException;
import resources.Galaxy;
import resources.client_info.ServerFactory;
import resources.config.ConfigFile;
import resources.control.Manager;
import resources.server_info.Config;
@@ -46,6 +48,8 @@ public class EngineManager extends Manager {
addChildService(networkManager);
addChildService(shutdownService);
initializeServerFactory();
}
@Override
@@ -56,7 +60,7 @@ public class EngineManager extends Manager {
wipeCharacterDatabase();
if (config.getInt("WIPE-ODB-FILES", 0) == 1)
wipeOdbFiles();
return super.initialize();
}
@@ -73,5 +77,13 @@ public class EngineManager extends Manager {
}
}
}
private void initializeServerFactory() {
try {
ServerFactory.getInstance().updateServerIffs();
} catch (IOException e) {
e.printStackTrace();
}
}
}