Search in sources :

Example 1 with FabricViaConfig

use of com.viaversion.fabric.common.platform.FabricViaConfig in project ViaFabric by ViaVersion.

the class AbstractFabricPlatform method init.

public void init() {
    // We'll use it early for ViaInjector
    installNativeVersionProvider();
    Path configDir = FabricLoader.getInstance().getConfigDir().resolve("ViaFabric");
    dataFolder = configDir.toFile();
    config = new FabricViaConfig(configDir.resolve("viaversion.yml").toFile());
}
Also used : Path(java.nio.file.Path) FabricViaConfig(com.viaversion.fabric.common.platform.FabricViaConfig)

Aggregations

FabricViaConfig (com.viaversion.fabric.common.platform.FabricViaConfig)1 Path (java.nio.file.Path)1