Diff of /EffEdit.cpp [6eaad0] .. [b967c1] Maximize Restore

  Switch to side-by-side view

--- a/EffEdit.cpp
+++ b/EffEdit.cpp
@@ -608,7 +608,6 @@
   CString filepath;
   CString newname;
   CString tmpstr;
-//  int fhandle;
   int res;
 
   if(readonly)
@@ -649,17 +648,9 @@
       res=MessageBox("Do you want to overwrite "+newname+"?","Warning",MB_ICONQUESTION|MB_YESNO);
       if(res==IDNO) goto restart;
     }
-    /*
-    fhandle=open(filepath, O_BINARY|O_RDWR|O_CREAT|O_TRUNC,S_IREAD|S_IWRITE);
-    if(fhandle<1)
-    {
-      MessageBox("Can't write file!","Error",MB_OK);
-      goto restart;
-    }
-    res=the_effect.WriteEffectToFile(fhandle,0);
-    close(fhandle);
-    */
-    res = write_effect(newname);
+    
+    res = write_effect(newname, filepath);
+    lastopenedoverride=filepath.Left(filepath.ReverseFind('\\'));
     switch(res)
     {
     case 0: