Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args) {
- String[] folder = args[11].split("\\\\");
- String clientName = folder[folder.length - 1];
- if(clientName.equals("legacy")) {
- clientName = folder[folder.length - 3] + "\\" + folder[folder.length - 2] + "\\" + folder[folder.length - 1];
- }
- String osName = System.getProperty("os.name").toLowerCase();
- String osArch = System.getProperty("os.arch").toLowerCase();
- String path = args[11].substring(0, args[11].length() - clientName.length());
- if(osName.contains("win")) {
- if(osArch.contains("64")) {
- System.load(path + "versions\\1.6.4\\natives\\XSGuard64.dll");
- } else if(osArch.contains("32")) {
- System.load(path + "versions\\1.6.4\\natives\\XSGuard32.dll");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement