Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Weikert <elubie@gmx.net>2011-01-05 17:00:14 +0300
committerAndrea Weikert <elubie@gmx.net>2011-01-05 17:00:14 +0300
commit195cc9c6a647a98cf0f8c760867233dfa2479357 (patch)
tree443d8897353f6ac55912169c2307574d6d169942 /source/blender/windowmanager
parent8e29c7b76f23028e679e7dc97c90eba795604b5d (diff)
ToDo: long outstanding patch to allow access to system paths in background mode
Thanks Damien Plisson for contributing the Carbon and Cocoa implementation
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_init_exit.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_init_exit.c b/source/blender/windowmanager/intern/wm_init_exit.c
index 7eefacca2c6..89a7598038a 100644
--- a/source/blender/windowmanager/intern/wm_init_exit.c
+++ b/source/blender/windowmanager/intern/wm_init_exit.c
@@ -68,6 +68,7 @@
#ifdef WITH_GAMEENGINE
#include "SYS_System.h"
#endif
+#include "GHOST_Path-api.h"
#include "RNA_define.h"
@@ -118,6 +119,8 @@ void WM_init(bContext *C, int argc, char **argv)
wm_ghost_init(C); /* note: it assigns C to ghost! */
wm_init_cursor_data();
}
+ GHOST_CreateSystemPaths();
+
wm_operatortype_init();
set_free_windowmanager_cb(wm_close_and_free); /* library.c */
@@ -443,6 +446,9 @@ void WM_exit(bContext *C)
#ifdef WITH_GAMEENGINE
SYS_DeleteSystem(SYS_GetSystem());
#endif
+
+ GHOST_DisposeSystemPaths();
+
if(MEM_get_memory_blocks_in_use()!=0) {
printf("Error Totblock: %d\n", MEM_get_memory_blocks_in_use());
MEM_printmemlist();