blob: 918a4794fb379d5e74e8f0319b17a5114ed41ee7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
using System.IO;
using AppFW = Tizen.Applications;
namespace Xamarin.Forms.Platform.Tizen
{
internal static class ResourcePath
{
public static string GetPath(string res)
{
if (Path.IsPathRooted(res))
{
return res;
}
AppFW.Application app = AppFW.Application.Current;
if (app != null)
{
string resPath = app.DirectoryInfo.Resource + res;
if (File.Exists(resPath))
{
return resPath;
}
}
return res;
}
}
}
|