diff --git a/bind/lua b/bind/lua index 3bf94b9..f8e0890 100644 Binary files a/bind/lua and b/bind/lua differ diff --git a/depot b/depot index 282e374..15cce74 160000 --- a/depot +++ b/depot @@ -1 +1 @@ -Subproject commit 282e37498918ba7a1e03c96f0f0156bd1dc0b047 +Subproject commit 15cce740439eda67c945f9d4354e2868340a567e diff --git a/engine/joint/v4k.h b/engine/joint/v4k.h index ca34c26..4b72d2e 100644 --- a/engine/joint/v4k.h +++ b/engine/joint/v4k.h @@ -605829,7 +605829,7 @@ void* window_handle() { void window_reload() { // @todo: save_on_exit(); fflush(0); - chdir(app_path()); + // chdir(app_path()); execv(__argv[0], __argv); exit(0); } @@ -607208,7 +607208,7 @@ void v4k_init() { tty_init(); // chdir to root (if invoked as tcc -g -run) - chdir(app_path()); + // chdir(app_path()); // skip tcc argvs (if invoked as tcc file.c v4k.c -g -run) (win) if( __argc > 1 ) if( strstr(__argv[0], "/tcc") || strstr(__argv[0], "\\tcc") ) { diff --git a/engine/split/v4k_main.c b/engine/split/v4k_main.c index 911a863..b9f96ec 100644 --- a/engine/split/v4k_main.c +++ b/engine/split/v4k_main.c @@ -80,7 +80,7 @@ void v4k_init() { tty_init(); // chdir to root (if invoked as tcc -g -run) - chdir(app_path()); + // chdir(app_path()); // skip tcc argvs (if invoked as tcc file.c v4k.c -g -run) (win) if( __argc > 1 ) if( strstr(__argv[0], "/tcc") || strstr(__argv[0], "\\tcc") ) { diff --git a/engine/split/v4k_window.c b/engine/split/v4k_window.c index 11efedf..83fcb73 100644 --- a/engine/split/v4k_window.c +++ b/engine/split/v4k_window.c @@ -876,7 +876,7 @@ void* window_handle() { void window_reload() { // @todo: save_on_exit(); fflush(0); - chdir(app_path()); + // chdir(app_path()); execv(__argv[0], __argv); exit(0); } diff --git a/engine/v4k.c b/engine/v4k.c index da5ed51..6d74c06 100644 --- a/engine/v4k.c +++ b/engine/v4k.c @@ -23998,7 +23998,7 @@ void* window_handle() { void window_reload() { // @todo: save_on_exit(); fflush(0); - chdir(app_path()); + // chdir(app_path()); execv(__argv[0], __argv); exit(0); } @@ -25377,7 +25377,7 @@ void v4k_init() { tty_init(); // chdir to root (if invoked as tcc -g -run) - chdir(app_path()); + // chdir(app_path()); // skip tcc argvs (if invoked as tcc file.c v4k.c -g -run) (win) if( __argc > 1 ) if( strstr(__argv[0], "/tcc") || strstr(__argv[0], "\\tcc") ) { diff --git a/v4k.sublime-project b/v4k.sublime-project index a4cdce2..e8471f4 100644 --- a/v4k.sublime-project +++ b/v4k.sublime-project @@ -4,7 +4,7 @@ { "path": ".", "file_exclude_patterns": ["*.zip", "*.ilk", "*.exp"], - "index_exclude_patterns": ["engine/joint/v4k.h", "engine/v4k.h", "engine/v4k.c"] + "index_exclude_patterns": ["engine/joint/v4k.h", "engine/v4k.h", "engine/v4k.c", "_mirror/**"] } ], "settings": {