Support compiling third party library C files as C code

This commit is contained in:
2025-01-03 15:11:59 +02:00
parent bf4ec5f91a
commit 5b8c81dfac
10 changed files with 40 additions and 29 deletions

View File

@@ -1008,7 +1008,7 @@ namespace FlaxEditor.Modules
ContentItem item;
if (path.EndsWith(".cs"))
item = new CSharpScriptItem(path);
else if (path.EndsWith(".cpp") || path.EndsWith(".h"))
else if (path.EndsWith(".cpp") || path.EndsWith(".h") || path.EndsWith(".c") || path.EndsWith(".hpp"))
item = new CppScriptItem(path);
else if (path.EndsWith(".shader") || path.EndsWith(".hlsl"))
item = new ShaderSourceItem(path);