Added in fetch dependencies for RabiRace module.

dev
sigonasr2 7 years ago
parent febd414778
commit 4c596055e3
  1. BIN
      sigIRCv2.jar
  2. 2
      src/sig/modules/RabiRace/MemoryData.java
  3. 8
      src/sig/modules/RabiRaceModule.java
  4. 2
      src/sig/sigIRC.java

Binary file not shown.

@ -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;
}

@ -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<String> filtered_images = new ArrayList<String>();
for (String file : images) {

@ -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()) {

Loading…
Cancel
Save