You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
QMessageBox::critical (nullptr, "Settings File Error", "Settings save data file is corrupted at Enable New Game File Creation. Please close program and solve file problem.", QMessageBox::Ok);
1696
+
return;
1697
+
}
1698
+
1699
+
1700
+
//Setting for New Game File Creation
1701
+
line = in.readLine();
1702
+
1703
+
if(line.startsWith (ENDOFFILE))
1704
+
{
1705
+
enableReaperAmmo0Delay = true;
1706
+
repearAmmo0Delay = DEFAULTAMMO0DELAY;
1707
+
reaperHoldSlideTime = REAPERHOLDSLIDETIME;
1673
1708
loadSetData.close ();
1674
1709
this->SaveSettings();
1675
1710
this->UpdateLightGunWithSettings ();
1676
1711
return;
1677
1712
}
1678
1713
elseif(line.startsWith ("1"))
1679
-
enableNewGameFileCreation = true;
1714
+
enableReaperAmmo0Delay = true;
1680
1715
elseif(line.startsWith ("0"))
1681
-
enableNewGameFileCreation = false;
1716
+
enableReaperAmmo0Delay = false;
1682
1717
else
1683
1718
{
1684
-
QMessageBox::critical (nullptr, "Settings File Error", "Settings save data file is corrupted at Enable New Game File Creation. Please close program and solve file problem.", QMessageBox::Ok);
1719
+
QMessageBox::critical (nullptr, "Settings File Error", "Settings save data file is corrupted at Enable Reaper Ammo 0 Delay. Please close program and solve file problem.", QMessageBox::Ok);
1685
1720
return;
1686
1721
}
1687
1722
1723
+
//Next Line is the Reaper Ammo 0 Delay
1724
+
line = in.readLine();
1725
+
1726
+
repearAmmo0Delay = line.toUInt (&isNumber);
1727
+
1728
+
if(!isNumber || repearAmmo0Delay == 0)
1729
+
{
1730
+
repearAmmo0Delay = DEFAULTAMMO0DELAY;
1731
+
QMessageBox::critical (nullptr, "Settings File Error", "Settings save data file is corrupted. Reaper Ammo 0 Delay is not a number, setting to default.", QMessageBox::Ok);
QMessageBox::critical (nullptr, "Settings File Error", "Settings save data file is corrupted. Reaper's Hold Slide Back Timing is not a number or out of range, setting to default.", QMessageBox::Ok);
0 commit comments