diff options
author | Steven Noonan <steven@uplinklabs.net> | 2009-09-20 20:33:43 -0700 |
---|---|---|
committer | Steven Noonan <steven@uplinklabs.net> | 2009-09-25 14:32:30 -0700 |
commit | 822c833d1372bdd62dcc3400a529ac107fabe99a (patch) | |
tree | f981c3fb50530620d189a6f5cd860cc42327cfd4 /crawl-ref/README.txt | |
parent | 14cf7497634b4a0467a3bfba1420746733751b2e (diff) | |
download | crawl-ref-822c833d1372bdd62dcc3400a529ac107fabe99a.tar.gz crawl-ref-822c833d1372bdd62dcc3400a529ac107fabe99a.zip |
initfile.cc: improve accuracy of crawl_base variable
Windows, Mac OS X and Linux all provide handy ways to retrieve
the absolute path of the running executable. This is especially
useful since argv[0] can be a relative path.
This fixes a bug on the Mac OS X build where the app cannot
locate the graphics resources when when they're needed, so the
application bombs out instead.
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Diffstat (limited to 'crawl-ref/README.txt')
0 files changed, 0 insertions, 0 deletions