mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Linux fix
This commit is contained in:
parent
efbc7699c9
commit
0d15b28bd3
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue