AppModel/C++/JSON/Script: Don't output generic method definitions (no compiled code)
This commit is contained in:
@@ -163,7 +163,7 @@ typedef size_t uintptr_t;
|
||||
writeCode("using namespace app;");
|
||||
writeLine("");
|
||||
|
||||
foreach (var method in model.Methods.Values) {
|
||||
foreach (var method in model.Methods.Values.Where(m => m.HasCompiledCode)) {
|
||||
var arguments = string.Join(", ", method.CppFnPtrType.Arguments.Select(a => a.Type.Name + " " + (a.Name == "this" ? "__this" : a.Name)));
|
||||
writeCode($"DO_APP_FUNC(0x{method.MethodCodeAddress - model.Package.BinaryImage.ImageBase:X8}, {method.CppFnPtrType.ReturnType.Name}, "
|
||||
+ $"{method.CppFnPtrType.Name}, ({arguments}));");
|
||||
|
||||
Reference in New Issue
Block a user