Code Monkey home page Code Monkey logo

Comments (4)

pixeltris avatar pixeltris commented on June 7, 2024

The tree is correct. Assuming you've fully downloaded the game I'm not sure what's wrong unfortunately. Your Yu-Gi-Oh! Master Duel folder is roughly 5-6 GB in size, right?

from ygomaster.

pixeltris avatar pixeltris commented on June 7, 2024

Oh you have several sub folders in LocalData. The code will pick the fist one it finds which may be empty. Delete the unused LocalData folders.

from ygomaster.

IlasDev avatar IlasDev commented on June 7, 2024

It works now, thanks. It pisses me off the fact that I have to move the other account's folders away, but I can deal with it.

from ygomaster.

pixeltris avatar pixeltris commented on June 7, 2024

The code could be improved to check for a specific file and skip empty folders. But I don't have plans to implement this at the moment.

static void SetupStorageDirectory(IntPtr thisPtr, IntPtr storage, IntPtr mountPath)
{
string path = new IL2String(mountPath).ToString();
//Console.WriteLine("Mount: " + path);
if (!string.IsNullOrEmpty(path))
{
// NOTE: Allowing "/../LocalSave/" to point to "00000000"
string localDataPath = "/../LocalData/";
int localDataPathIndex = path.IndexOf(localDataPath);
if (localDataPathIndex >= 0)
{
string folderName = path.Substring(localDataPathIndex + localDataPath.Length);
path = path.Substring(0, localDataPathIndex + localDataPath.Length);
if (folderName == "00000000")
{
foreach (string dir in Directory.GetDirectories(path))
{
DirectoryInfo dirInfo = new DirectoryInfo(dir);
if (dirInfo.Name != folderName)
{
folderName = dirInfo.Name;
break;
}
}
}
path += folderName;
}
hookSetupStorageDirectory.Original(thisPtr, storage, new IL2String(path).ptr);
}
else
{
hookSetupStorageDirectory.Original(thisPtr, storage, mountPath);
}
}
}

from ygomaster.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.