diff options
| author | Rémi Verschelde | 2017-01-13 18:25:43 +0100 |
|---|---|---|
| committer | Rémi Verschelde | 2017-01-13 18:25:49 +0100 |
| commit | d2aae675e92cbe99706564e2cffbc34ed7cea639 (patch) | |
| tree | 50258eae35ba32516ac4b7359fab0b39005d3133 /core/os/os.cpp | |
| parent | de8cc309d66641d52a6832ad65f26ce73378fb88 (diff) | |
| download | godot-d2aae675e92cbe99706564e2cffbc34ed7cea639.tar.gz godot-d2aae675e92cbe99706564e2cffbc34ed7cea639.tar.zst godot-d2aae675e92cbe99706564e2cffbc34ed7cea639.zip | |
Diffstat (limited to 'core/os/os.cpp')
| -rw-r--r-- | core/os/os.cpp | 29 |
1 files changed, 4 insertions, 25 deletions
diff --git a/core/os/os.cpp b/core/os/os.cpp index db7b7cb94..f4c13dabc 100644 --- a/core/os/os.cpp +++ b/core/os/os.cpp @@ -27,13 +27,13 @@ /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /*************************************************************************/ #include "os.h" -#include "os/file_access.h" -#include <stdarg.h> + #include "dir_access.h" #include "globals.h" #include "input.h" -// For get_engine_version, could be removed if it's moved to a new Engine singleton -#include "version.h" +#include "os/file_access.h" + +#include <stdarg.h> OS* OS::singleton=NULL; @@ -512,27 +512,6 @@ bool OS::is_vsync_enabled() const{ return true; } -Dictionary OS::get_engine_version() const { - - Dictionary dict; - dict["major"] = _MKSTR(VERSION_MAJOR); - dict["minor"] = _MKSTR(VERSION_MINOR); -#ifdef VERSION_PATCH - dict["patch"] = _MKSTR(VERSION_PATCH); -#else - dict["patch"] = ""; -#endif - dict["status"] = _MKSTR(VERSION_STATUS); - dict["revision"] = _MKSTR(VERSION_REVISION); - - String stringver = String(dict["major"]) + "." + String(dict["minor"]); - if (dict["patch"] != "") - stringver += "." + String(dict["patch"]); - stringver += "-" + String(dict["status"]) + " (" + String(dict["revision"]) + ")"; - dict["string"] = stringver; - - return dict; -} OS::OS() { last_error=NULL; |
