Update Settings Shell.

This commit is contained in:
Bruce
2025-11-29 23:02:15 +08:00
parent cf50b09bf0
commit 5796fb40e1
41 changed files with 515 additions and 383 deletions
+5
View File
@@ -925,6 +925,11 @@ public ref class _I_Path
void set (String ^dir) { SetCurrentDirectoryW (MPStringToStdW (dir).c_str ()); }
}
property String ^Program { String ^get () { return CStringToMPString (GetCurrentProgramPathW ()); } }
property String ^Root { String ^get () {
std::wstring program = GetCurrentProgramPathW ();
std::wstring path = GetFileDirectoryW (program);
return CStringToMPString (GetFileDirectoryW (GetCurrentProgramPathW ()));
}}
String ^Combine (String ^l, String ^r) { return CStringToMPString (CombinePath (MPStringToStdW (l), MPStringToStdW (r))); }
String ^GetName (String ^path)
{