mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-19 06:31:26 +02:00
Set shortcut working directory, see a17a2fe
This commit is contained in:
@@ -304,6 +304,7 @@ bool Client::DoInstallation()
|
||||
if (CoCreateInstance(CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER, IID_IShellLinkW, (LPVOID *)&shellLink) != S_OK)
|
||||
goto finalise;
|
||||
shellLink->SetPath(Platform::WinWiden(currentfilename).c_str());
|
||||
shellLink->SetWorkingDirectory(Platform::WinWiden(AppDataPath).c_str());
|
||||
shellLink->SetDescription(L"The Powder Toy");
|
||||
if (shellLink->QueryInterface(IID_IPersistFile, (LPVOID *)&shellLinkPersist) != S_OK)
|
||||
goto finalise;
|
||||
|
Reference in New Issue
Block a user