개정판 d0eda156
issue #1001 사용자가 썸네일 크기를 수정했을때 ini에 저장
Change-Id: I9e1815addeb2a79811390479bfafae78d86cff98
CommonLib/Common.cs | ||
---|---|---|
14 | 14 |
[DllImport("kernel32")] |
15 | 15 |
private static extern int GetPrivateProfileString(string section, string key, string def, StringBuilder retVal, int size, string filePath); |
16 | 16 |
|
17 |
[DllImport("kernel32")] |
|
18 |
private static extern long WritePrivateProfileString(string section, string key, string val, string filePath); |
|
19 |
|
|
17 | 20 |
public static string AppDataFolder |
18 | 21 |
{ |
19 | 22 |
get |
... | ... | |
37 | 40 |
} |
38 | 41 |
|
39 | 42 |
/// <summary> |
43 |
/// Client 에 설치된 MARKUS.ini 를 참조. |
|
44 |
/// </summary> |
|
45 |
/// <param name="section"></param> |
|
46 |
/// <param name="key"></param> |
|
47 |
/// <param name="def"></param> |
|
48 |
/// <returns></returns> |
|
49 |
public static void WriteConfigString(string section, string key, string value) |
|
50 |
{ |
|
51 |
WritePrivateProfileString(section, key, value, Path.Combine(AppDataFolder, "MARKUS.ini")); |
|
52 |
} |
|
53 |
|
|
54 |
/// <summary> |
|
40 | 55 |
/// isExternal 이 True 이면 Internal IP를 External 로 치환하여 Return |
41 | 56 |
/// </summary> |
42 | 57 |
/// <param name="section"></param> |
내보내기 Unified diff