mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 09:01:08 +03:00
[FIX] compareMode обернут
This commit is contained in:
parent
d5c7e5ed68
commit
af90fd41ca
1 changed files with 9 additions and 6 deletions
|
@ -144,12 +144,15 @@ public void onCheckInfo(OshiHWID hwid, String username, Connection c) throws HWI
|
|||
boolean isOne = false;
|
||||
while(set.next()) {
|
||||
if(!oneCompareMode) isOne = true;
|
||||
OshiHWID db_hwid = new OshiHWID();
|
||||
db_hwid.serialNumber = set.getString(hwidFieldSerialNumber);
|
||||
db_hwid.processorID = set.getString(hwidFieldProcessorID);
|
||||
db_hwid.HWDiskSerial = set.getString(hwidFieldHWDiskSerial);
|
||||
db_hwid.totalMemory = Long.valueOf(set.getString(hwidFieldTotalMemory));
|
||||
if(hwid.compare(db_hwid) < compare) continue;
|
||||
if(compareMode)
|
||||
{
|
||||
OshiHWID db_hwid = new OshiHWID();
|
||||
db_hwid.serialNumber = set.getString(hwidFieldSerialNumber);
|
||||
db_hwid.processorID = set.getString(hwidFieldProcessorID);
|
||||
db_hwid.HWDiskSerial = set.getString(hwidFieldHWDiskSerial);
|
||||
db_hwid.totalMemory = Long.valueOf(set.getString(hwidFieldTotalMemory));
|
||||
if(hwid.compare(db_hwid) < compare) continue;
|
||||
}
|
||||
if(oneCompareMode) isOne = true;
|
||||
boolean isBanned = set.getBoolean(hwidFieldBanned);
|
||||
if (isBanned) {
|
||||
|
|
Loading…
Reference in a new issue