jleclanche / python-mpq

StormLib-based Python MPQ bindings

Home Page:http://zezula.net/en/mpq/stormlib.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

is_patched is broken

oaken-source opened this issue · comments

trying to invoke is_patched on an MPQFile instance yields:

NameError: name 'name' is not defined

which is not surprising, given the code in question:

    def is_patched(self):
        """
        Returns whether at least one of the archives in the MPQFile has been patched.
        """
        for mpq in self._archives:
            if storm.SFileIsPatchedArchive(mpq, name):
                return True
        return False

there is no name in that scope.

¯\_(ツ)_/¯
I'll merge a PR if you can make one; MPQs being essentially gone, this project is unmaintained right now.

thanks for keeping the project around anyway - mpqs are still useful for reverse engineering old game engines :)