summaryrefslogtreecommitdiffstats
path: root/Mac/Tools/IDE/PyEdit.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Tools/IDE/PyEdit.py')
-rw-r--r--Mac/Tools/IDE/PyEdit.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Mac/Tools/IDE/PyEdit.py b/Mac/Tools/IDE/PyEdit.py
index bff5baf..0a0773e 100644
--- a/Mac/Tools/IDE/PyEdit.py
+++ b/Mac/Tools/IDE/PyEdit.py
@@ -114,7 +114,7 @@ class Editor(W.Window):
def readwindowsettings(self):
try:
- resref = Res.OpenResFile(self.path)
+ resref = Res.FSpOpenResFile(self.path, 1)
except Res.Error:
return
try:
@@ -127,10 +127,10 @@ class Editor(W.Window):
def writewindowsettings(self):
try:
- resref = Res.OpenResFile(self.path)
+ resref = Res.FSpOpenResFile(self.path, 3)
except Res.Error:
Res.CreateResFile(self.path)
- resref = Res.OpenResFile(self.path)
+ resref = Res.FSpOpenResFile(self.path, 3)
try:
data = Res.Resource(marshal.dumps(self.settings))
Res.UseResFile(resref)