mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-27 22:12:25 +00:00
output builds now :-)
This commit is contained in:
parent
3f0e954f89
commit
a331bc1b1b
2 changed files with 4 additions and 4 deletions
|
|
@ -40,14 +40,14 @@ namespace Indy.IL2CPU.IL.X86 {
|
||||||
if (String.IsNullOrEmpty(xMethodName)) {
|
if (String.IsNullOrEmpty(xMethodName)) {
|
||||||
xMethodName = TheMethod.Name;
|
xMethodName = TheMethod.Name;
|
||||||
}
|
}
|
||||||
if (TheMethod.PInvokeInfo.IsCharSetNotSpec) {
|
//if (TheMethod.PInvokeInfo.IsCharSetNotSpec) {
|
||||||
foreach (ParameterDefinition xParam in TheMethod.Parameters) {
|
foreach (ParameterDefinition xParam in TheMethod.Parameters) {
|
||||||
if (xParam.ParameterType.FullName=="System.String") {
|
if (xParam.ParameterType.FullName=="System.String") {
|
||||||
xMethodName += "A";
|
xMethodName += "A";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
//}
|
||||||
if (String.IsNullOrEmpty(xDllName)) {
|
if (String.IsNullOrEmpty(xDllName)) {
|
||||||
throw new Exception("Unable to determine what dll to use!");
|
throw new Exception("Unable to determine what dll to use!");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -171,12 +171,12 @@ namespace Indy.IL2CPU {
|
||||||
TypeDefinition xType = mTypes[i];
|
TypeDefinition xType = mTypes[i];
|
||||||
List<MethodDefinition> xEmittedMethods = new List<MethodDefinition>();
|
List<MethodDefinition> xEmittedMethods = new List<MethodDefinition>();
|
||||||
foreach (MethodDefinition xMethod in xType.Methods) {
|
foreach (MethodDefinition xMethod in xType.Methods) {
|
||||||
if (mMethods.ContainsKey(xMethod) && mMethods[xMethod]) {
|
if (mMethods.ContainsKey(xMethod) && mMethods[xMethod] && !xMethod.IsAbstract) {
|
||||||
xEmittedMethods.Add(xMethod);
|
xEmittedMethods.Add(xMethod);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
foreach (MethodDefinition xCtor in xType.Constructors) {
|
foreach (MethodDefinition xCtor in xType.Constructors) {
|
||||||
if (mMethods.ContainsKey(xCtor) && mMethods[xCtor]) {
|
if (mMethods.ContainsKey(xCtor) && mMethods[xCtor] && !xCtor.IsAbstract) {
|
||||||
xEmittedMethods.Add(xCtor);
|
xEmittedMethods.Add(xCtor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue