Forced config file to save when toggling modules on and off.

master
sigonasr2 5 years ago
parent fbf8e5d087
commit c12d3b0aa5
  1. BIN
      sigIRCv2.jar
  2. 2
      src/sig/modules/BandoriModule.java
  3. 2
      src/sig/modules/ChatLogModule.java
  4. 2
      src/sig/modules/ControllerModule.java
  5. 2
      src/sig/modules/DDRStepModule.java
  6. 2
      src/sig/modules/RabiRaceModule.java
  7. 2
      src/sig/modules/RabiRibiModule.java
  8. 2
      src/sig/modules/TouhouMotherModule.java
  9. 2
      src/sig/modules/TwitchModule.java

Binary file not shown.

@ -238,6 +238,7 @@ public class BandoriModule extends Module{
"Bandori" "Bandori"
)); ));
sigIRC.bandorimodule_enabled=true; sigIRC.bandorimodule_enabled=true;
sigIRC.config.saveProperties();
} }
public static void unloadModule() { public static void unloadModule() {
for (int i=0;i<sigIRC.modules.size();i++) { for (int i=0;i<sigIRC.modules.size();i++) {
@ -246,6 +247,7 @@ public class BandoriModule extends Module{
} }
} }
sigIRC.bandorimodule_enabled=false; sigIRC.bandorimodule_enabled=false;
sigIRC.config.saveProperties();
} }
public BufferedImage crop(BufferedImage img, int x, int y, int targetWidth, int targetHeight) throws IOException { public BufferedImage crop(BufferedImage img, int x, int y, int targetWidth, int targetHeight) throws IOException {

@ -58,6 +58,7 @@ public class ChatLogModule extends Module{
"Chat Log" "Chat Log"
)); ));
sigIRC.chatlogmodule_enabled=true; sigIRC.chatlogmodule_enabled=true;
sigIRC.config.saveProperties();
} }
public static void unloadModule() { public static void unloadModule() {
for (int i=0;i<sigIRC.modules.size();i++) { for (int i=0;i<sigIRC.modules.size();i++) {
@ -66,6 +67,7 @@ public class ChatLogModule extends Module{
} }
} }
sigIRC.chatlogmodule_enabled=false; sigIRC.chatlogmodule_enabled=false;
sigIRC.config.saveProperties();
} }
public void run() { public void run() {

@ -116,6 +116,7 @@ public class ControllerModule extends Module{
"Controller" "Controller"
)); ));
sigIRC.controllermodule_enabled=true; sigIRC.controllermodule_enabled=true;
sigIRC.config.saveProperties();
} }
public static void unloadModule() { public static void unloadModule() {
for (int i=0;i<sigIRC.modules.size();i++) { for (int i=0;i<sigIRC.modules.size();i++) {
@ -124,6 +125,7 @@ public class ControllerModule extends Module{
} }
} }
sigIRC.controllermodule_enabled=false; sigIRC.controllermodule_enabled=false;
sigIRC.config.saveProperties();
} }
public List<Controller> getControllers() { public List<Controller> getControllers() {

@ -89,6 +89,7 @@ public class DDRStepModule extends Module{
"DDR Step" "DDR Step"
)); ));
sigIRC.ddrstepmodule_enabled=true; sigIRC.ddrstepmodule_enabled=true;
sigIRC.config.saveProperties();
} }
public static void unloadModule() { public static void unloadModule() {
for (int i=0;i<sigIRC.modules.size();i++) { for (int i=0;i<sigIRC.modules.size();i++) {
@ -97,6 +98,7 @@ public class DDRStepModule extends Module{
} }
} }
sigIRC.ddrstepmodule_enabled=false; sigIRC.ddrstepmodule_enabled=false;
sigIRC.config.saveProperties();
} }
public void run() { public void run() {

@ -196,6 +196,7 @@ public class RabiRaceModule extends Module{
"Rabi Race" "Rabi Race"
)); ));
sigIRC.rabiracemodule_enabled=true; sigIRC.rabiracemodule_enabled=true;
sigIRC.config.saveProperties();
} }
public static void unloadModule() { public static void unloadModule() {
for (int i=0;i<sigIRC.modules.size();i++) { for (int i=0;i<sigIRC.modules.size();i++) {
@ -204,6 +205,7 @@ public class RabiRaceModule extends Module{
} }
} }
sigIRC.rabiracemodule_enabled=false; sigIRC.rabiracemodule_enabled=false;
sigIRC.config.saveProperties();
} }
private void RunRabiRaceUpdater() { private void RunRabiRaceUpdater() {

@ -136,6 +136,7 @@ public class RabiRibiModule extends Module{
"Rabi Ribi" "Rabi Ribi"
)); ));
sigIRC.rabiribimodule_enabled=true; sigIRC.rabiribimodule_enabled=true;
sigIRC.config.saveProperties();
} }
public static void unloadModule() { public static void unloadModule() {
for (int i=0;i<sigIRC.modules.size();i++) { for (int i=0;i<sigIRC.modules.size();i++) {
@ -144,6 +145,7 @@ public class RabiRibiModule extends Module{
} }
} }
sigIRC.rabiribimodule_enabled=false; sigIRC.rabiribimodule_enabled=false;
sigIRC.config.saveProperties();
} }
public void ApplyConfigWindowProperties() { public void ApplyConfigWindowProperties() {

@ -120,6 +120,7 @@ public class TouhouMotherModule extends Module implements ActionListener{
"Touhou Mother" "Touhou Mother"
)); ));
sigIRC.touhoumothermodule_enabled=true; sigIRC.touhoumothermodule_enabled=true;
sigIRC.config.saveProperties();
} }
public static void unloadModule() { public static void unloadModule() {
for (int i=0;i<sigIRC.modules.size();i++) { for (int i=0;i<sigIRC.modules.size();i++) {
@ -128,6 +129,7 @@ public class TouhouMotherModule extends Module implements ActionListener{
} }
} }
sigIRC.touhoumothermodule_enabled=false; sigIRC.touhoumothermodule_enabled=false;
sigIRC.config.saveProperties();
} }
private void CheckTouhouMotherClient() { private void CheckTouhouMotherClient() {

@ -140,6 +140,7 @@ public class TwitchModule extends Module{
"Twitch" "Twitch"
)); ));
sigIRC.twitchmodule_enabled=true; sigIRC.twitchmodule_enabled=true;
sigIRC.config.saveProperties();
} }
public static void unloadModule() { public static void unloadModule() {
for (int i=0;i<sigIRC.modules.size();i++) { for (int i=0;i<sigIRC.modules.size();i++) {
@ -148,6 +149,7 @@ public class TwitchModule extends Module{
} }
} }
sigIRC.twitchmodule_enabled=false; sigIRC.twitchmodule_enabled=false;
sigIRC.config.saveProperties();
} }
private void InitializeFollowerSounds() { private void InitializeFollowerSounds() {

Loading…
Cancel
Save