summaryrefslogtreecommitdiff
path: root/NET/worlds/core/RegKey.java
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-05-03 16:38:41 -0700
committerFuwn <[email protected]>2021-05-03 16:38:41 -0700
commite1e781bb2135ef78592226f1a3eaba4925702f1f (patch)
tree8a5b590463ed413e1c6eabb719130e701b95ca63 /NET/worlds/core/RegKey.java
downloadworlds.jar-main.tar.xz
worlds.jar-main.zip
:star:HEADmain
Diffstat (limited to 'NET/worlds/core/RegKey.java')
-rw-r--r--NET/worlds/core/RegKey.java117
1 files changed, 117 insertions, 0 deletions
diff --git a/NET/worlds/core/RegKey.java b/NET/worlds/core/RegKey.java
new file mode 100644
index 0000000..f5ad8b6
--- /dev/null
+++ b/NET/worlds/core/RegKey.java
@@ -0,0 +1,117 @@
+/* */ package NET.worlds.core;
+/* */
+/* */
+/* */
+/* */ public class RegKey
+/* */ {
+/* */ public static final int CLASSES_ROOT = 0;
+/* */
+/* */
+/* */ public static final int CURRENT_USER = 1;
+/* */
+/* */
+/* */ public static final int LOCAL_MACHINE = 2;
+/* */
+/* */
+/* */ public static final int USERS = 3;
+/* */
+/* */
+/* */ public static final int KEYOPEN_READ = 0;
+/* */
+/* */
+/* */ public static final int KEYOPEN_WRITE = 1;
+/* */
+/* */ public static final int KEYOPEN_CREATE = 2;
+/* */
+/* */ private int hKey;
+/* */
+/* */
+/* */ static {}
+/* */
+/* */
+/* */ public static RegKey getRootKey(int type)
+/* */ throws RegKeyNotFoundException
+/* */ {
+/* 35 */ return new RegKey(getReservedKey(type));
+/* */ }
+/* */
+/* */
+/* */
+/* */
+/* */ public RegKey(RegKey base, String subKey, int mode)
+/* */ throws RegKeyNotFoundException
+/* */ {
+/* 44 */ if (mode == 2) {
+/* 45 */ this.hKey = createKey(base.hKey, subKey);
+/* */ } else {
+/* 47 */ this.hKey = openKey(base.hKey, subKey, mode);
+/* */ }
+/* */ }
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */ public native String getStringValue(String paramString);
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */ public native boolean setStringValue(String paramString1, String paramString2, boolean paramBoolean);
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */ public native int getIntValue(String paramString);
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */ public native boolean setIntValue(String paramString, int paramInt);
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */ public native void close();
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */ private static native int getReservedKey(int paramInt)
+/* */ throws RegKeyNotFoundException;
+/* */
+/* */
+/* */
+/* */
+/* */ private static native int openKey(int paramInt1, String paramString, int paramInt2)
+/* */ throws RegKeyNotFoundException;
+/* */
+/* */
+/* */
+/* */
+/* */ private static native int createKey(int paramInt, String paramString);
+/* */
+/* */
+/* */
+/* */
+/* */ public static native void nativeInit();
+/* */
+/* */
+/* */
+/* */
+/* */ private RegKey(int hKey)
+/* */ {
+/* 109 */ this.hKey = hKey;
+/* */ }
+/* */ }
+
+
+/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\core\RegKey.class
+ * Java compiler version: 6 (50.0)
+ * JD-Core Version: 0.7.1
+ */ \ No newline at end of file