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