Compare commits

..

No commits in common. "master" and "v2.5.0" have entirely different histories.

3 changed files with 4 additions and 8 deletions

View File

@ -7,7 +7,7 @@
#pragma once
#include <string>
void PreGame(const beammp_fs_string& GamePath);
std::string CheckVer(const std::filesystem::path& path);
std::string CheckVer(const beammp_fs_string& path);
void InitGame(const beammp_fs_string& Dir);
beammp_fs_string GetGameDir();
void LegitimacyCheck();

View File

@ -232,9 +232,9 @@ void LegitimacyCheck() {
}
#endif
}
std::string CheckVer(const std::filesystem::path& dir) {
std::string CheckVer(const beammp_fs_string& dir) {
std::string temp;
std::filesystem::path Path = dir / beammp_wide("integrity.json");
beammp_fs_string 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);

View File

@ -73,11 +73,7 @@ Version::Version(const std::array<uint8_t, 3>& v)
}
beammp_fs_string GetEN() {
#if defined(_WIN32)
return L"BeamMP-Launcher.exe";
#elif defined(__linux__)
return "BeamMP-Launcher";
#endif
return beammp_wide("BeamMP-Launcher.exe");
}
std::string GetVer() {