cache: update indextype names
This commit is contained in:
@@ -27,23 +27,26 @@ package net.runelite.cache;
|
|||||||
|
|
||||||
public enum IndexType
|
public enum IndexType
|
||||||
{
|
{
|
||||||
FRAMES(0),
|
ANIMATIONS(0),
|
||||||
FRAMEMAPS(1),
|
SKELETONS(1),
|
||||||
CONFIGS(2),
|
CONFIGS(2),
|
||||||
INTERFACES(3),
|
INTERFACES(3),
|
||||||
SOUNDEFFECTS(4),
|
SOUNDEFFECTS(4),
|
||||||
MAPS(5),
|
MAPS(5),
|
||||||
TRACK1(6),
|
MUSIC_TRACKS(6),
|
||||||
MODELS(7),
|
MODELS(7),
|
||||||
SPRITES(8),
|
SPRITES(8),
|
||||||
TEXTURES(9),
|
TEXTURES(9),
|
||||||
BINARY(10),
|
BINARY(10),
|
||||||
TRACK2(11),
|
MUSIC_JINGLES(11),
|
||||||
CLIENTSCRIPT(12),
|
CLIENTSCRIPT(12),
|
||||||
FONTS(13),
|
FONTS(13),
|
||||||
VORBIS(14),
|
MUSIC_SAMPLES(14),
|
||||||
INSTRUMENTS(15),
|
MUSIC_PATCHES(15),
|
||||||
WORLDMAP(16);
|
WORLDMAP_OLD(16), // looks unused
|
||||||
|
WORLDMAP_GEOGRAPHY(18),
|
||||||
|
WORLDMAP(19),
|
||||||
|
WORLDMAP_GROUND(20);
|
||||||
|
|
||||||
private int id;
|
private int id;
|
||||||
|
|
||||||
|
|||||||
@@ -72,8 +72,8 @@ public class FrameDumper
|
|||||||
store.load();
|
store.load();
|
||||||
|
|
||||||
Storage storage = store.getStorage();
|
Storage storage = store.getStorage();
|
||||||
Index frameIndex = store.getIndex(IndexType.FRAMES);
|
Index frameIndex = store.getIndex(IndexType.ANIMATIONS);
|
||||||
Index framemapIndex = store.getIndex(IndexType.FRAMEMAPS);
|
Index framemapIndex = store.getIndex(IndexType.SKELETONS);
|
||||||
|
|
||||||
for (Archive archive : frameIndex.getArchives())
|
for (Archive archive : frameIndex.getArchives())
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ public class FramemapDumper
|
|||||||
store.load();
|
store.load();
|
||||||
|
|
||||||
Storage storage = store.getStorage();
|
Storage storage = store.getStorage();
|
||||||
Index index = store.getIndex(IndexType.FRAMEMAPS);
|
Index index = store.getIndex(IndexType.SKELETONS);
|
||||||
|
|
||||||
for (Archive archive : index.getArchives())
|
for (Archive archive : index.getArchives())
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -67,8 +67,8 @@ public class TrackDumperTest
|
|||||||
store.load();
|
store.load();
|
||||||
|
|
||||||
Storage storage = store.getStorage();
|
Storage storage = store.getStorage();
|
||||||
Index index = store.getIndex(IndexType.TRACK1);
|
Index index = store.getIndex(IndexType.MUSIC_TRACKS);
|
||||||
Index index2 = store.getIndex(IndexType.TRACK2);
|
Index index2 = store.getIndex(IndexType.MUSIC_JINGLES);
|
||||||
|
|
||||||
for (Archive archive : index.getArchives())
|
for (Archive archive : index.getArchives())
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ public class WorldMapDumperTest
|
|||||||
store.load();
|
store.load();
|
||||||
|
|
||||||
Storage storage = store.getStorage();
|
Storage storage = store.getStorage();
|
||||||
Index index = store.getIndex(IndexType.WORLDMAP);
|
Index index = store.getIndex(IndexType.WORLDMAP_OLD);
|
||||||
Archive archive = index.getArchive(0); // there is also archive 1/2, but their data format is not this
|
Archive archive = index.getArchive(0); // there is also archive 1/2, but their data format is not this
|
||||||
|
|
||||||
byte[] archiveData = storage.loadArchive(archive);
|
byte[] archiveData = storage.loadArchive(archive);
|
||||||
|
|||||||
Reference in New Issue
Block a user