blob: b36787272d0c28e398e9b49df53f15d4fcd6251b (
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
{
public 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;
}
}
}
|