mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 16:21:05 +02:00
Merge pull request #15733 from luiscuenca/addLocalScripts
Load simplifiedUI using the windows launcher
This commit is contained in:
commit
acdc5e718d
9 changed files with 1302 additions and 1299 deletions
|
@ -223,6 +223,8 @@ BOOL LauncherManager::launchApplication(const CString& tokensJSON) {
|
|||
LauncherManager::getAndCreatePaths(PathType::Interface_Directory, installDir);
|
||||
CString interfaceExe = installDir + _T("\\interface.exe");
|
||||
CString params1 = _T("--url \"") + _domainURL + ("\" ");
|
||||
CString scriptsURL = installDir + _T("\\scripts\\simplifiedUI");
|
||||
CString params2 = _T("--scripts \"") + scriptsURL + ("\" ");
|
||||
CString cacheDir;
|
||||
LauncherManager::getAndCreatePaths(PathType::Content_Directory, cacheDir);
|
||||
CString params3 = _T("--cache \"") + cacheDir + ("\" ");
|
||||
|
@ -230,7 +232,8 @@ BOOL LauncherManager::launchApplication(const CString& tokensJSON) {
|
|||
CString parsedTokens = tokensJSON;
|
||||
parsedTokens.Replace(_T("\""), _T("\\\""));
|
||||
CString params5 = !tokensJSON.IsEmpty() ? _T("--tokens \"") + parsedTokens + ("\"") : _T("");
|
||||
CString params = params1 + params3 + params4 + params5 + EXTRA_PARAMETERS;
|
||||
CString params = params1 + params2 + params3 + params4 + params5 + EXTRA_PARAMETERS;
|
||||
|
||||
auto rs = ShellExecute(NULL, L"open", interfaceExe, params, NULL, SW_SHOW);
|
||||
return (rs != NULL);
|
||||
}
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 17 KiB |
Loading…
Reference in a new issue