diff options
author | Vincent Torri <vincent.torri@gmail.com> | 2019-09-04 16:39:02 +0100 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2019-09-04 16:44:56 +0100 |
commit | 0021d1386d5828e1bd2b857a2f073327902df817 (patch) | |
tree | b274cb6c5c4e7ef5770ab9431b00b3011389dcd4 | |
parent | 4e379f5db4861301b77bf945f7365cb0faa04feb (diff) |
fix parsing module path on Windows
Summary: only '/' path separator is used while on Windows it can also be '\\'. Fix rage and emotion_test play of videos
Test Plan: emotion_test plays videos while it didn't before this patch
Reviewers: raster, cedric, zmike
Reviewed By: raster
Subscribers: #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D9837
-rw-r--r-- | src/lib/emotion/emotion_modules.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/emotion/emotion_modules.c b/src/lib/emotion/emotion_modules.c index da665e7aa4..22e6994e4b 100644 --- a/src/lib/emotion/emotion_modules.c +++ b/src/lib/emotion/emotion_modules.c | |||
@@ -335,7 +335,12 @@ _find_mod(const char *name) | |||
335 | p > path; | 335 | p > path; |
336 | p--) | 336 | p--) |
337 | { | 337 | { |
338 | if (*p == '/') | 338 | if ((*p == '/') |
339 | /* FIXME : find a better way to handle Windows path in all the EFL */ | ||
340 | #ifdef _WIN32 | ||
341 | || (*p == '\\') | ||
342 | #endif | ||
343 | ) | ||
339 | { | 344 | { |
340 | found++; | 345 | found++; |
341 | // found == 1 -> p = /module.* | 346 | // found == 1 -> p = /module.* |