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:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user