mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-08 04:41:51 +09:00
64 bit version number
This commit is contained in:
@@ -60,10 +60,10 @@ public class App implements ApplicationListener {
|
||||
public static final long startupTime = System.currentTimeMillis() / 1000L;
|
||||
|
||||
public static final String GAME_NAME = TerrarumAppConfiguration.GAME_NAME;
|
||||
public static final int VERSION_RAW = TerrarumAppConfiguration.VERSION_RAW;
|
||||
public static final long VERSION_RAW = TerrarumAppConfiguration.VERSION_RAW;
|
||||
|
||||
public static final String getVERSION_STRING() {
|
||||
return String.format("%d.%d.%d", VERSION_RAW >>> 24, (VERSION_RAW & 0xff0000) >>> 16, VERSION_RAW & 0xFFFF);
|
||||
return String.format("%d.%d.%d", VERSION_RAW >>> 48, (VERSION_RAW & 0xffff000000L) >>> 24, VERSION_RAW & 0xffffffL);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -44,17 +44,17 @@ basegame
|
||||
*
|
||||
*
|
||||
*
|
||||
* 0xAA_BB_XXXX, where:
|
||||
* 0xAAAA_BBBB_XXXXXX, where:
|
||||
*
|
||||
* * AA: Major version
|
||||
* * BB: Minor version
|
||||
* * XXXX: Patch version
|
||||
* * AAAA: Major version
|
||||
* * BBBB: Minor version
|
||||
* * XXXXXX: Patch version
|
||||
*
|
||||
*
|
||||
* e.g. 0x02010034 will be translated as 2.1.52
|
||||
*
|
||||
*/
|
||||
const val VERSION_RAW = 0x00030002
|
||||
const val VERSION_RAW: Long = 0x0000_000003_000002
|
||||
// Commit counts up to the Release 0.3.0: 2259
|
||||
// Commit counts up to the Release 0.3.1: 2278
|
||||
|
||||
|
||||
Reference in New Issue
Block a user