summaryrefslogtreecommitdiff
path: root/NET/worlds/core/IniFile.java
blob: 44a3e74d562ab21d5d5d8dbc6f773d6be8b23bcf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
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
 */