Fix positioning issue for linux, change to new version nr for network and db

This commit is contained in:
Manfred Karrer 2016-02-10 23:14:12 +01:00
parent 0c465a9ec3
commit efc365f7e3
4 changed files with 19 additions and 11 deletions

View file

@ -28,10 +28,10 @@ public class Version {
// The version nr. for the objects sent over the network. A change will break the serialization of old objects.
// If objects are used for both network and database the network version is applied.
public static final long P2P_NETWORK_VERSION = 1;
public static final long P2P_NETWORK_VERSION = 2;
// The version nr. of the serialized data stored to disc. A change will break the serialization of old objects.
public static final long LOCAL_DB_VERSION = 1;
public static final long LOCAL_DB_VERSION = 2;
// The version nr. of the current protocol. The offer holds that version.
// A taker will check the version of the offers to see if his version is compatible.

View file

@ -114,7 +114,7 @@ public class Utilities {
return getOSName().contains("mac") || getOSName().contains("darwin");
}
private static boolean isLinux() {
public static boolean isLinux() {
return getOSName().contains("linux");
}