Skip to content

Commit 84b944b

Browse files
Clean up .texinfo files
Generated by EricW's version of tyrutils, for things like Phong shading and bounce lighting on func_detail, func_group, and other entities removed by QBSP. This may eventually be better off stored in a text file listing temp files to rename or delete.
1 parent 194774b commit 84b944b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Quinstance/Program.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,8 @@ static void CleanUp(string map_in)
178178
temp_bsp = temp + ".bsp",
179179
temp_lin = temp + ".lin",
180180
temp_prt = temp + ".prt",
181-
temp_pts = temp + ".pts";
181+
temp_pts = temp + ".pts",
182+
temp_texinfo = temp + ".texinfo";
182183

183184
Console.Write("Cleaning up...");
184185

@@ -209,6 +210,12 @@ static void CleanUp(string map_in)
209210
File.Move(temp_pts, temp_pts.Replace(".temp.pts", ".pts"));
210211
}
211212

213+
if (File.Exists(temp_texinfo))
214+
{
215+
File.Delete(temp_pts.Replace(".temp.texinfo", ".texinfo"));
216+
File.Move(temp_pts, temp_pts.Replace(".temp.texinfo", ".texinfo"));
217+
}
218+
212219
Console.WriteLine("done!");
213220
}
214221

0 commit comments

Comments
 (0)