A much more straightforward networking system.

This commit is contained in:
cpw authored and LexManos committed 2018-09-05 12:33:38 -07:00
1 parent 4636365e30
commit 506b51f189
18 files changed
+264 -200

No files matched your search

@@ -57,6 +57,7 @@ public class FMLLoader
private static LoadingModList loadingModList;
private static ClassLoader launchClassLoader;
private static RuntimeDistCleaner runtimeDistCleaner;
private static Path gamePath;
static void onInitialLoad(IEnvironment environment, Set<String> otherServices) throws IncompatibleEnvironmentException
{
@@ -124,6 +125,7 @@ public class FMLLoader
fmlLog.error(CORE, "Incompatible Launch handler found - type {}, cannot continue", launchHandler.get().getClass().getName());
throw new RuntimeException("Incompatible launch handler found");
}
gamePath = environment.getProperty(IEnvironment.Keys.GAMEDIR.get()).orElse(Paths.get(".").toAbsolutePath());
FMLCommonLaunchHandler commonLaunchHandler = (FMLCommonLaunchHandler)launchHandler.get();
commonLaunchHandler.setup(environment);
@@ -192,4 +194,9 @@ public class FMLLoader
{
return launchClassLoader;
}
public static Path getGamePath()
{
return gamePath;
}
}