hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=a247010813ccd5e5b79db6eff81e47b0283b634e

commit a247010813ccd5e5b79db6eff81e47b0283b634e
Author: Mykyta Biliavskyi <m.biliavs...@samsung.com>
Date:   Mon Jun 1 13:24:21 2015 +0000

    Command line arguments: fix ignoring resource pathes.
    
    If application run with command like:
    enventor --id /path/images --fd /path/fonts
    Pathes will be used in application.
    
    @fix
---
 src/bin/main.c | 52 +++++++++++++++++++++++++---------------------------
 1 file changed, 25 insertions(+), 27 deletions(-)

diff --git a/src/bin/main.c b/src/bin/main.c
index 91213bf..3ce2919 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -364,33 +364,31 @@ defaults:
         sprintf(edc_path, "%s", (const char *)tmp_path);
         eina_tmpstr_del(tmp_path);
      }
-   else
-     {
-        char *s = NULL;
-        EINA_LIST_FREE(id, s)
-          {
-             *img_path = eina_list_append(*img_path, eina_stringshare_add(s));
-             free(s);
-          }
-        id = NULL;
-        EINA_LIST_FREE(sd, s)
-          {
-             *snd_path = eina_list_append(*snd_path, eina_stringshare_add(s));
-             free(s);
-          }
-        sd = NULL;
-        EINA_LIST_FREE(fd, s)
-          {
-             *fnt_path = eina_list_append(*fnt_path, eina_stringshare_add(s));
-             free(s);
-          }
-        fd = NULL;
-        EINA_LIST_FREE(dd, s)
-          {
-             *dat_path = eina_list_append(*dat_path, eina_stringshare_add(s));
-             free(s);
-          }
-     }
+
+     char *s = NULL;
+     EINA_LIST_FREE(id, s)
+       {
+          *img_path = eina_list_append(*img_path, eina_stringshare_add(s));
+          free(s);
+       }
+     id = NULL;
+     EINA_LIST_FREE(sd, s)
+       {
+          *snd_path = eina_list_append(*snd_path, eina_stringshare_add(s));
+          free(s);
+       }
+     sd = NULL;
+     EINA_LIST_FREE(fd, s)
+       {
+          *fnt_path = eina_list_append(*fnt_path, eina_stringshare_add(s));
+          free(s);
+       }
+     fd = NULL;
+     EINA_LIST_FREE(dd, s)
+       {
+          *dat_path = eina_list_append(*dat_path, eina_stringshare_add(s));
+          free(s);
+       }
 
    ecore_getopt_list_free(id);
    ecore_getopt_list_free(fd);

-- 


Reply via email to