| 49 |
|
import net.oni2.aeinstaller.AEInstaller2; |
| 50 |
|
import net.oni2.aeinstaller.backend.ImageResizer; |
| 51 |
|
import net.oni2.aeinstaller.backend.Paths; |
| 52 |
+ |
import net.oni2.aeinstaller.backend.RuntimeOptions; |
| 53 |
|
import net.oni2.aeinstaller.backend.SizeFormatter; |
| 54 |
|
import net.oni2.aeinstaller.backend.oni.OniLauncher; |
| 55 |
|
import net.oni2.aeinstaller.backend.oni.OniSplit; |
| 217 |
|
private void execDepotUpdate(final BackgroundEvent evt) { |
| 218 |
|
DepotManager.loadFromCacheFile(Paths.getDepotCacheFilename()); |
| 219 |
|
|
| 220 |
< |
if (!SettingsManager.getInstance().isOfflineMode() |
| 221 |
< |
&& !SettingsManager.getInstance().isNoCacheUpdateMode()) { |
| 220 |
> |
if (!RuntimeOptions.isOfflineMode() |
| 221 |
> |
&& !RuntimeOptions.isNoCacheUpdateMode()) { |
| 222 |
|
long start = new Date().getTime(); |
| 223 |
|
|
| 224 |
|
if (DepotManager.getInstance().updateInformation()) |
| 240 |
|
private void checkUpdates(Object evtSource) { |
| 241 |
|
if ((evtSource != this) |
| 242 |
|
|| SettingsManager.getInstance().get("notifyupdates", true)) { |
| 243 |
< |
if (SettingsManager.getInstance().isOfflineMode()) { |
| 243 |
> |
if (RuntimeOptions.isOfflineMode()) { |
| 244 |
|
if (evtSource != this) { |
| 245 |
|
JOptionPane.showMessageDialog( |
| 246 |
|
this, |
| 584 |
|
|
| 585 |
|
@SuppressWarnings("unused") |
| 586 |
|
private void checkCorePackages() { |
| 587 |
< |
if (!SettingsManager.getInstance().isOfflineMode()) { |
| 587 |
> |
if (!RuntimeOptions.isOfflineMode()) { |
| 588 |
|
TreeSet<Package> tools = new TreeSet<Package>(); |
| 589 |
|
for (Package m : PackageManager.getInstance().getCoreTools()) { |
| 590 |
|
if (m.isNewerAvailable()) { |
| 649 |
|
toDownload.add(m); |
| 650 |
|
} |
| 651 |
|
|
| 652 |
< |
if (toDownload.size() > 0 |
| 652 |
< |
&& SettingsManager.getInstance().isOfflineMode()) { |
| 652 |
> |
if (toDownload.size() > 0 && RuntimeOptions.isOfflineMode()) { |
| 653 |
|
installState = EInstallState.OFFLINE; |
| 654 |
|
break; |
| 655 |
|
} |