Summary: Fix deletion of saved games
                 Project: Warzone Resurrection Project
            Submitted by: buginator
            Submitted on: Thursday 11/08/2007 at 06:51
                Category: Fix
                Priority: 7 - High
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any



Fixes bug #8880

We never really deleted the files IN the save game directory, and since we
didn't do that, we could NOT delete the saved game directory itself.

NOTE, I was unsure what warning level to put on this, since, at least on
windows, there was a file that could NOT be deleted.  I suspect a flush()
would help, but we didn't get passed a handle.

The line:
if(saveGameName[9]=='(') return;
was needed, since we don't want to pass savegame/(null).gam to the routines
below it, since they will error out.  The (null) is put there by the widget

my error log looks like:

error   : Warning [savegame/zzzkill/visstate.bjo] could not be deleted
because The process cannot access the file because it is being used by
another process.
error   : Warning directory[savegame/zzzkill] could not be deleted because
Access is denied.


File Attachments:

Date: Thursday 11/08/2007 at 06:51  Name: deletegamefix.diff  Size: 1kB   By:



Reply to this item at:


  Message sent via/by Gna!

Warzone-dev mailing list

Reply via email to