Kaydet (Commit) 64aa1e2c authored tarafından Jack Jansen's avatar Jack Jansen

Use FSpCreateResFile() in stead of CreateResFile().

üst 565e956c
......@@ -5,6 +5,7 @@ import Wtraceback
from Wkeys import *
import macfs
import MACFS
import MacOS
import Win
import Res
......@@ -134,7 +135,7 @@ class Editor(W.Window):
try:
resref = Res.FSpOpenResFile(self.path, 3)
except Res.Error:
Res.CreateResFile(self.path)
Res.FSpCreateResFile(self.path, self._creator, 'TEXT', MACFS.smAllScripts)
resref = Res.FSpOpenResFile(self.path, 3)
try:
data = Res.Resource(marshal.dumps(self.settings))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment