encounter / objdiff

A local diffing tool for decompilation projects
Apache License 2.0
77 stars 13 forks source link

Strip distro root prefix #58

Closed AetiasHax closed 1 month ago

AetiasHax commented 1 month ago

Building on WSL uses wsl --cd <dir> ... which expects a Windows/Linux path and doesn't work with \\wsl.localhost paths. I fixed this by stripping the prefix \\wsl.localhost\{distro} and replacing it with the root path /.

encounter commented 1 month ago

Thanks for the PR! I was under the impression that wsl.exe properly translated \\wsl.localhost paths. What error were you getting before this?

encounter commented 1 month ago

Ah, just tested and it doesn't handle it. Good catch!