diff --git a/sigIRCv2.jar b/sigIRCv2.jar index db985ff..b3dd337 100644 Binary files a/sigIRCv2.jar and b/sigIRCv2.jar differ diff --git a/src/sig/modules/RabiRace/MemoryData.java b/src/sig/modules/RabiRace/MemoryData.java index 5aa96f7..e4dd227 100644 --- a/src/sig/modules/RabiRace/MemoryData.java +++ b/src/sig/modules/RabiRace/MemoryData.java @@ -82,6 +82,7 @@ public enum MemoryData { public MemoryOffset mem; public String name; + public String img_path; public Image img; public boolean key_item; //Set to true if it's a key item. False if it's a badge. @@ -89,6 +90,7 @@ public enum MemoryData { this.mem = mem; this.name = name; this.img = RabiRaceModule.image_map.get(icon_name); + this.img_path = icon_name; this.key_item = isKeyItem; } diff --git a/src/sig/modules/RabiRaceModule.java b/src/sig/modules/RabiRaceModule.java index 6df4993..d0e147b 100644 --- a/src/sig/modules/RabiRaceModule.java +++ b/src/sig/modules/RabiRaceModule.java @@ -23,6 +23,7 @@ import com.sun.jna.platform.win32.Kernel32; import com.sun.jna.platform.win32.WinNT; import com.sun.jna.platform.win32.WinNT.HANDLE; +import sig.FileManager; import sig.Module; import sig.sigIRC; import sig.modules.RabiRace.ColorCycler; @@ -65,6 +66,13 @@ public class RabiRaceModule extends Module{ }, 5000, 5000, TimeUnit.MILLISECONDS); File dir = new File(ITEMS_DIRECTORY); + + for (MemoryData data : MemoryData.values()) { + //Attempt to fetch from server. + new FileManager("sigIRC/rabi-ribi/items/"+data.img_path).verifyAndFetchFileFromServer(); + } + new FileManager("sigIRC/rabi-ribi/items/easter_egg.png").verifyAndFetchFileFromServer(); + String[] images = dir.list(); List filtered_images = new ArrayList(); for (String file : images) { diff --git a/src/sig/sigIRC.java b/src/sig/sigIRC.java index 455d31b..a0af630 100644 --- a/src/sig/sigIRC.java +++ b/src/sig/sigIRC.java @@ -280,6 +280,8 @@ public class sigIRC{ manager = new FileManager("sigIRC/logs/",true); manager.verifyAndFetchFileFromServer(); manager = new FileManager("sigIRC/sounds/",true); manager.verifyAndFetchFileFromServer(); manager = new FileManager("sigIRC/rabi-ribi/",true); manager.verifyAndFetchFileFromServer(); + manager = new FileManager("sigIRC/rabi-ribi/characters",true); manager.verifyAndFetchFileFromServer(); + manager = new FileManager("sigIRC/rabi-ribi/items",true); manager.verifyAndFetchFileFromServer(); //manager = new FileManager("sigIRC/sounds/Glaceon_cry.wav"); manager.verifyAndFetchFileFromServer(); File follower_sounds_folder = new File(BASEDIR+"sigIRC/follower_sounds"); if (!follower_sounds_folder.exists()) {