Skip to content

Commit

Permalink
Merge pull request #59 from PenguLoader/dev
Browse files Browse the repository at this point in the history
Fixed command line bug in live server
  • Loading branch information
nomi-san committed Apr 18, 2023
2 parents eed95c5 + 2bf0099 commit a983392
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions core/src/browser/browser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,6 @@ static void CEF_CALLBACK Hooked_OnBeforeCommandLineProcessing(
CefScopedStr rc_token{ command_line->get_switch_value(command_line, &"riotclient-auth-token"_s) };
SetRiotClientCredentials(rc_port.cstr(), rc_token.cstr());

// Keep Riot's command lines.
Old_OnBeforeCommandLineProcessing(self, process_type, command_line);

// Extract args string.
auto args = CefScopedStr{ command_line->get_command_line_string(command_line) }.cstr();

Expand All @@ -240,6 +237,8 @@ static void CEF_CALLBACK Hooked_OnBeforeCommandLineProcessing(
command_line->reset(command_line);
command_line->init_from_string(command_line, &CefStr(args));

Old_OnBeforeCommandLineProcessing(self, process_type, command_line);

auto sPort = config::getConfigValue(L"RemoteDebuggingPort");
REMOTE_DEBUGGING_PORT = wcstol(sPort.c_str(), NULL, 10);
if (REMOTE_DEBUGGING_PORT != 0) {
Expand Down
4 changes: 2 additions & 2 deletions loader/Version.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ static class Version
{
public const string VERSION =
#endif
"1.0.2"
"1.0.3"
#if !__cplusplus
;
public const int BUILD_NUMBER = 1000;
public const int BUILD_NUMBER = 1449;
}
}
#endif

0 comments on commit a983392

Please sign in to comment.