mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +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()
|
public static Result<Range> LocateExtraFileInExecutable()
|
||||||
{
|
{
|
||||||
|
#if BF_PLATFORM_WINDOWS
|
||||||
var exePath = Environment.GetExecutableFilePath(.. scope .());
|
var exePath = Environment.GetExecutableFilePath(.. scope .());
|
||||||
var exeFileInfo = scope FileInfo(exePath);
|
var exeFileInfo = scope FileInfo(exePath);
|
||||||
|
|
||||||
|
@ -267,7 +268,7 @@ static class PEFile
|
||||||
Range span = .(exeEnd, fileLength);
|
Range span = .(exeEnd, fileLength);
|
||||||
if (span.Length > 0)
|
if (span.Length > 0)
|
||||||
return span;
|
return span;
|
||||||
|
#endif
|
||||||
return .Err;
|
return .Err;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue