Compare commits
No commits in common. "main" and "20240809162317" have entirely different histories.
main
...
2024080916
10 changed files with 5 additions and 80 deletions
2
.github/workflows/maven.yml
vendored
2
.github/workflows/maven.yml
vendored
|
@ -9,7 +9,7 @@ on:
|
|||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: docker
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v3
|
||||
|
|
10
pom.xml
10
pom.xml
|
@ -52,16 +52,6 @@
|
|||
<artifactId>github-api</artifactId>
|
||||
<version>1.127</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.sun.mail</groupId>
|
||||
<artifactId>javax.mail</artifactId>
|
||||
<version>1.6.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
<version>8.0.33</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.qtjambi</groupId>
|
||||
<artifactId>qtjambi</artifactId>
|
||||
|
|
|
@ -83,7 +83,6 @@ public class DownloadLevels {
|
|||
fileOutputStream.write(dataBuffer, 0, bytesRead);
|
||||
|
||||
}
|
||||
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
|
|
@ -6,7 +6,6 @@ import java.nio.charset.StandardCharsets;
|
|||
import java.util.ArrayList;
|
||||
|
||||
import org.apache.commons.io.FileUtils;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
|
||||
public class GuiData {
|
||||
|
@ -81,15 +80,8 @@ public class GuiData {
|
|||
|
||||
localLevels.add(obj.getString("name"));
|
||||
id.add(obj.getInt("id") + "");
|
||||
|
||||
try {
|
||||
verifier.add(obj.getString("verifier"));
|
||||
creator.add(obj.getString("author"));
|
||||
} catch (JSONException e) {
|
||||
verifier.add(Long.toString(obj.getLong("verifier")));
|
||||
creator.add(Long.toString(obj.getLong("author")));
|
||||
}
|
||||
|
||||
verifier.add(obj.getString("verifier"));
|
||||
creator.add(obj.getString("author"));
|
||||
qualification.add(obj.getInt("percentToQualify") + "");
|
||||
ytlink.add(obj.getString("verification") + "");
|
||||
creators.add(obj.getJSONArray("creators") + "");
|
||||
|
|
|
@ -1,21 +0,0 @@
|
|||
package errorhandler;
|
||||
|
||||
import java.io.PrintWriter;
|
||||
import java.io.StringWriter;
|
||||
|
||||
import javax.swing.JOptionPane;
|
||||
|
||||
public class ErrorHandler {
|
||||
|
||||
public void newError(Throwable e) {
|
||||
e.printStackTrace();
|
||||
|
||||
StringWriter sw = new StringWriter();
|
||||
PrintWriter pw = new PrintWriter(sw);
|
||||
e.printStackTrace(pw);
|
||||
|
||||
JOptionPane.showMessageDialog(null, sw.toString() + "", e.getMessage(), JOptionPane.ERROR_MESSAGE);
|
||||
System.exit(-1);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,18 +0,0 @@
|
|||
package errorhandler;
|
||||
|
||||
import java.util.Properties;
|
||||
|
||||
import javax.mail.Authenticator;
|
||||
import javax.mail.Message;
|
||||
import javax.mail.MessagingException;
|
||||
import javax.mail.PasswordAuthentication;
|
||||
import javax.mail.Session;
|
||||
import javax.mail.Transport;
|
||||
import javax.mail.internet.InternetAddress;
|
||||
import javax.mail.internet.MimeMessage;
|
||||
|
||||
public class ErrorSubmission {
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -3,14 +3,11 @@ package main;
|
|||
import java.io.IOException;
|
||||
import java.util.zip.DataFormatException;
|
||||
|
||||
import javax.swing.JOptionPane;
|
||||
|
||||
import api.GetApiData;
|
||||
import data.FetchData;
|
||||
import data.ManageFiles;
|
||||
import database.DatabaseManager;
|
||||
import database.Sqlite;
|
||||
import errorhandler.ErrorHandler;
|
||||
import filestructure.CreateFileStructure;
|
||||
import gui.LoadMenu;
|
||||
import preload.PreChecks;
|
||||
|
@ -19,16 +16,6 @@ import settingsfunctions.LoadSettings;
|
|||
public class Main {
|
||||
|
||||
public static void main(String[] args) throws IOException, DataFormatException {
|
||||
|
||||
Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
|
||||
@Override
|
||||
public void uncaughtException(Thread t, Throwable e) {
|
||||
ErrorHandler error = new ErrorHandler();
|
||||
error.newError(e);
|
||||
}
|
||||
});
|
||||
|
||||
try {
|
||||
|
||||
LoadMenu load = new LoadMenu();
|
||||
load.onLoad();
|
||||
|
@ -67,10 +54,6 @@ public class Main {
|
|||
|
||||
load.updateBar("Ladevorgang abgeschlossen");
|
||||
load.close();
|
||||
|
||||
} catch (Exception e) {
|
||||
System.out.println("fehler");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -10,5 +10,4 @@
|
|||
requires java.xml;
|
||||
requires org.apache.commons.codec;
|
||||
requires github.api;
|
||||
requires java.mail;
|
||||
}
|
|
@ -24,4 +24,5 @@ public class PreChecks {
|
|||
migration.migrateData();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ import org.apache.commons.codec.binary.Base64;
|
|||
|
||||
public class DecryptXOR {
|
||||
|
||||
private static final String[] SAVES = {"CCGameManager.dat"};
|
||||
private static final String[] SAVES = {"CCGameManager.dat"};
|
||||
private static final int XOR_KEY = 11;
|
||||
|
||||
private static byte[] xor(byte[] data, int key) {
|
||||
|
|
Loading…
Reference in a new issue