mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-07-03 08:26:01 +00:00
link resources path from config
This commit is contained in:
parent
70099af7c7
commit
65ce374f3c
@ -44,6 +44,7 @@ class Launcher {
|
||||
static void setExit(bool exit) noexcept;
|
||||
const std::string& getFullVersion();
|
||||
const std::string& getMPUserPath();
|
||||
const std::string& getCachePath();
|
||||
static bool Terminated() noexcept;
|
||||
const std::string& getPublicKey();
|
||||
const std::string& getUserRole();
|
||||
|
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user