Skip to content

Commit 0c8c4ae

Browse files
committed
Fix bug in path loading and saving ram
1 parent d39eea2 commit 0c8c4ae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/geargrafx_core.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,10 @@ void GeargrafxCore::SaveRam(const char* path, bool full_path)
308308
{
309309
final_path = path;
310310
if (!full_path)
311+
{
311312
final_path += "/";
312313
final_path += m_cartridge->GetFileName();
314+
}
313315
}
314316
else
315317
final_path = m_cartridge->GetFilePath();
@@ -343,8 +345,10 @@ void GeargrafxCore::LoadRam(const char* path, bool full_path)
343345
{
344346
final_path = path;
345347
if (!full_path)
348+
{
346349
final_path += "/";
347350
final_path += m_cartridge->GetFileName();
351+
}
348352
}
349353
else
350354
final_path = m_cartridge->GetFilePath();

0 commit comments

Comments
 (0)