blob: aff6a02f3e159bce3ca408c30c12f7b563ef80eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package kr.syeyoung.dungeonsguide.config;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import net.minecraftforge.common.config.Configuration;
import net.minecraftforge.common.config.Property;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStreamReader;
public class Config {
public static JsonObject configuration;
public static void loadConfig(File f) throws FileNotFoundException {
configuration = (JsonObject) new JsonParser().parse(new InputStreamReader(new FileInputStream(f)));
}
}
|