Im thinking of releasing my BattleScape Client...
Code:
private StreamLoader streamLoaderForName(int i, String s, String s1, int j, int k)
{
byte abyte0[] = null;
int l = 5;
try
{
if(decompressors[0] != null) {
abyte0 = decompressors[0].decompress(i);
}
if(abyte0 == null)
{
drawLoadingText(0, "Connecting To Server...");
new Update("http://website.com/cache.zip", "cache.zip", signlink.findcachedir());
abyte0 = decompressors[0].decompress(i);
}
} catch (Exception e) {
e.printStackTrace();
}
if(abyte0 != null)
{
StreamLoader streamLoader = new StreamLoader(abyte0);
return streamLoader;
}
while (true) {
drawLoadingText(0, "Error loading... Please Report!");
try {
Thread.sleep(1000);
} catch (Exception e) {
e.printStackTrace();
}
}
}