Skip to content

Commit 910fdec

Browse files
committed
Fix metagame loadouts saving to/loading from the userdata folder instead of the conquests saves folder
1 parent 25fef26 commit 910fdec

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
@@ -408,7 +408,7 @@ bool BuyMenuGUI::LoadAllLoadoutsFromFile()
408408
if (m_MetaPlayer != Players::NoPlayer)
409409
{
410410
// Start loading any additional stuff from the custom user file
411-
std::snprintf(loadoutPath, sizeof(loadoutPath), "%s%s - LoadoutsMP%d.ini", (System::GetUserdataDirectory() + c_UserConquestSavesModuleName).c_str(), g_MetaMan.GetGameName().c_str(), m_MetaPlayer + 1);
411+
std::snprintf(loadoutPath, sizeof(loadoutPath), "%s%s - LoadoutsMP%d.ini", (System::GetUserdataDirectory() + c_UserConquestSavesModuleName + "/").c_str(), g_MetaMan.GetGameName().c_str(), m_MetaPlayer + 1);
412412

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

0 commit comments

Comments
 (0)