From c8df9af2cdf0cc4d5b845d3200be3ffdb4727e87 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Fri, 4 May 2007 07:11:20 +0000 Subject: Allow Mac users to double-click to launch Crawl: - Use argv[0] to figure out where Crawl lives and where to find data files. The Mac Finder sets the working directory to / and the full path to the executable is available in argv[0] when the user double-clicks. - Converted some of the old char*s to std::string. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1407 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/macro.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/macro.cc') diff --git a/crawl-ref/source/macro.cc b/crawl-ref/source/macro.cc index 4eac355975..b665301499 100644 --- a/crawl-ref/source/macro.cc +++ b/crawl-ref/source/macro.cc @@ -171,7 +171,7 @@ static std::string get_macro_file() { std::string dir = !Options.macro_dir.empty()? Options.macro_dir : - SysEnv.crawl_dir? SysEnv.crawl_dir : ""; + !SysEnv.crawl_dir.empty()? SysEnv.crawl_dir : ""; if (!dir.empty()) { -- cgit v1.2.3-54-g00ecf