1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Linux fix

This commit is contained in:
Brian Fiete 2025-01-17 12:40:13 -08:00
parent efbc7699c9
commit 0d15b28bd3

View file

@ -239,6 +239,7 @@ static class PEFile
public static Result<Range> LocateExtraFileInExecutable()
{
#if BF_PLATFORM_WINDOWS
var exePath = Environment.GetExecutableFilePath(.. scope .());
var exeFileInfo = scope FileInfo(exePath);
@ -267,7 +268,7 @@ static class PEFile
Range span = .(exeEnd, fileLength);
if (span.Length > 0)
return span;
#endif
return .Err;
}
}