Compare commits
6 commits
2024090812
...
main
Author | SHA1 | Date | |
---|---|---|---|
31a51fd76f | |||
e4e071b551 | |||
![]() |
a21f5e04a4 | ||
![]() |
49f80a53be | ||
![]() |
bd754f04e6 | ||
![]() |
eaf293fc09 |
4 changed files with 12 additions and 5 deletions
2
.github/workflows/maven.yml
vendored
2
.github/workflows/maven.yml
vendored
|
@ -9,7 +9,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: docker
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
|
@ -6,6 +6,7 @@ import java.nio.charset.StandardCharsets;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
import org.apache.commons.io.FileUtils;
|
import org.apache.commons.io.FileUtils;
|
||||||
|
import org.json.JSONException;
|
||||||
import org.json.JSONObject;
|
import org.json.JSONObject;
|
||||||
|
|
||||||
public class GuiData {
|
public class GuiData {
|
||||||
|
@ -80,8 +81,15 @@ public class GuiData {
|
||||||
|
|
||||||
localLevels.add(obj.getString("name"));
|
localLevels.add(obj.getString("name"));
|
||||||
id.add(obj.getInt("id") + "");
|
id.add(obj.getInt("id") + "");
|
||||||
verifier.add(obj.getString("verifier"));
|
|
||||||
creator.add(obj.getString("author"));
|
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")));
|
||||||
|
}
|
||||||
|
|
||||||
qualification.add(obj.getInt("percentToQualify") + "");
|
qualification.add(obj.getInt("percentToQualify") + "");
|
||||||
ytlink.add(obj.getString("verification") + "");
|
ytlink.add(obj.getString("verification") + "");
|
||||||
creators.add(obj.getJSONArray("creators") + "");
|
creators.add(obj.getJSONArray("creators") + "");
|
||||||
|
|
|
@ -24,5 +24,4 @@ public class PreChecks {
|
||||||
migration.migrateData();
|
migration.migrateData();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,7 @@ import org.apache.commons.codec.binary.Base64;
|
||||||
|
|
||||||
public class DecryptXOR {
|
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 final int XOR_KEY = 11;
|
||||||
|
|
||||||
private static byte[] xor(byte[] data, int key) {
|
private static byte[] xor(byte[] data, int key) {
|
||||||
|
|
Loading…
Reference in a new issue