Skip to content

Commit

Permalink
Improve cmdline
Browse files Browse the repository at this point in the history
Use full path to resolve win32 exe image info
  • Loading branch information
halx99 authored Sep 25, 2024
1 parent 30a899e commit ca12633
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/cmdline/axmol.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ function is_console_app($path) {
# $isConsole = $peReader.PEHeaders.PEHeader.Subsystem -eq 3
# $peFile.Close()
# return $isConsole
$path = $1k.realpath($path)
$buffer = New-Object Byte[] 248
$fileStream = [System.IO.FileStream]::new($path, [IO.FileMode]::Open, [IO.FileAccess]::Read)
$fileStream.Seek(0x3C, [System.IO.SeekOrigin]::Begin) | Out-Null
Expand Down

0 comments on commit ca12633

Please sign in to comment.