From 195cc9c6a647a98cf0f8c760867233dfa2479357 Mon Sep 17 00:00:00 2001 From: Andrea Weikert Date: Wed, 5 Jan 2011 14:00:14 +0000 Subject: ToDo: long outstanding patch to allow access to system paths in background mode Thanks Damien Plisson for contributing the Carbon and Cocoa implementation --- source/blender/windowmanager/intern/wm_init_exit.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/blender/windowmanager') 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(); -- cgit v1.2.3