Skip to content

Commit

Permalink
use common config for ps4 ip
Browse files Browse the repository at this point in the history
  • Loading branch information
ate47 committed Aug 15, 2024
1 parent a2cd7d4 commit c4ef861
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/acts/tools/bo6/bo6ps4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ namespace {


std::wstring gscPath = utils::StrToWStr(core::config::GetString("ui.bo6.path", ""));
std::wstring ps4Path = utils::StrToWStr(core::config::GetString("ui.bo6.ps4", ""));
std::wstring ps4Path = utils::StrToWStr(core::config::GetString("ui.ps4.ipd", ""));
std::wstring cbufcfg = utils::StrToWStr(core::config::GetString("ui.bo6.cbuf", ""));
SendMessage(info.filePathEdit, WM_SETTEXT, (WPARAM)0, (LPARAM)gscPath.c_str());
SendMessage(info.ps4Edit, WM_SETTEXT, (WPARAM)0, (LPARAM)ps4Path.c_str());
Expand All @@ -827,7 +827,7 @@ namespace {
wchar_t path[MAX_PATH + 1];

if (SUCCEEDED(GetWindowText(info.ps4Edit, &path[0], ARRAYSIZE(path)))) {
core::config::SetString("ui.bo6.ps4", utils::WStrToStr(path));
core::config::SetString("ui.ps4.ipd", utils::WStrToStr(path));
core::config::SaveConfig();
}
}
Expand Down Expand Up @@ -873,7 +873,7 @@ namespace {
std::string ps4Path = utils::WStrToStr(tool::ui::GetWindowTextVal(info.ps4Edit));

core::config::SetString("ui.bo6.path", filePath);
core::config::SetString("ui.bo6.ps4", ps4Path);
core::config::SetString("ui.ps4.ipd", ps4Path);
core::config::SaveConfig();
try {
SetNotif("");
Expand Down

0 comments on commit c4ef861

Please sign in to comment.