diff options
| author | Fuwn <[email protected]> | 2021-05-03 16:38:41 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-05-03 16:38:41 -0700 |
| commit | e1e781bb2135ef78592226f1a3eaba4925702f1f (patch) | |
| tree | 8a5b590463ed413e1c6eabb719130e701b95ca63 /NET/worlds/core/IniFile.java | |
| download | worlds.jar-main.tar.xz worlds.jar-main.zip | |
Diffstat (limited to 'NET/worlds/core/IniFile.java')
| -rw-r--r-- | NET/worlds/core/IniFile.java | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/NET/worlds/core/IniFile.java b/NET/worlds/core/IniFile.java new file mode 100644 index 0000000..44a3e74 --- /dev/null +++ b/NET/worlds/core/IniFile.java @@ -0,0 +1,83 @@ +/* */ package NET.worlds.core; +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ public class IniFile +/* */ { +/* */ String file; +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ String section; +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ public IniFile(String section) +/* */ { +/* 27 */ this.file = null; +/* 28 */ this.section = section; +/* */ } +/* */ +/* */ public IniFile(String inifileName, String section) +/* */ { +/* 33 */ this.file = inifileName; +/* 34 */ this.section = section; +/* */ } +/* */ +/* 37 */ static boolean initialized = false; +/* */ +/* 39 */ private static IniFile gamma_ = null; +/* 40 */ private static IniFile override_ = null; +/* */ +/* */ public static IniFile gamma() +/* */ { +/* 44 */ if (gamma_ == null) { +/* 45 */ gamma_ = new IniFile("Gamma"); +/* */ } +/* 47 */ if (!initialized) { +/* 48 */ nativeInit(); +/* 49 */ initialized = true; +/* */ } +/* 51 */ return gamma_; +/* */ } +/* */ +/* */ public static IniFile override() +/* */ { +/* 56 */ if (!initialized) { +/* 57 */ nativeInit(); +/* 58 */ initialized = true; +/* */ } +/* */ +/* 61 */ if (override_ == null) { +/* 62 */ override_ = new IniFile(".\\override.ini", "Runtime"); +/* */ } +/* */ +/* 65 */ return override_; +/* */ } +/* */ +/* */ public native int getIniInt(String paramString, int paramInt); +/* */ +/* */ public native void setIniInt(String paramString, int paramInt); +/* */ +/* */ public native String getIniString(String paramString1, String paramString2); +/* */ +/* */ public native void setIniString(String paramString1, String paramString2); +/* */ +/* */ public static native void nativeInit(); +/* */ } + + +/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\core\IniFile.class + * Java compiler version: 6 (50.0) + * JD-Core Version: 0.7.1 + */
\ No newline at end of file |