[Project64] Get MempakNames to set path in CPath constructor
This commit is contained in:
parent
649cc48598
commit
4f61d7c5a3
|
@ -23,10 +23,7 @@ void Mempak::Load()
|
||||||
{
|
{
|
||||||
MempakName.Format("%s_Cont_%d", g_Settings->LoadStringVal(Game_GameName).c_str(), i + 1);
|
MempakName.Format("%s_Cont_%d", g_Settings->LoadStringVal(Game_GameName).c_str(), i + 1);
|
||||||
|
|
||||||
MempakNames[i].SetDriveDirectory(g_Settings->LoadStringVal(Directory_NativeSave).c_str());
|
MempakNames[i] = CPath(g_Settings->LoadStringVal(Directory_NativeSave).c_str(), stdstr_f("%s.mpk",MempakName.c_str()).c_str());
|
||||||
MempakNames[i].SetName(MempakName.c_str());
|
|
||||||
MempakNames[i].SetExtension("mpk");
|
|
||||||
|
|
||||||
if (!MempakNames[i].DirectoryExists())
|
if (!MempakNames[i].DirectoryExists())
|
||||||
{
|
{
|
||||||
MempakNames[i].DirectoryCreate();
|
MempakNames[i].DirectoryCreate();
|
||||||
|
|
Loading…
Reference in New Issue