poiuyqwert / PyMS

Broodwar Modding Suite
47 stars 18 forks source link

PyMPQ: Crash/error when saving listfile changes #118

Open Pr0nogo opened 5 years ago

Pr0nogo commented 5 years ago

Steps to reproduce: start PyMPQ, load an archive (I used StarDat.mpq), open the settings dialog, add a new listfile (I added the one in libs\data) and click OK. The error below will display, and then you must cancel (clicking OK does nothing) before the program closes.

Traceback (most recent call last):
  File "C:\Python27\lib\lib-tk\Tkinter.py", line 1537, in __call__
    return self.func(*args)
  File "C:\Users\prono\Desktop\Libraries\Tools\SCBW\PyMS-master\Libs\setutils.py", line 1080, in ok
    self.save_settings()
  File "C:\Users\prono\Desktop\Libraries\Tools\SCBW\PyMS-master\Libs\setutils.py", line 1074, in save_settings
    p.save(d,m,self.settings)
TypeError: save() takes exactly 1 argument (4 given)