diff --git a/engine/Engine.cpp b/engine/Engine.cpp index 028b468a..66dac0b8 100644 --- a/engine/Engine.cpp +++ b/engine/Engine.cpp @@ -586,6 +586,11 @@ Engine* Engine::self() return s_self; } +const char* Engine::pathSeparator() +{ + return PATH_SEP; +} + String Engine::configFile(const char* name) { return s_cfgpath + PATH_SEP + name + s_cfgsuffix; diff --git a/yatengine.h b/yatengine.h index fb5db2c8..55340e03 100644 --- a/yatengine.h +++ b/yatengine.h @@ -672,10 +672,15 @@ public: inline static String& moduleSuffix() { return s_modsuffix; } + /** + * The operating system specific path element separator + */ + static const char* pathSeparator(); + /** * The global configuration of the engine. * You must use this resource with caution. - * Note that sections [general] [modules] [preload] and [postload] are + * Note that sections [general], [modules], [preload] and [postload] are * reserved by the engine. Also [telephony] is reserved by the drivers. * @return A reference to the read-only engine configuration */