ruarai / CompilePal

A tool to assist in the compiling of source engine maps
GNU General Public License v3.0
225 stars 25 forks source link

Pack crash on empty search directory #144

Closed Exactol closed 3 years ago

Exactol commented 3 years ago

Describe the bug Pack step crashes if there is a search path mounted in the gameinfo that is an empty directory

Steps to reproduce Create an empty directory and mount it in the gameinfo

Crash logs Starting a 'Publish - HDR' compile. Starting compilation of de_maar_20

CompilePal - Automated Packaging Finding sources of game content... Found search paths... Found search path: D:\SteamLibrary\steamapps\common\Counter-Strike Global Offensive\csgo Found search path: D:\SteamLibrary\steamapps\common\Counter-Strike Global Offensive\csgo Something broke: System.NotSupportedException: The given path's format is not supported. at System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath) at System.Security.Permissions.FileIOPermission.QuickDemand(FileIOPermissionAccess access, String fullPath, Boolean checkForDuplicates, Boolean needFullPath) at System.IO.Path.GetFullPath(String path) at CompilePalX.Compilers.BSPPack.BSPPack.GetSourceDirectories(String gamePath, Boolean verbose) in D:\a\CompilePal\CompilePal\CompilePalX\Compilers\BSPPack\Pack.cs:line 634 at CompilePalX.Compilers.BSPPack.BSPPack.Run(CompileContext context) in D:\a\CompilePal\CompilePal\CompilePalX\Compilers\BSPPack\Pack.cs:line 221 An error cancelled the compile. Compile forcefully ended.

'Publish - HDR' compile finished in 00:00:00