mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-04-07 00:06:08 +00:00
link resources path from config
This commit is contained in:
@@ -215,3 +215,7 @@ const std::string& Launcher::getMPUserPath() {
|
||||
const std::string& Launcher::getPublicKey() {
|
||||
return PublicKey;
|
||||
}
|
||||
|
||||
const std::string& Launcher::getCachePath() {
|
||||
return LauncherCache;
|
||||
}
|
||||
|
||||
@@ -255,7 +255,7 @@ void Server::SyncResources() {
|
||||
FN != FNames.end() && !Terminate; ++FN, ++FS) {
|
||||
auto pos = FN->find_last_of('/');
|
||||
if (pos != std::string::npos) {
|
||||
a = "Resources" + FN->substr(pos);
|
||||
a = LauncherInstance->getCachePath() + FN->substr(pos);
|
||||
} else continue;
|
||||
Pos++;
|
||||
if (fs::exists(a)) {
|
||||
|
||||
Reference in New Issue
Block a user