From 7f27325ce1adb31c3fa54f4b41c96f30d115d93e Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Sun, 25 Sep 2022 22:40:30 +0800 Subject: [PATCH] [refactor]remove warning --- Runtime/Internal/Utilities/ChartHelper.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Runtime/Internal/Utilities/ChartHelper.cs b/Runtime/Internal/Utilities/ChartHelper.cs index 63025ade..d1c5f7a9 100644 --- a/Runtime/Internal/Utilities/ChartHelper.cs +++ b/Runtime/Internal/Utilities/ChartHelper.cs @@ -935,7 +935,7 @@ namespace XCharts.Runtime Download(base64str, fileName); Debug.Log("SaveAsImage: download by brower:" + fileName); return tex; -#endif +#else if (string.IsNullOrEmpty(path)) { var dir = Application.persistentDataPath + "/SavedImage"; @@ -953,6 +953,7 @@ namespace XCharts.Runtime System.IO.File.WriteAllBytes(path, bytes); Debug.Log("SaveAsImage:" + path); return tex; +#endif } } } \ No newline at end of file