mirror of https://github.com/acidanthera/audk.git
little modify
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1373 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
c1dbe93d27
commit
a55ae0f203
|
@ -34,7 +34,7 @@ public final class ModuleInfo {
|
|||
}
|
||||
}
|
||||
|
||||
public String modulepath = null;
|
||||
public final String modulepath;
|
||||
|
||||
public String outputpath = null;
|
||||
|
||||
|
|
|
@ -34,9 +34,13 @@ public final class ModuleReader {
|
|||
if (mi.msaorinf.isEmpty()) {
|
||||
ModuleInfo.ui.println("No INF nor MSA file found!");
|
||||
System.exit(0);
|
||||
} else {
|
||||
if (mi.msaorinf.size() == 1) {
|
||||
filename = (String)mi.msaorinf.toArray()[0];
|
||||
} else {
|
||||
filename = ModuleInfo.ui.choose("Found .inf or .msa file for module\n" + mi.modulepath + "\nChoose one Please", mi.msaorinf.toArray());
|
||||
}
|
||||
}
|
||||
if (filename.contains(".inf")) {
|
||||
readInf(filename);
|
||||
} else if (filename.contains(".msa")) {
|
||||
|
|
|
@ -44,9 +44,12 @@ public final class SourceFileReplacer {
|
|||
|
||||
String outname = null;
|
||||
String inname = null;
|
||||
/*
|
||||
if (ModuleInfo.ui.yesOrNo("Changes will be made to the Source Code. View details?")) {
|
||||
showdetails = true;
|
||||
}
|
||||
*/
|
||||
showdetails = true; // set this as default now, may be changed in the future
|
||||
|
||||
Iterator<String> di = mi.localmodulesources.iterator();
|
||||
while (di.hasNext()) {
|
||||
|
|
Loading…
Reference in New Issue