mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-01 16:12:53 -04:00
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:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user