ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/java/installer2/src/net/oni2/aeinstaller/AEInstaller2.java
(Generate patch)

Comparing AE/installer2/src/net/oni2/aeinstaller/AEInstaller2.java (file contents):
Revision 646 by alloc, Wed Jan 23 11:43:13 2013 UTC vs.
Revision 648 by alloc, Fri Jan 25 12:15:31 2013 UTC

# Line 184 | Line 184 | public class AEInstaller2 {
184                          }
185                  }
186  
187 +                boolean forcedOffline = false;
188 +                for (String a : args)
189 +                        if (a.equalsIgnoreCase("-offline"))
190 +                                forcedOffline = true;
191 +
192                  boolean offline = !DepotManager.getInstance().checkConnection();
193 <                if (offline) {
193 >
194 >                if (forcedOffline || offline) {
195                          JOptionPane.showMessageDialog(null,
196                                          globalBundle.getString("offlineModeStartup.text"),
197                                          globalBundle.getString("offlineModeStartup.title"),
198                                          JOptionPane.INFORMATION_MESSAGE);
199                  }
200 <                Settings.getInstance().setOfflineMode(offline);
200 >                Settings.getInstance().setOfflineMode(forcedOffline || offline);
201  
202                  SwingUtilities.invokeLater(new Runnable() {
203                          public void run() {

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)