We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I suggest using the cache module of runelite itself.
Something along the lines of:
public void dumpCache() throws IOException { Store store = new Store(DEFAULT_CACHE_DIR); store.load(); Storage storage = store.getStorage(); store.getIndexes().forEach(index -> { log.debug("Dumping index " + (index.getId() + 1) + "/20"); index.getArchives().forEach(archive -> { try { byte[] archiveData = storage.loadArchive(archive); if (index.getId() == 5) CacheFiles.write(index.getId(), archive.getArchiveId(), archiveData); else { archive.getFiles(archiveData).getFiles().forEach(fsFile -> CacheFiles.write(index.getId(), archive.getArchiveId(), fsFile.getContents())); } } catch (IOException e) { e.printStackTrace(); } }); }); }
And maybe detect an incomplete cache or wait until LOGIN_SCREEN as you have a full cache by that time.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I suggest using the cache module of runelite itself.
Something along the lines of:
And maybe detect an incomplete cache or wait until LOGIN_SCREEN as you have a full cache by that time.
The text was updated successfully, but these errors were encountered: