]> git.sur5r.net Git - cc65/commit
Have cl65 run the binaries from its own directory.
authorOliver Schmidt <ol.sc@web.de>
Mon, 6 May 2013 22:47:37 +0000 (00:47 +0200)
committerOliver Schmidt <ol.sc@web.de>
Mon, 6 May 2013 22:47:37 +0000 (00:47 +0200)
commit912b0d9e93876364e92909efc843dca0e9cb11a5
tree6bb0bc0eab275ce7f8c4e439a776c1150de7f249
parent2e7fdb23ee299e0b8607642189145fc86a9ae4e1
Have cl65 run the binaries from its own directory.

While ca65, cc65 and ld65 have built-in paths cl65 doesn't.
That means that up to now cl65 depended on the binaries
being found in the path env var. However it makes sense
to presume that the binaries are located in the very same
directory cl65 is located in. So whatever pathname was
suitable to run cl65 should be suitable to run the other
binaries too. But if for some reason there's no valid
argv[0] or if it doesn't contain at least one directory
delimiter ('/' or '\') then fall back to relying on the
path env var.
src/cl65/main.c