Advertisement
Guest User

Untitled

a guest
Nov 17th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. public static void main(String[] args) {
  2. String[] folder = args[11].split("\\\\");
  3. String clientName = folder[folder.length - 1];
  4. if(clientName.equals("legacy")) {
  5. clientName = folder[folder.length - 3] + "\\" + folder[folder.length - 2] + "\\" + folder[folder.length - 1];
  6. }
  7.  
  8. String osName = System.getProperty("os.name").toLowerCase();
  9. String osArch = System.getProperty("os.arch").toLowerCase();
  10. String path = args[11].substring(0, args[11].length() - clientName.length());
  11.  
  12. if(osName.contains("win")) {
  13. if(osArch.contains("64")) {
  14. System.load(path + "versions\\1.6.4\\natives\\XSGuard64.dll");
  15. } else if(osArch.contains("32")) {
  16. System.load(path + "versions\\1.6.4\\natives\\XSGuard32.dll");
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement