From: 최종헌/Common Platform Lab(SR)/Engineer/삼성전자 Date: Mon, 11 May 2020 00:46:23 +0000 (+0900) Subject: Hide the preload path from the dlog (#229) X-Git-Tag: submit/tizen/20200528.002636~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=00b8cc4120b70b7b872b1ec1ff5ec45829315b0b;p=platform%2Fcore%2Fdotnet%2Flauncher.git Hide the preload path from the dlog (#229) Change-Id: Ie3cfb0f8b17d12d238921ff03b2e1f02bad7f7f9 --- diff --git a/Managed/Tizen.Runtime/Preloader.cs b/Managed/Tizen.Runtime/Preloader.cs index 9965caf..f523fc1 100644 --- a/Managed/Tizen.Runtime/Preloader.cs +++ b/Managed/Tizen.Runtime/Preloader.cs @@ -30,12 +30,13 @@ namespace Tizen.Runtime Array.Sort(paths); foreach (string path in paths) { + string fileName = Path.GetFileName(path); // ex) Tizen.preload / 0A.Tizen.preload / A0.Tizen.preload / .0.Tizen.preload / .00.Tizen.preload - if (!char.IsNumber(Path.GetFileName(path), 0) || !char.IsNumber(Path.GetFileName(path), 1)) + if (!char.IsNumber(fileName, 0) || !char.IsNumber(fileName, 1)) continue; // ex) 000.Tizen.preload / 0.Tizen.preload - if (Path.GetFileName(path).IndexOf('.') != 2) + if (fileName.IndexOf('.') != 2) continue; try @@ -95,7 +96,7 @@ namespace Tizen.Runtime } finally { - Console.WriteLine("Success to preload : " + path); + Console.WriteLine("Success to preload : " + fileName); } }