Changeset 619 for AE/installer2
- Timestamp:
- Jan 15, 2013, 3:28:53 AM (12 years ago)
- Location:
- AE/installer2/src/net/oni2/aeinstaller
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/installer2/src/net/oni2/aeinstaller/backend/Settings.java
r605 r619 80 80 res = QuickAppExecution.execute(cmd); 81 81 } catch (IOException e) { 82 // TODO Auto-generated catch block83 82 e.printStackTrace(); 84 83 } -
AE/installer2/src/net/oni2/aeinstaller/backend/network/FileDownloader.java
r605 r619 122 122 t.join(); 123 123 } catch (InterruptedException e) { 124 // TODO Auto-generated catch block125 124 e.printStackTrace(); 126 125 } … … 150 149 outFile = new RandomAccessFile(target, "rw"); 151 150 } catch (FileNotFoundException e1) { 152 // TODO Auto-generated catch block153 151 e1.printStackTrace(); 154 152 state = EState.ERROR; -
AE/installer2/src/net/oni2/aeinstaller/backend/oni/Installer.java
r610 r619 101 101 .copyFileToDirectory(f, Paths.getEditionBasePath()); 102 102 } catch (IOException e) { 103 // TODO Auto-generated catch block104 103 e.printStackTrace(); 105 104 } … … 242 241 FileUtils.copyFile(fbsl, targetFile); 243 242 } catch (IOException e) { 244 // TODO Auto-generated catch block245 243 e.printStackTrace(); 246 244 } … … 302 300 303 301 Vector<String> res = OniSplit.packLevel(levels.get(l), new File( 304 Paths.getEditionGDF(), l+ ".dat"));302 Paths.getEditionGDF(), sanitizeLevelName(l) + ".dat")); 305 303 if (res != null && res.size() > 0) { 306 304 for (String s : res) … … 551 549 } 552 550 551 private static String sanitizeLevelName(String ln) { 552 int ind = ln.indexOf("_"); 553 String res = ln.substring(0, ind + 1); 554 res += ln.substring(ind + 1, ind + 2).toUpperCase(); 555 res += ln.substring(ind + 2); 556 return res; 557 } 558 553 559 /** 554 560 * Verify that the Edition is within a subfolder to vanilla Oni -
AE/installer2/src/net/oni2/aeinstaller/backend/oni/OniSplit.java
r602 r619 37 37 return m != null; 38 38 } catch (IllegalArgumentException e) { 39 // TODO Auto-generated catch block40 39 e.printStackTrace(); 41 40 } catch (IllegalAccessException e) { 42 // TODO Auto-generated catch block43 41 e.printStackTrace(); 44 42 } catch (InvocationTargetException e) { 45 // TODO Auto-generated catch block46 43 e.printStackTrace(); 47 44 } catch (Exception e) { 48 45 if (!e.getMessage() 49 46 .equals("Registry access not supported (not a Windows OS?).")) 50 // TODO Auto-generated catch block51 47 e.printStackTrace(); 52 48 } … … 61 57 res = QuickAppExecution.execute(cmd); 62 58 } catch (IOException e) { 63 // TODO Auto-generated catch block64 59 e.printStackTrace(); 65 60 } … … 104 99 res = QuickAppExecution.execute(cmdLine); 105 100 } catch (IOException e) { 106 // TODO Auto-generated catch block107 101 e.printStackTrace(); 108 102 } … … 130 124 res = QuickAppExecution.execute(cmdLine); 131 125 } catch (IOException e) { 132 // TODO Auto-generated catch block133 126 e.printStackTrace(); 134 127 } … … 160 153 res = QuickAppExecution.execute(cmdLine); 161 154 } catch (IOException e) { 162 // TODO Auto-generated catch block163 155 e.printStackTrace(); 164 156 } … … 192 184 res = QuickAppExecution.execute(cmdLine); 193 185 } catch (IOException e) { 194 // TODO Auto-generated catch block195 186 e.printStackTrace(); 196 187 } -
AE/installer2/src/net/oni2/aeinstaller/backend/unpack/Unpacker.java
r615 r619 85 85 t.join(); 86 86 } catch (InterruptedException e) { 87 // TODO Auto-generated catch block88 87 e.printStackTrace(); 89 88 } … … 96 95 FileUtils.deleteDirectory(target); 97 96 } catch (IOException e) { 98 // TODO Auto-generated catch block99 97 e.printStackTrace(); 100 98 } … … 172 170 zf.close(); 173 171 } catch (IOException e) { 174 // TODO Auto-generated catch block175 172 e.printStackTrace(); 176 173 } -
AE/installer2/src/net/oni2/aeinstaller/gui/MainWin.java
r618 r619 378 378 Thread.sleep(10); 379 379 } catch (InterruptedException e) { 380 // TODO Auto-generated catch block381 380 e.printStackTrace(); 382 381 } … … 568 567 pb.start(); 569 568 } catch (IOException e) { 570 // TODO Auto-generated catch block571 569 e.printStackTrace(); 572 570 } … … 584 582 pb.start(); 585 583 } catch (IOException e) { 586 // TODO Auto-generated catch block587 584 e.printStackTrace(); 588 585 }
Note:
See TracChangeset
for help on using the changeset viewer.