Cross Version
This commit is contained in:
1 parent
66d28f5ff8
commit
90c5058a4c
2 files changed
+9
-9
No files matched your search
@@ -124,21 +124,21 @@ namespace SourceCodeGeneratorUbtPlugin
|
||||
|
||||
List<Task?> tasks = new();
|
||||
|
||||
foreach (var package in Session.Packages)
|
||||
foreach (var module in Session.Modules)
|
||||
{
|
||||
if (package.Module.ModuleType != UHTModuleType.EngineRuntime &&
|
||||
package.Module.ModuleType != UHTModuleType.GameRuntime)
|
||||
if (module.Module.ModuleType != UHTModuleType.EngineRuntime &&
|
||||
module.Module.ModuleType != UHTModuleType.GameRuntime)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (ExportModule.All(module =>
|
||||
string.Compare(module, package.Module.Name, StringComparison.OrdinalIgnoreCase) != 0))
|
||||
if (ExportModule.All(x =>
|
||||
string.Compare(x, module.Module.Name, StringComparison.OrdinalIgnoreCase) != 0))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
QueueClassExports(package, tasks);
|
||||
QueueClassExports(module.ScriptPackage, tasks);
|
||||
}
|
||||
|
||||
var waitTasks = tasks.Where(Task => Task != null).Cast<Task>().ToArray();
|
||||
@@ -367,7 +367,7 @@ namespace SourceCodeGeneratorUbtPlugin
|
||||
builder.Append(GenerateInclude($"{value}{BindingSuffix}"));
|
||||
}
|
||||
|
||||
var fileName = Factory.MakePath(package.Key, HeaderSuffix);
|
||||
var fileName = Factory.MakePath(package.Key.Module, HeaderSuffix);
|
||||
|
||||
SaveIfChanged(fileName, builder);
|
||||
}
|
||||
@@ -759,7 +759,7 @@ namespace SourceCodeGeneratorUbtPlugin
|
||||
|
||||
private string GetHeaderFile(UhtClass classObj)
|
||||
{
|
||||
return Path.Combine(HeaderPath[classObj.Package.ShortName], classObj.HeaderFile.FilePath);
|
||||
return Path.Combine(HeaderPath[classObj.Package.Module.ShortName], classObj.HeaderFile.FilePath);
|
||||
}
|
||||
|
||||
private static string GenerateInclude(string file)
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<Import Project="SourceCodeGenerator.ubtplugin.csproj.props" Condition="Exists('SourceCodeGenerator.ubtplugin.csproj.props')" />
|
||||
<Import Project="$(EngineDir)\Source\Programs\Shared\UnrealEngine.csproj.props" />
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Development</Configuration>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
||||
|
||||
Reference in new issue
Block a user