Changeset 720 for AE/installer2/src/net/oni2/aeinstaller/backend/packages
- Timestamp:
- Mar 21, 2013, 12:33:53 PM (12 years ago)
- Location:
- AE/installer2/src/net/oni2/aeinstaller/backend/packages
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/installer2/src/net/oni2/aeinstaller/backend/packages/Mod_Info.java
r699 r720 11 11 import net.oni2.aeinstaller.backend.CaseInsensitiveFile; 12 12 import net.oni2.aeinstaller.backend.Paths; 13 import net.oni2.platformtools.applicationinvoker.EExeType; 13 14 14 15 /** … … 112 113 } 113 114 } else if (sName.equalsIgnoreCase("ExeName")) { 114 exeFile = CaseInsensitiveFile.getCaseInsensitiveFile(Paths.getEditionBasePath(), sVal); 115 exeFile = CaseInsensitiveFile.getCaseInsensitiveFile( 116 Paths.getEditionBasePath(), sVal); 115 117 } else if (sName.equalsIgnoreCase("ExeType")) { 116 118 if (sVal.equalsIgnoreCase("OSBinary")) 117 119 exeType = EExeType.OSBINARY; 120 else if (sVal.equalsIgnoreCase("WinExe")) 121 exeType = EExeType.WINEXE; 118 122 else if (sVal.equalsIgnoreCase("DotNet")) 119 123 exeType = EExeType.DOTNET; … … 123 127 workingDir = sVal; 124 128 } else if (sName.equalsIgnoreCase("IconName")) { 125 iconFile = CaseInsensitiveFile.getCaseInsensitiveFile(Paths.getEditionBasePath(), sVal); 129 iconFile = CaseInsensitiveFile.getCaseInsensitiveFile( 130 Paths.getEditionBasePath(), sVal); 126 131 } 127 132 } … … 129 134 if (exeFile.getName().toLowerCase().endsWith(".jar")) 130 135 exeType = EExeType.JAR; 136 else if (exeType == EExeType.OSBINARY && exeFile.getName().toLowerCase().endsWith(".exe")) 137 exeType = EExeType.WINEXE; 131 138 } 132 139 } catch (FileNotFoundException e) { -
AE/installer2/src/net/oni2/aeinstaller/backend/packages/Package.java
r708 r720 12 12 import java.util.HashSet; 13 13 14 import org.apache.commons.io.FileUtils;15 16 14 import net.oni2.aeinstaller.backend.CaseInsensitiveFile; 17 15 import net.oni2.aeinstaller.backend.Paths; … … 21 19 import net.oni2.aeinstaller.backend.depot.model.TaxonomyTerm; 22 20 import net.oni2.aeinstaller.backend.oni.Installer; 23 import net.oni2.settingsmanager.Settings; 24 import net.oni2.settingsmanager.Settings.Platform; 21 import net.oni2.platformtools.PlatformInformation; 22 import net.oni2.platformtools.PlatformInformation.Platform; 23 import net.oni2.platformtools.applicationinvoker.EExeType; 24 25 import org.apache.commons.io.FileUtils; 25 26 26 27 /** … … 426 427 return true; 427 428 case MACOS: 428 return ( Settings.getPlatform() == Platform.MACOS);429 return (PlatformInformation.getPlatform() == Platform.MACOS); 429 430 case WIN: 430 return ( Settings.getPlatform() == Platform.WIN)431 || ( Settings.getPlatform() == Platform.LINUX);431 return (PlatformInformation.getPlatform() == Platform.WIN) 432 || (PlatformInformation.getPlatform() == Platform.LINUX); 432 433 } 433 434 return false;
Note:
See TracChangeset
for help on using the changeset viewer.