mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-04-01 14:04:03 +03:00
Использование максимально большого жесткого диска для серийника
This commit is contained in:
parent
21824962b9
commit
6f4a4b60bc
2 changed files with 8 additions and 4 deletions
|
@ -34,11 +34,15 @@ public String getProcessorID()
|
||||||
public String getHWDisk()
|
public String getHWDisk()
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
HWDiskStore store = null;
|
||||||
|
long size = 0;
|
||||||
for (HWDiskStore s : systemInfo.getHardware().getDiskStores()) {
|
for (HWDiskStore s : systemInfo.getHardware().getDiskStores()) {
|
||||||
if (!s.getModel().contains("USB"))
|
if (size < s.getSize()) {
|
||||||
return s.getSerial();
|
store = s;
|
||||||
|
size = s.getSize();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return "";
|
return store == null ? "" : store.getSerial();
|
||||||
} catch (Exception e)
|
} catch (Exception e)
|
||||||
{
|
{
|
||||||
LogHelper.error(e);
|
LogHelper.error(e);
|
||||||
|
|
|
@ -59,7 +59,7 @@ public final class Launcher {
|
||||||
public static int MAJOR = 4;
|
public static int MAJOR = 4;
|
||||||
public static int MINOR = 1;
|
public static int MINOR = 1;
|
||||||
public static int PATCH = 0;
|
public static int PATCH = 0;
|
||||||
public static int BUILD = 0;
|
public static int BUILD = 1;
|
||||||
public static Version.Type RELEASE = Version.Type.DEV;
|
public static Version.Type RELEASE = Version.Type.DEV;
|
||||||
|
|
||||||
@LauncherAPI
|
@LauncherAPI
|
||||||
|
|
Loading…
Reference in a new issue