V1.0.0.7 - 2025/12/22

* Database improved all
This commit is contained in:
2025-12-22 12:46:46 +09:00
parent 79fea6964b
commit 0af235eb3d
14 changed files with 642 additions and 364 deletions

View File

@@ -78,6 +78,28 @@ namespace LFP_Manager.Utils
}
#endregion
#region PATH HELPERS
public static string AppDir()
{
var p = Path.GetDirectoryName(Application.ExecutablePath);
return string.IsNullOrEmpty(p) ? AppContext.BaseDirectory : p;
}
public static string CombineApp(params string[] segs)
{
if (segs == null || segs.Length == 0)
return string.Empty;
return Path.Combine(segs);
}
public static string Utf8Z(byte[] bytes)
{
var s = Encoding.UTF8.GetString(bytes ?? new byte[0]);
return s.Trim('\0');
}
#endregion
public static int GetModuleQty(CommConfig aConfig)
{
int mQty = 0;