Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit de9bf73

Browse files
committed
Fix metagame loadout paths
1 parent 6c9fe91 commit de9bf73

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Menus/BuyMenuGUI.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ bool BuyMenuGUI::LoadAllLoadoutsFromFile()
405405
if (m_MetaPlayer != Players::NoPlayer)
406406
{
407407
// Start loading any additional stuff from the custom user file
408-
std::snprintf(loadoutPath, sizeof(loadoutPath), "%s/%s - LoadoutsMP%d.ini", (System::GetUserdataDirectory() + c_UserConquestSavesModuleName).c_str(), g_MetaMan.GetGameName().c_str(), m_MetaPlayer + 1);
408+
std::snprintf(loadoutPath, sizeof(loadoutPath), "%s%s - LoadoutsMP%d.ini", (System::GetUserdataDirectory() + c_UserConquestSavesModuleName).c_str(), g_MetaMan.GetGameName().c_str(), m_MetaPlayer + 1);
409409

410410
if (!System::PathExistsCaseSensitive(loadoutPath))
411411
{
@@ -518,9 +518,9 @@ bool BuyMenuGUI::SaveAllLoadoutsToFile()
518518
// Since the players of a new game are likely to have different techs and therefore different default loadouts
519519
// So we should start fresh with new loadouts loaded from tech defaults for each player
520520
if (g_MetaMan.GetGameName() == DEFAULTGAMENAME)
521-
std::snprintf(loadoutPath, sizeof(loadoutPath), "%s/%s - LoadoutsMP%d.ini", (System::GetUserdataDirectory() + c_UserConquestSavesModuleName).c_str(), AUTOSAVENAME, m_MetaPlayer + 1);
521+
std::snprintf(loadoutPath, sizeof(loadoutPath), "%s%s - LoadoutsMP%d.ini", (System::GetUserdataDirectory() + c_UserConquestSavesModuleName).c_str(), AUTOSAVENAME, m_MetaPlayer + 1);
522522
else
523-
std::snprintf(loadoutPath, sizeof(loadoutPath), "%s/%s - LoadoutsMP%d.ini", (System::GetUserdataDirectory() + c_UserConquestSavesModuleName).c_str(), g_MetaMan.GetGameName().c_str(), m_MetaPlayer + 1);
523+
std::snprintf(loadoutPath, sizeof(loadoutPath), "%s%s - LoadoutsMP%d.ini", (System::GetUserdataDirectory() + c_UserConquestSavesModuleName).c_str(), g_MetaMan.GetGameName().c_str(), m_MetaPlayer + 1);
524524
}
525525
else
526526
std::snprintf(loadoutPath, sizeof(loadoutPath), "%sLoadoutsP%d.ini", System::GetUserdataDirectory().c_str(), m_pController->GetPlayer() + 1);

0 commit comments

Comments
 (0)