blob: 29b60f5616ce88b361a49417657fe831b161fa19 (
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
|
/* */ package NET.worlds.scape;
/* */
/* */ import NET.worlds.core.IniFile;
/* */ import NET.worlds.network.Cache;
/* */ import NET.worlds.network.CacheFile;
/* */ import NET.worlds.network.NetUpdate;
/* */ import NET.worlds.network.URL;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class PendingCacheDrone
/* */ extends PendingDrone
/* */ {
/* 23 */ static String upgradeDir = IniFile.gamma().getIniString("avatarDir",
/* 24 */ "avatar/");
/* */
/* */
/* */
/* */
/* */ public PendingCacheDrone(PosableDrone _drone, URL _url)
/* */ {
/* 31 */ super(_drone, _url);
/* */ }
/* */
/* */ static
/* */ {
/* 25 */ if (!upgradeDir.endsWith("/")) {
/* 26 */ upgradeDir += "/";
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* 43 */ nativeInit();
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public static void downloadSeqFile(String seqFileName, boolean force, int nativeNotifyObject)
/* */ {
/* 55 */ seqFileName = seqFileName.toLowerCase();
/* */
/* 57 */ if (!PosableDroneLoader.usingCache())
/* */ {
/* 59 */ notifySeqLoaded(nativeNotifyObject, ".\\avatars\\" + seqFileName);
/* 60 */ return;
/* */ }
/* */
/* 63 */ String path = NetUpdate.getUpgradeServerURL() +
/* 64 */ upgradeDir + seqFileName;
/* */
/* 66 */ if (force)
/* */ {
/* 68 */ CacheFile cf = Cache.getFile(URL.make(path));
/* 69 */ cf.waitUntilLoaded();
/* 70 */ if (cf.error())
/* */ {
/* */
/* */
/* 74 */ return;
/* */ }
/* */
/* 77 */ notifySeqLoaded(nativeNotifyObject, cf.getLocalName());
/* */ }
/* */ else
/* */ {
/* 81 */ new SeqFile(nativeNotifyObject, URL.make(path));
/* */ }
/* */ }
/* */
/* */ public static String getAvatarDatPath()
/* */ {
/* 87 */ if (!PosableDroneLoader.usingCache()) {
/* 88 */ return ".\\avatars\\avatars.dat";
/* */ }
/* 90 */ if (IniFile.gamma().getIniInt("localavatarsdat", 0) == 1) {
/* 91 */ return ".\\avatars\\avatars.dat";
/* */ }
/* */
/* 94 */ String datURL = NetUpdate.getUpgradeServerURL() +
/* 95 */ upgradeDir + "avatars.dat";
/* 96 */ CacheFile cf = Cache.getFile(URL.make(datURL));
/* 97 */ cf.waitUntilLoaded();
/* 98 */ if (cf.error())
/* */ {
/* */
/* */
/* 102 */ return null;
/* */ }
/* */
/* 105 */ return cf.getLocalName();
/* */ }
/* */
/* */ public synchronized void download(URL avURL) {}
/* */
/* */ public static native void nativeInit();
/* */
/* */ public static native void nativeDestroy();
/* */
/* */ public static synchronized native void notifySeqLoaded(int paramInt, String paramString);
/* */ }
/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\PendingCacheDrone.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|