Changeset 671 for AE/installer2/src/net/oni2
- Timestamp:
- Feb 10, 2013, 6:58:13 PM (12 years ago)
- Location:
- AE/installer2/src/net/oni2/aeinstaller
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/installer2/src/net/oni2/aeinstaller/AEInstaller.properties
r669 r671 1 1 appname=AE Installer 2 2 appversion=0.99 o2 appversion=0.99p -
AE/installer2/src/net/oni2/aeinstaller/backend/packages/Mod_Info.java
r648 r671 46 46 if (strLine.indexOf("->") < 1) 47 47 continue; 48 if (strLine.indexOf("//") >= 0) 49 strLine = strLine.substring(0, strLine.indexOf("//")); 48 int pos = strLine.indexOf("//"); 49 while (pos >= 0) { 50 if ((pos < 6) 51 || !strLine.substring(pos - 5, pos).equals("http:")) { 52 strLine = strLine.substring(0, pos); 53 break; 54 } else { 55 pos = strLine.indexOf("//", pos + 1); 56 } 57 } 50 58 String[] split = strLine.split("->", 2); 51 59 String sName = split[0].trim(); -
AE/installer2/src/net/oni2/aeinstaller/gui/MainWin.java
r669 r671 20 20 21 21 import javax.swing.AbstractAction; 22 import javax.swing.Icon;23 22 import javax.swing.ImageIcon; 24 23 import javax.swing.JButton; … … 42 41 import net.oni2.aeinstaller.AEInstaller2; 43 42 import net.oni2.aeinstaller.backend.AppExecution; 43 import net.oni2.aeinstaller.backend.ImageResizer; 44 44 import net.oni2.aeinstaller.backend.Paths; 45 45 import net.oni2.aeinstaller.backend.Settings; … … 451 451 params.add(exe.getPath()); 452 452 final File wd = m.getWorkingDir(); 453 I con ico = null;453 ImageIcon ico = null; 454 454 if (m.getIconFile() != null && m.getIconFile().exists()) { 455 455 ico = new ImageIcon(m.getIconFile().getPath()); … … 459 459 ico = new ImageIcon(icon); 460 460 } 461 ico = ImageResizer.resizeImage(ico, 32, 32); 461 462 item.setAction(new AbstractAction(m.getName(), ico) { 462 463 private static final long serialVersionUID = 1L;
Note:
See TracChangeset
for help on using the changeset viewer.