Zandronum Chat on our Discord Server Get the latest version: 3.2
Source Code

View Revisions: Issue #2226 All Revisions ] Back to Issue ]
Summary 0002226: Zandronum accidentally moves the files from '.zdoom', instead of '.zandronum', to '.config/zandronum'
Revision 2015-05-10 20:43 by Edward-san
Description This is caused by this code snippet in src/m_misc.cpp:


// This can be removed after a release or two
// Transfer the old zdoom directory to the new location
bool moved = false;
FString oldpath = NicePath("~/.zdoom/");
if (stat (oldpath, &extrainfo) != -1)
{
    if (rename(oldpath, path) == -1)
    {
        I_Error ("Failed to move old zdoom directory (%s) to new location (%s).",
            oldpath.GetChars(), path.GetChars());
    }
    else
        moved = true;
}

if (!moved && mkdir (path, S_IRUSR | S_IWUSR | S_IXUSR) == -1)
{
    I_FatalError ("Failed to create %s directory:\n%s",
        path.GetChars(), strerror (errno));
}


The fix is to replace 'zdoom' with 'GAMENAMELOWERCASE', which is 'zandronum' in our case.
Revision 2015-05-10 20:42 by Edward-san
Description This is caused by this code snippet in src/m_misc.cpp:


// This can be removed after a release or two
// Transfer the old zdoom directory to the new location
bool moved = false;
FString oldpath = NicePath("~/.zdoom/");
if (stat (oldpath, &extrainfo) != -1)
{
    if (rename(oldpath, path) == -1)
    {
        I_Error ("Failed to move old zdoom directory (%s) to new location (%s).",
            oldpath.GetChars(), path.GetChars());
    }
    else
        moved = true;
}

if (!moved && mkdir (path, S_IRUSR | S_IWUSR | S_IXUSR) == -1)
{
    I_FatalError ("Failed to create %s directory:\n%s",
        path.GetChars(), strerror (errno));
}






Questions or other issues? Contact Us.

Links


Copyright © 2000 - 2025 MantisBT Team
Powered by Mantis Bugtracker