64 bit version number

This commit is contained in:
minjaesong
2022-12-20 03:50:07 +09:00
parent b14e3085d6
commit c48a4834f8
2 changed files with 7 additions and 7 deletions

View File

@@ -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);
}
/**

View File

@@ -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