Changeset 619 for AE/installer2/src/net/oni2/aeinstaller/backend/oni
- Timestamp:
- Jan 15, 2013, 3:28:53 AM (12 years ago)
- Location:
- AE/installer2/src/net/oni2/aeinstaller/backend/oni
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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 }
Note:
See TracChangeset
for help on using the changeset viewer.