Skip to content

Commit 88d3382

Browse files
author
Philippe Elsass
committed
Fixed template processing: .fdproj extension was not considered as a project file
1 parent ec3431e commit 88d3382

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

PluginCore/PluginCore/Helpers/FileInspector.cs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -138,20 +138,19 @@ public static bool IsHaxeProject(string path, string ext)
138138
return ext == ".hxproj";
139139
}
140140

141+
public static bool IsGenericProject(string path, string ext)
142+
{
143+
return ext == ".fdproj";
144+
}
145+
141146
public static bool IsProject(string path)
142147
{
143148
return IsProject(path, Path.GetExtension(path).ToLower());
144149
}
145150

146151
public static bool IsProject(string path, string ext)
147152
{
148-
return IsAS2Project(path, ext) || IsAS3Project(path, ext) || IsHaxeProject(path, ext);
149-
}
150-
151-
public static bool IsCustomProject(string path, string ext)
152-
{
153-
return (!IsAS2Project(path, ext) && !IsAS3Project(path, ext) &&
154-
!IsHaxeProject(path, ext));
153+
return IsAS2Project(path, ext) || IsAS3Project(path, ext) || IsHaxeProject(path, ext) || IsGenericProject(path, ext);
155154
}
156155

157156
public static bool IsTemplate(string path, string ext)

0 commit comments

Comments
 (0)