mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-31 12:22:36 +01:00
Pushed as RC-2.
This commit is contained in:
parent
7c807939fe
commit
634961e0dd
@ -37,7 +37,7 @@ public final class Emulator {
|
|||||||
public final static int BUILD = 0;
|
public final static int BUILD = 0;
|
||||||
|
|
||||||
|
|
||||||
public final static String PREVIEW = "RC-1";
|
public final static String PREVIEW = "RC-2";
|
||||||
|
|
||||||
public static final String version = "Arcturus Morningstar" + " " + MAJOR + "." + MINOR + "." + BUILD + " " + PREVIEW;
|
public static final String version = "Arcturus Morningstar" + " " + MAJOR + "." + MINOR + "." + BUILD + " " + PREVIEW;
|
||||||
private static final String logo =
|
private static final String logo =
|
||||||
@ -48,7 +48,8 @@ public final class Emulator {
|
|||||||
" / /|_/ / __ \\/ ___/ __ \\/ / __ \\/ __ `/ ___/ __/ __ `/ ___/ \n" +
|
" / /|_/ / __ \\/ ___/ __ \\/ / __ \\/ __ `/ ___/ __/ __ `/ ___/ \n" +
|
||||||
" / / / / /_/ / / / / / / / / / / /_/ (__ ) /_/ /_/ / / \n" +
|
" / / / / /_/ / / / / / / / / / / /_/ (__ ) /_/ /_/ / / \n" +
|
||||||
"/_/ /_/\\____/_/ /_/ /_/_/_/ /_/\\__, /____/\\__/\\__,_/_/ \n" +
|
"/_/ /_/\\____/_/ /_/ /_/_/_/ /_/\\__, /____/\\__/\\__,_/_/ \n" +
|
||||||
" /____/ \n";
|
" /____/ \n" +
|
||||||
|
" 'RC Stands for Race Car.' \n" ;
|
||||||
public static String build = "";
|
public static String build = "";
|
||||||
public static boolean isReady = false;
|
public static boolean isReady = false;
|
||||||
public static boolean isShuttingDown = false;
|
public static boolean isShuttingDown = false;
|
||||||
@ -165,12 +166,19 @@ public final class Emulator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static void setBuild() {
|
private static void setBuild() {
|
||||||
|
if (Emulator.class.getProtectionDomain().getCodeSource() == null) {
|
||||||
|
build = "UNKNOWN";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
try {
|
try {
|
||||||
|
String filepath = new File(Emulator.class.getProtectionDomain().getCodeSource().getLocation().getPath()).getAbsolutePath();
|
||||||
MessageDigest md = MessageDigest.getInstance("MD5");// MD5
|
MessageDigest md = MessageDigest.getInstance("MD5");// MD5
|
||||||
|
FileInputStream fis = new FileInputStream(filepath);
|
||||||
byte[] dataBytes = new byte[1024];
|
byte[] dataBytes = new byte[1024];
|
||||||
int nread = 0;
|
int nread = 0;
|
||||||
|
while ((nread = fis.read(dataBytes)) != -1)
|
||||||
md.update(dataBytes, 0, nread);
|
md.update(dataBytes, 0, nread);
|
||||||
byte[] mdbytes = md.digest();
|
byte[] mdbytes = md.digest();
|
||||||
for (int i = 0; i < mdbytes.length; i++)
|
for (int i = 0; i < mdbytes.length; i++)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user