Advertisement
Guest User

Untitled

a guest
Feb 19th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. public void setModules()
  2. {
  3. try
  4. {
  5. new Thread("Module Toggle Thread (StartUp)")
  6. {
  7. public void run()
  8. {
  9. int j;
  10. int i;
  11. for (Iterator localIterator = ModuleManager.activeModules.iterator(); localIterator.hasNext(); i < j)
  12. {
  13. Module m = (Module)localIterator.next();
  14. String[] arrayOfString;
  15. j = (arrayOfString = ModuleManager.this.readModules()).length;i = 0; continue;String module = arrayOfString[i];
  16. if (module.equalsIgnoreCase(m.getName()))
  17. {
  18. try
  19. {
  20. sleep(200L);
  21. }
  22. catch (InterruptedException localInterruptedException) {}
  23. m.toggleModule();
  24. }
  25. i++;
  26. }
  27. }
  28. }.start();
  29. }
  30. catch (Exception localException) {}
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement