We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9afc077 commit 17c5eceCopy full SHA for 17c5ece
main.cpp
@@ -1,7 +1,6 @@
1
#include <iostream>
2
#include <fstream>
3
#include <string>
4
-#include <string_view>
5
#include <filesystem>
6
7
const uint32_t PatchOffset = 0x2A7;
@@ -36,7 +35,9 @@ std::string GetNewPath(const std::string& filePath) {
36
35
std::string directory = path.parent_path().string();
37
std::string defaultSeperator = "";
38
std::string separator;
39
- if (!directory.empty())
+ if (directory.empty())
+ separator = defaultSeperator;
40
+ else
41
separator = std::filesystem::path::preferred_separator;
42
return directory + separator + fileName + "_patched.exe";
43
}
0 commit comments