mirror of
https://github.com/leozide/leocad
synced 2024-11-17 07:47:55 +01:00
Create library cache directory.
This commit is contained in:
parent
74e52034ad
commit
b2cbf56ecc
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue