From 9afdb3e0ad5bfbdafe307212f5d4ebcc7c3ac852 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Sat, 15 Feb 2014 02:01:39 -0300 Subject: -fixed bug in Button now exporting font property -made GUI Theme editor usable -editor does not allow to export or create .pck in the same path as a project -changed .pck format (lacked support for versioning so couldn't change it), previous was causing crashes and is now incompatible, just re-export. -will not look for .pck files recursively, was causing unexpected behaviors -fixed execution of Godot in paths with non unicode characters in Windows, OSX and Linux. --- drivers/unix/os_unix.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'drivers/unix/os_unix.cpp') diff --git a/drivers/unix/os_unix.cpp b/drivers/unix/os_unix.cpp index f684c63b3b..399d0247fc 100644 --- a/drivers/unix/os_unix.cpp +++ b/drivers/unix/os_unix.cpp @@ -394,7 +394,8 @@ String OS_Unix::get_executable_path() const { memset(buf,0,256); readlink("/proc/self/exe", buf, sizeof(buf)); //print_line("Exec path is:"+String(buf)); - String b = buf; + String b; + b.parse_utf8(buf); if (b=="") { WARN_PRINT("Couldn't get executable path from /proc/self/exe, using argv[0]"); return OS::get_executable_path(); -- cgit v1.2.3