Skip to content

Commit

Permalink
fix: Fix unix pathing
Browse files Browse the repository at this point in the history
  • Loading branch information
shdwmtr committed Dec 20, 2024
1 parent 8817735 commit 07dc66c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/co_initialize/co_stub.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
const std::string GetBootstrapModule(const std::vector<std::string> scriptModules, const uint16_t port)
{
std::string scriptModuleArray;
std::string scriptContents = SystemIO::ReadFileSync((SystemIO::GetSteamPath() / "ext" / "data" / "shims" / "client_api.js").string());
std::string scriptContents = SystemIO::ReadFileSync((SystemIO::GetInstallPath() / "ext" / "data" / "shims" / "client_api.js").string());

if (scriptContents.empty())
{
Expand Down
2 changes: 1 addition & 1 deletion src/core/hooks/web_load.cc
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ static const std::vector<std::string> g_blackListedUrls = {
const std::string WebkitHandler::PatchDocumentContents(std::string requestUrl, std::string original)
{
std::string patched = original;
const std::string webkitPreloadModule = SystemIO::ReadFileSync((SystemIO::GetSteamPath() / "ext" / "data" / "shims" / "webkit_api.js").string());
const std::string webkitPreloadModule = SystemIO::ReadFileSync((SystemIO::GetInstallPath() / "ext" / "data" / "shims" / "webkit_api.js").string());

if (webkitPreloadModule.empty())
{
Expand Down

0 comments on commit 07dc66c

Please sign in to comment.