Create library cache directory.

This commit is contained in:
leo 2013-01-12 21:46:28 +00:00
parent 74e52034ad
commit b2cbf56ecc
2 changed files with 3 additions and 1 deletions

View file

@ -11,7 +11,7 @@
#include <ctype.h>
#include <locale.h>
#define LC_LIBRARY_CACHE_VERSION 0x0100
#define LC_LIBRARY_CACHE_VERSION 0x0101
#define LC_LIBRARY_CACHE_ARCHIVE 0x0001
#define LC_LIBRARY_CACHE_DIRECTORY 0x0002

View file

@ -12,6 +12,7 @@
#include <pwd.h>
#include <unistd.h>
#include <string.h>
#include <sys/stat.h>
#include "opengl.h"
#include "project.h"
#include "toolbar.h"
@ -586,6 +587,7 @@ int main (int argc, char* argv[])
char cache_path[LC_MAXPATH];
sprintf(cache_path, "%s/leocad/", g_get_user_cache_dir());
mkdir(cache_path, S_IRWXU | S_IRWXG);
if (!g_App->Initialize(argc, argv, lib_path, cache_path))
return 1;