mirror of
https://github.com/blupi-games/planetblupi
synced 2024-12-30 10:15:36 +01:00
Fix locations of files
It fixes especially the navigation for the next and previous exercise and mission.
This commit is contained in:
parent
b4aec1fb46
commit
025a121e44
@ -331,7 +331,8 @@ bool CDecor::FileExist (Sint32 rank, bool bUser, Sint32 &world, Sint32 &time,
|
|||||||
AddUserPath (filename);
|
AddUserPath (filename);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
sprintf (filename, "data/world%.3d.blp", rank);
|
snprintf (filename, sizeof (filename),
|
||||||
|
(GetBaseDir () + "data/world%.3d.blp").c_str (), rank);
|
||||||
|
|
||||||
file = fopen (filename, "rb");
|
file = fopen (filename, "rb");
|
||||||
if (file == nullptr)
|
if (file == nullptr)
|
||||||
|
@ -4291,8 +4291,9 @@ void CEvent::DemoRecStop()
|
|||||||
|
|
||||||
if (m_pDemoBuffer != nullptr)
|
if (m_pDemoBuffer != nullptr)
|
||||||
{
|
{
|
||||||
unlink ("data/demo.blp");
|
const auto demo = GetBaseDir () + "data/demo.blp";
|
||||||
file = fopen ("data/demo.blp", "wb");
|
unlink (demo.c_str ());
|
||||||
|
file = fopen (demo.c_str (), "wb");
|
||||||
if (file != nullptr)
|
if (file != nullptr)
|
||||||
{
|
{
|
||||||
memset (&header, 0, sizeof (DemoHeader));
|
memset (&header, 0, sizeof (DemoHeader));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user