Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is overwrite supported? #3

Open
zach-cloud opened this issue Jul 11, 2020 · 1 comment
Open

Is overwrite supported? #3

zach-cloud opened this issue Jul 11, 2020 · 1 comment

Comments

@zach-cloud
Copy link

I'm aware this project is old and probably not maintained anymore - but if anyone reads this, do you know how to make MPQ files overwrite? Right now, if you try to add a file that exists, it will just not add. And it seems that there's no delete function.

@zach-cloud
Copy link
Author

If anyone else has the same question, I implemented like this:

    public void DeleteFile(string fileName)
    {
        VerifyHandle();

        if (!NativeMethods.SFileRemoveFile(_handle, fileName, 0))
            throw new Win32Exception();
    }

Not going to make a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant