Thread: Cache in the Client folder

Results 1 to 5 of 5
  1. #1 Cache in the Client folder 
    Donate to Rune-Server
    Donate's Avatar
    Join Date
    May 2010
    Posts
    419
    Thanks given
    69
    Thanks received
    19
    Rep Power
    19
    Please, help me to make my client to work when the cache is in the same folder than where all the classes are.

    Code:
        public void method565(int i, String string, int i_7_, int i_8_) {
    	i = 32;
    File file = new File("");
                try {
                    if (aClass2_1041 == null) {
                        try {
                                aClass2_1041 = (new Class2 (new File(file, random.dat), "rw", 25L));
                        } catch (Exception exception) {
                            aClass2_1041 = null;
                        }
                    }
                    if (aFile1052 == null) {
                        try {
                            aClass2_1045 = (new Class2 (new File(file, "main_file_cache.dat2"), "rw", 104857600L));
                            aClass2Array1039 = new Class2[i_8_];
                            for (int id = 0; id < i_8_; id++) {
                                aClass2Array1039[id] = (new Class2 (new File(file, ("main_file_cache.idx" + id)), "rw", 1048576L));
                            }
                            aClass2_1057 = (new Class2 (new File(file, "main_file_cache.idx255"), "rw", 1048576L));
                            aFile1043 = aFile1052 = file;
                        } catch (Exception exception) {
                            System.out.println("Unable to find cache files.");
                            try {
                                aClass2_1045.method175(i_7_ ^ ~0x1fec);
                                for (int id = 0; id < i_8_; id++)
                                    aClass2Array1039[id].method175(-8143);
                                aClass2_1057.method175(-8143);
                           } catch (Exception exception_18_) {
                            }
                            aFile1043 = aFile1052 = null;
                            aClass2Array1039 = null;
                            aClass2_1045 = aClass2_1057 = null;
                        }
                    }
                } catch (Exception exception) {
                }
    	if (aFile1052 == null)
    	    throw new RuntimeException();
        }
    P.S. I'm not good at clients, but I can understand anything fine.
    Thanks,

    Donate.

    I mean.

    Donate,

    thanks.
    Reply With Quote  
     

  2. #2  
    Registered Member
    bracket's Avatar
    Join Date
    Aug 2009
    Posts
    5,278
    Thanks given
    1,059
    Thanks received
    1,465
    Rep Power
    5000
    I think this string is wrong..

    Code:
    File file = new File("");
    This could be your directory
    Reply With Quote  
     

  3. #3  
    Austin_
    Guest
    Change where it loads from. (HINT)
    Reply With Quote  
     

  4. #4  
    Renown Programmer

    Join Date
    Dec 2010
    Posts
    2,876
    Thanks given
    508
    Thanks received
    1,898
    Rep Power
    5000
    File file = new File("");
    is the parent file i.e directory as we can tell from
    (new Class2 (new File(file, "main_file_cache.dat2"), "rw", 104857600L));
    change it to "./cache/" or w.e you want it as
    never talk to me or my wife's son ever again
    Reply With Quote  
     

  5. #5  
    Donate to Rune-Server
    Donate's Avatar
    Join Date
    May 2010
    Posts
    419
    Thanks given
    69
    Thanks received
    19
    Rep Power
    19
    Quote Originally Posted by Machiavelli View Post
    is the parent file i.e directory as we can tell from

    change it to "./cache/" or w.e you want it as
    No it doesn't work like this. I don't want there to be direcory of the cache..
    Thanks,

    Donate.

    I mean.

    Donate,

    thanks.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Cache Folder
    By Mocro in forum Help
    Replies: 2
    Last Post: 12-05-2009, 10:48 PM
  2. Replies: 0
    Last Post: 09-27-2009, 08:39 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •