aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid Walter Seikel2016-02-06 16:15:39 +1000
committerDavid Walter Seikel2016-02-06 16:15:39 +1000
commit8eaab964a0f5138bf77825acfed1d9f231051c19 (patch)
tree7a80dbf473a9f33ad9cdb2f742131cc16704b3e4
parentSwitch to eina_quaternion, instead of the copy pasted, coz it's hidden, evas_... (diff)
downloadSledjHamr-8eaab964a0f5138bf77825acfed1d9f231051c19.zip
SledjHamr-8eaab964a0f5138bf77825acfed1d9f231051c19.tar.gz
SledjHamr-8eaab964a0f5138bf77825acfed1d9f231051c19.tar.bz2
SledjHamr-8eaab964a0f5138bf77825acfed1d9f231051c19.tar.xz
Create our home directories, if not already created.
-rw-r--r--TODO12
-rwxr-xr-xsrc/LuaSL/build.lua1
-rw-r--r--src/extantz/extantz.c17
-rw-r--r--src/libraries/LumbrJack.c5
4 files changed, 33 insertions, 2 deletions
diff --git a/TODO b/TODO
index 1633dc1..4b23cb8 100644
--- a/TODO
+++ b/TODO
@@ -317,6 +317,18 @@ SOOOO ...
317 For now, we don't care, there's no actual installing going on. 317 For now, we don't care, there's no actual installing going on.
318 SledjHamr/locale -> prefix .. '/share/SledjHamr/locale' 318 SledjHamr/locale -> prefix .. '/share/SledjHamr/locale'
319 319
320 ~/.SledjHamr/
321 Contains an index.omg, and / or a bunch of sim directories / OAR files / etc..
322 ~/.SledjHamr/.downloaded/
323 Contains downloaded sims in their original format, like OAR files.
324 ~/.SledjHamr/.cache/ unpacked/ converted/ sha1/ types/ compiled/
325 Contains various cached stuff that can be deleted at any time.
326 unpacked/ is for anything that's in an archive file, unpack it all in there.
327 converted/ is for anything that is converted to SledjHamr formats, from legacy formats.
328 sha1/ is for the sha1 sums of asset files, and other details?
329 types/ is for storing the types of asset files?
330 compiled/ is for translated and compiled scripts.
331
320 332
321Irrlicht is flickering like crazy. Hmm, might be Irrlicht's fault, 333Irrlicht is flickering like crazy. Hmm, might be Irrlicht's fault,
322mostly it flickers to black, but I've seen it flicker to the first frame 334mostly it flickers to black, but I've seen it flicker to the first frame
diff --git a/src/LuaSL/build.lua b/src/LuaSL/build.lua
index df002f6..dafcf5e 100755
--- a/src/LuaSL/build.lua
+++ b/src/LuaSL/build.lua
@@ -13,7 +13,6 @@ if 'nil' == type(dir) then
13 dir = workingDir 13 dir = workingDir
14end 14end
15 15
16
17removeFiles(dir, {'*.output', '*.backup', 'LuaSL_lexer.h', 'LuaSL_lexer.c', 'LuaSL_lemon_yaccer.h', 'LuaSL_lemon_yaccer.c', 'LuaSL_lemon_yaccer.out'}) 16removeFiles(dir, {'*.output', '*.backup', 'LuaSL_lexer.h', 'LuaSL_lexer.c', 'LuaSL_lemon_yaccer.h', 'LuaSL_lemon_yaccer.c', 'LuaSL_lemon_yaccer.out'})
18 17
19-- Build and run lemon first, flex depends on it to define the symbol values. 18-- Build and run lemon first, flex depends on it to define the symbol values.
diff --git a/src/extantz/extantz.c b/src/extantz/extantz.c
index f2c0a43..7a21aee 100644
--- a/src/extantz/extantz.c
+++ b/src/extantz/extantz.c
@@ -15,6 +15,18 @@ globals ourGlobals;
15//static char *myKey = "12345678-1234-4321-abcd-0123456789ab"; 15//static char *myKey = "12345678-1234-4321-abcd-0123456789ab";
16//static char *myName = "onefang rejected"; 16//static char *myName = "onefang rejected";
17 17
18static const char *dirs[] =
19{
20 ".cache",
21 ".cache/compiled",
22 ".cache/converted",
23 ".cache/sha1",
24 ".cache/types",
25 ".cache/unpacked",
26 ".download",
27 "inventory",
28 NULL
29};
18 30
19 31
20#if USE_LOVE 32#if USE_LOVE
@@ -586,10 +598,15 @@ static Eina_Bool _makeSkang(void *data)
586EAPI_MAIN int elm_main(int argc, char **argv) 598EAPI_MAIN int elm_main(int argc, char **argv)
587{ 599{
588 GLData *gld = NULL; 600 GLData *gld = NULL;
601 char temp[PATH_MAX];
589// Eina_Bool gotWebKit = elm_need_web(); // Initialise ewebkit if it exists, or return EINA_FALSE if it don't. 602// Eina_Bool gotWebKit = elm_need_web(); // Initialise ewebkit if it exists, or return EINA_FALSE if it don't.
590 603
591 logDom = HamrTime(argv[0], elm_main, logDom); 604 logDom = HamrTime(argv[0], elm_main, logDom);
592 605
606 // Create our home directories, if not already created.
607 sprintf(temp, "%s/.SledjHamr", eina_environment_home_get());
608 ecore_file_mksubdirs(temp, dirs);
609
593 /* Set the locale according to the system pref. 610 /* Set the locale according to the system pref.
594 * If you don't do so the file selector will order the files list in 611 * If you don't do so the file selector will order the files list in
595 * a case sensitive manner 612 * a case sensitive manner
diff --git a/src/libraries/LumbrJack.c b/src/libraries/LumbrJack.c
index 3bb67e9..b92dc97 100644
--- a/src/libraries/LumbrJack.c
+++ b/src/libraries/LumbrJack.c
@@ -10,7 +10,6 @@
10static char dateTime[DATE_TIME_LEN]; 10static char dateTime[DATE_TIME_LEN];
11static Eina_Prefix *prefix = NULL; 11static Eina_Prefix *prefix = NULL;
12 12
13
14int HamrTime(char *argv0, void *main, int logDom) 13int HamrTime(char *argv0, void *main, int logDom)
15{ 14{
16 Eina_Array *path; 15 Eina_Array *path;
@@ -47,6 +46,10 @@ int HamrTime(char *argv0, void *main, int logDom)
47// PD("The data files are in %s", eina_prefix_data_get(prefix)); 46// PD("The data files are in %s", eina_prefix_data_get(prefix));
48// PD("The libraries are in %s", eina_prefix_lib_get(prefix)); 47// PD("The libraries are in %s", eina_prefix_lib_get(prefix));
49// PD("The locale files are in %s", eina_prefix_locale_get(prefix)); 48// PD("The locale files are in %s", eina_prefix_locale_get(prefix));
49// TODO - ecore_file_escape_name(const char *filename) might also be useful.
50// EFL doesn't seem to support links under Windows. Though apparently Windows itself has something similar.
51// PD("The HOME directory is %s", eina_environment_home_get());
52// PD("The TMP directory is %s", eina_environment_tmp_get());
50 53
51 getcwd(cwd, PATH_MAX); 54 getcwd(cwd, PATH_MAX);
52 env = getenv("LUA_CPATH"); 55 env = getenv("LUA_CPATH");