diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-10-21 06:13:36 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-10-21 06:13:36 +0400 |
commit | ef218c75edf975b2f3946bd16194cc9679dd2d31 (patch) | |
tree | ebe5b13ae6b11fb126c4143fecf3ed46ce5ad827 /source/gameengine/GamePlayer | |
parent | 9ec0ea91f02b312ecce8c7b6754db54ce9ba8a1a (diff) |
- add convenience functions BLI_split_dir_part / BLI_split_file_part, which just call BLI_split_dirfile().
- add a fixed value for bprogdir (the dir of bprogname), since it was being used for resource lookups.
Diffstat (limited to 'source/gameengine/GamePlayer')
-rw-r--r-- | source/gameengine/GamePlayer/ghost/GPG_ghost.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp b/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp index ea17b9adcfd..78ea2aac8ce 100644 --- a/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp +++ b/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp @@ -117,6 +117,7 @@ const int kMinWindowWidth = 100; const int kMinWindowHeight = 100; char bprogname[FILE_MAX]; +char bprogdir[FILE_MAX]; static void mem_error_cb(const char *errorStr) { @@ -380,6 +381,7 @@ int main(int argc, char** argv) #endif /* __alpha__ */ #endif /* __linux__ */ BLI_where_am_i(bprogname, sizeof(bprogname), argv[0]); + BLI_split_dir_part(bprogname, bprogdir, sizeof(bprogdir)); #ifdef __APPLE__ // Can't use Carbon right now because of double defined type ID (In Carbon.h and DNA_ID.h, sigh) /* |