mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-04-03 06:16:15 +00:00
Fix wstring for windows and add crossplatform code for fs strings
This commit is contained in:
@@ -127,7 +127,7 @@ std::string HTTP::Post(const std::string& IP, const std::string& Fields) {
|
||||
return Ret;
|
||||
}
|
||||
|
||||
bool HTTP::Download(const std::string& IP, const std::wstring& Path) {
|
||||
bool HTTP::Download(const std::string& IP, const beammp_fs_string& Path) {
|
||||
static std::mutex Lock;
|
||||
std::scoped_lock Guard(Lock);
|
||||
|
||||
@@ -145,7 +145,7 @@ bool HTTP::Download(const std::string& IP, const std::wstring& Path) {
|
||||
File.close();
|
||||
info("Download Complete!");
|
||||
} else {
|
||||
error(L"Failed to open file directory: " + Path);
|
||||
error(beammp_wide("Failed to open file directory: ") + Path);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user