Skip to content
This repository was archived by the owner on Sep 7, 2022. It is now read-only.

Commit 6b14f2c

Browse files
authored
Merge pull request #150 from Unity-Technologies/zxw/fix_missing_api_crash
temporary fix on editor crash (2019.4.26f1c1)
2 parents d1d75cf + e2e0c1e commit 6b14f2c

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

engine/src/shell/platform/unity/android/uiwidgets_system.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ class UIWidgetsSystem {
3030

3131
void PostTaskToGfxWorker(const fml::closure& task);
3232
void printf_console(const char* log, ...) {
33-
va_list vl;
33+
/*va_list vl;
3434
va_start(vl, log);
3535
// TODO: error in __android_log_vprint -> vsnprintf -> __vfprintf -> strlen_a
3636
// unity_uiwidgets_->printf_consolev(log, vl);
37-
va_end(vl);
37+
va_end(vl);*/
3838
}
3939

4040
void BindUnityInterfaces(IUnityInterfaces* unity_interfaces);

engine/src/shell/platform/unity/darwin/ios/uiwidgets_system.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ class UIWidgetsSystem {
2929

3030
void PostTaskToGfxWorker(const fml::closure& task);
3131
void printf_console(const char* log, ...) {
32-
va_list vl;
32+
/*va_list vl;
3333
va_start(vl, log);
3434
unity_uiwidgets_->printf_consolev(log, vl);
35-
va_end(vl);
35+
va_end(vl);*/
3636
}
3737

3838
void BindUnityInterfaces(IUnityInterfaces* unity_interfaces);

engine/src/shell/platform/unity/darwin/macos/uiwidgets_system.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ class UIWidgetsSystem {
2929

3030
void PostTaskToGfxWorker(const fml::closure& task);
3131
void printf_console(const char* log, ...) {
32-
va_list vl;
32+
/*va_list vl;
3333
va_start(vl, log);
3434
unity_uiwidgets_->printf_consolev(log, vl);
35-
va_end(vl);
35+
va_end(vl);*/
3636
}
3737

3838
void BindUnityInterfaces(IUnityInterfaces* unity_interfaces);

engine/src/shell/platform/unity/windows/uiwidgets_system.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ class UIWidgetsSystem {
2929

3030
void PostTaskToGfxWorker(const fml::closure& task);
3131
void printf_console(const char* log, ...) {
32-
va_list vl;
32+
/*va_list vl;
3333
va_start(vl, log);
3434
unity_uiwidgets_->printf_consolev(log, vl);
35-
va_end(vl);
35+
va_end(vl);*/
3636
}
3737

3838
void BindUnityInterfaces(IUnityInterfaces* unity_interfaces);

engine/third_party/Unity/IUnityUIWidgets.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ UNITY_DECLARE_INTERFACE(IUnityUIWidgets) {
2020
virtual void SetWakeUpCallback(VoidCallback callback) = 0;
2121
virtual void IssuePluginEventAndData(UnityRenderingEventAndData callback,
2222
int eventId, void* data) = 0;
23-
virtual void printf_consolev(const char* log, va_list alist) = 0;
23+
//TODO zxw: this API is not provided in 2019.4.26f1c1 due to a mistake :(
24+
//we should consider adding it back later (remember to enable all callers too)
25+
//virtual void printf_consolev(const char* log, va_list alist) = 0;
2426
};
2527
} // namespace UnityUIWidgets
2628

0 commit comments

Comments
 (0)