Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
paolo-projects committed Feb 9, 2022
2 parents f9aaa78 + b78b003 commit ce24b91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/patcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ void Patcher::patchSMC(fs::path name, bool isSharedObj)
{
std::fstream i_file(name, std::ios_base::binary | std::ios_base::out | std::ios_base::in);
if (!i_file.good())
throw PatchException("Couldn't open file %s", name.c_str());
throw PatchException("Couldn't open file %s", name.string().c_str());

long smc_old_memptr = 0;
long smc_new_memptr = 0;
Expand Down Expand Up @@ -415,7 +415,7 @@ void Patcher::patchBase(fs::path name)
logd("GOS Patching: " + name.filename().string());
std::fstream file(name, std::ios_base::binary | std::ios_base::in | std::ios_base::out);
if (!file.good())
throw PatchException("Couldn't open file %s", name.c_str());
throw PatchException("Couldn't open file %s", name.string().c_str());

// Entry to search for in GOS table
// Should work for Workstation 12 - 15...
Expand Down

0 comments on commit ce24b91

Please sign in to comment.