@@ -405,7 +405,7 @@ bool BuyMenuGUI::LoadAllLoadoutsFromFile()
405
405
if (m_MetaPlayer != Players::NoPlayer)
406
406
{
407
407
// 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 );
409
409
410
410
if (!System::PathExistsCaseSensitive (loadoutPath))
411
411
{
@@ -518,9 +518,9 @@ bool BuyMenuGUI::SaveAllLoadoutsToFile()
518
518
// Since the players of a new game are likely to have different techs and therefore different default loadouts
519
519
// So we should start fresh with new loadouts loaded from tech defaults for each player
520
520
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 );
522
522
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 );
524
524
}
525
525
else
526
526
std::snprintf (loadoutPath, sizeof (loadoutPath), " %sLoadoutsP%d.ini" , System::GetUserdataDirectory ().c_str (), m_pController->GetPlayer () + 1 );
0 commit comments