Skip to content

Commit

Permalink
Simplify append parameter logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bush2021 committed Oct 17, 2023
2 parents 50e04e7 + 34bb9db commit c61ed52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/portable.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ std::wstring GetCommand(LPWSTR param)
{
args.push_back(L"--portable");

args.push_back(L"--disable-features=RendererCodeIntegrity");

{
auto userdata = GetUserDataDir();

Expand All @@ -97,6 +95,8 @@ std::wstring GetCommand(LPWSTR param)
args.push_back(temp);
}

args.push_back(L"--disable-features=RendererCodeIntegrity");

// 获取命令行,然后追加参数
// 如果存在 = 号,参数会被识别成值
// 修改方法是截取拆分,然后多次 args.push_back
Expand Down

0 comments on commit c61ed52

Please sign in to comment.