Make new CheckVer & GetEN compatible with linux

This commit is contained in:
Tixx
2025-06-29 10:07:34 +02:00
parent 7bef6f35c2
commit f7d3fcf925
3 changed files with 8 additions and 4 deletions

View File

@@ -232,9 +232,9 @@ void LegitimacyCheck() {
}
#endif
}
std::string CheckVer(const beammp_fs_string& dir) {
std::string CheckVer(const std::filesystem::path& dir) {
std::string temp;
beammp_fs_string Path = dir + beammp_wide("\\integrity.json");
std::filesystem::path Path = dir / beammp_wide("integrity.json");
std::ifstream f(Path.c_str(), std::ios::binary);
int Size = int(std::filesystem::file_size(Path));
std::string vec(Size, 0);