encounter / objdiff

A local diffing tool for decompilation projects
Apache License 2.0
125 stars 21 forks source link

Strip distro root prefix #58

Closed AetiasHax closed 6 months ago

AetiasHax commented 6 months 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 6 months 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 6 months ago

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