Move isOverlayOutdated to IndexDatabase

Instead of creating new callback and then simply setting boolean on
RuneLite to dump it somewhere, expose this boolean from IndexDatabase
and remove injection of RuneLite.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2018-08-03 10:40:24 +02:00
parent 5e3d205d0b
commit 5a152f0514
6 changed files with 17 additions and 31 deletions

View File

@@ -29,4 +29,8 @@ package net.runelite.api;
*/
public interface IndexDataBase
{
/**
* Returns true if any cache overlay in this index is outdated due to hash mismatch
*/
boolean isOverlayOutdated();
}

View File

@@ -28,7 +28,6 @@ import java.awt.Graphics;
import java.awt.event.KeyEvent;
import java.awt.event.MouseEvent;
import java.awt.event.MouseWheelEvent;
import net.runelite.api.IndexDataBase;
import net.runelite.api.MainBufferProvider;
/**
@@ -164,12 +163,4 @@ public interface Callbacks
* @param keyEvent the key event
*/
void keyTyped(KeyEvent keyEvent);
/**
* Called whenever a cache overlay fails to load due to a hash mismatch
* @param indexDataBase
* @param archiveId
* @param fileId
*/
void overlayLoadFailed(IndexDataBase indexDataBase, int archiveId, int fileId);
}