diff --git a/external/etk b/external/etk index 10d51168..a06aee64 160000 --- a/external/etk +++ b/external/etk @@ -1 +1 @@ -Subproject commit 10d5116851d51facbae446ad00b7de535c3b58ef +Subproject commit a06aee64cc8f05ee33e51f9299c66f17960ff121 diff --git a/sources/ewol/context/IOs/Context.cpp b/sources/ewol/context/IOs/Context.cpp index f5eaaa02..90f9278e 100644 --- a/sources/ewol/context/IOs/Context.cpp +++ b/sources/ewol/context/IOs/Context.cpp @@ -247,7 +247,7 @@ int ewol::run(ewol::context::Application* _application, int _argc, const char *_ // Creat and relaese ewol::Context interface: void IOs::createInterface() { - etk::setArgZero(l_argv[0]); + etk::init(l_argc, l_argv); EWOL_INFO("Create new interface"); interface = new MacOSInterface(l_application, l_argc, l_argv); l_application = nullptr; diff --git a/sources/ewol/context/MacOs/Context.cpp b/sources/ewol/context/MacOs/Context.cpp index c11d8de9..bf1c863f 100644 --- a/sources/ewol/context/MacOs/Context.cpp +++ b/sources/ewol/context/MacOs/Context.cpp @@ -173,7 +173,7 @@ void MacOs::setKeyboardMove(ewol::key::Special& _keyboardMode, enum ewol::key::k * @return std IO */ int ewol::run(ewol::context::Application* _application, int _argc, const char *_argv[]) { - etk::setArgZero(_argv[0]); + etk::init(_argc, _argv); interface = new MacOSInterface(_application, _argc, _argv); if (nullptr == interface) { EWOL_CRITICAL("Can not create the X11 interface ... MEMORY allocation error"); diff --git a/sources/ewol/context/Windows/Context.cpp b/sources/ewol/context/Windows/Context.cpp index 6a207824..c725b89e 100644 --- a/sources/ewol/context/Windows/Context.cpp +++ b/sources/ewol/context/Windows/Context.cpp @@ -478,7 +478,7 @@ class WindowsContext : public ewol::Context { * @return std IO */ int ewol::run(ewol::context::Application* _application, int _argc, const char *_argv[]) { - etk::setArgZero(_argv[0]); + etk::init(_argc, _argv); GLenum err = glewInit(); if (GLEW_OK != err) { // Problem: glewInit failed, something is seriously wrong. diff --git a/sources/ewol/context/X11/Context.cpp b/sources/ewol/context/X11/Context.cpp index 15139f20..d45cb3cf 100644 --- a/sources/ewol/context/X11/Context.cpp +++ b/sources/ewol/context/X11/Context.cpp @@ -1323,7 +1323,7 @@ class X11Interface : public ewol::Context { * @return std IO */ int ewol::run(ewol::context::Application* _application, int _argc, const char *_argv[]) { - etk::setArgZero(_argv[0]); + etk::init(_argc, _argv); X11Interface* interface = new X11Interface(_application, _argc, _argv); if (interface == nullptr) { EWOL_CRITICAL("Can not create the X11 interface ... MEMORY allocation error");