Changeset 966

Show
Ignore:
Timestamp:
06/28/08 06:15:29 (3 months ago)
Author:
takkaria
Message:

Remove the "new savefile" code, since it's not suitable for shipping and won't be used because it's not space-efficient enough. This should fix #505, too.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/Makefile.inc

    r887 r966  
    2828  option.h types.h ui.h z-type.h object.h externs.h tvalsval.h \ 
    2929  game-event.h 
    30 compress.o: compress.c compress.h h-basic.h 
    3130cmd0.o: cmd0.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    3231  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
     
    9594  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    9695  option.h types.h ui.h z-type.h object.h externs.h tvalsval.h 
    97 loadsave.o: loadsave.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    98   z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    99   defines.h option.h types.h ui.h z-type.h object.h externs.h \ 
    100   z-blockfile.h z-smap.h 
    10196melee1.o: melee1.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    10297  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
     
    199194wiz-stats.o: wiz-stats.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    200195  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    201   defines.h option.h types.h ui.h z-type.h object.h externs.h wizard.h 
     196  defines.h option.h types.h ui.h z-type.h object.h externs.h cmds.h \ 
     197  wizard.h tvalsval.h 
    202198wizard.o: wizard.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    203199  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
     
    227223z-util.o: z-util.c z-util.h h-basic.h 
    228224z-virt.o: z-virt.c z-virt.h h-basic.h z-util.h 
    229 z-blockfile.o: z-blockfile.c z-virt.h h-basic.h z-blockfile.h z-file.h 
    230 z-smap.o: z-smap.c z-virt.h h-basic.h z-file.h z-smap.h 
  • trunk/src/Makefile.src

    r834 r966  
    1212        angband.h \ 
    1313        cmds.h \ 
    14         compress.h \ 
    1514        config.h \ 
    1615        defines.h \ 
     
    3029        ui-menu.h \ 
    3130        wizard.h \ 
    32         z-blockfile.h \ 
    3331        z-file.h \ 
    3432        z-form.h \ 
     
    3634        z-quark.h \ 
    3735        z-rand.h \ 
    38         z-smap.h \ 
    3936        z-term.h \ 
    4037        z-type.h \ 
     
    4744         
    4845ZFILES = z-file.o z-form.o z-msg.o z-quark.o z-rand.o z-term.o z-type.o \ 
    49          z-util.o z-virt.o z-blockfile.o z-smap.o  
     46         z-util.o z-virt.o 
    5047MAINFILES = main.o main-crb.o main-gcu.o $(GTKMAINFILES) \ 
    5148            main-ros.o main-sdl.o main-win.o main-x11.o snd-sdl.o 
     
    6057        button.o \ 
    6158        cave.o \ 
    62         compress.o \ 
    6359        cmd0.o \ 
    6460        cmd1.o \ 
     
    8177        init2.o \ 
    8278        load.o \ 
    83         loadsave.o \ 
    8479        melee1.o \ 
    8580        melee2.o \ 
  • trunk/src/death.c

    r965 r966  
    445445 
    446446        /* Save dead player */ 
    447         if (new_save ? !save(savefile) : !old_save()) 
     447        if (!old_save()) 
    448448        { 
    449449                msg_print("death save failed!"); 
  • trunk/src/dungeon.c

    r928 r966  
    17411741        if (savefile[0] && file_exists(savefile)) 
    17421742        { 
    1743                 bool ok = new_save ? load(savefile) : old_load(); 
     1743                bool ok = old_load(); 
    17441744                if (!ok) quit("broken savefile"); 
    17451745 
  • trunk/src/externs.h

    r965 r966  
    370370extern bool old_load(void); 
    371371 
    372 /* loadsave.c */ 
    373 bool save(char *filename); 
    374 bool load(char *filename); 
    375  
    376372/* melee1.c */ 
    377373bool check_hit(int power, int level); 
     
    687683#endif /* ALLOW_BORG */ 
    688684 
    689 /* Testing Hacks XXX */ 
    690 extern bool new_save; 
     685 
     686extern u16b lazymove_delay; 
     687 
    691688 
    692689#endif /* !INCLUDED_EXTERNS_H */ 
    693690 
    694  
    695 extern u16b lazymove_delay; 
  • trunk/src/files.c

    r964 r966  
    26632663 
    26642664        /* Save the player */ 
    2665         if (new_save ? save(savefile) : old_save()) 
     2665        if (old_save()) 
    26662666        { 
    26672667                prt("Saving game... done.", 0, 0); 
     
    27822782 
    27832783        /* Panic save, or get worried */ 
    2784         if (new_save ? !save(panic_savefile) : !old_save()) quit("panic save failed!"); 
     2784        if (!old_save()) quit("panic save failed!"); 
    27852785 
    27862786 
  • trunk/src/load.c

    r958 r966  
    19861986                        if (err) what = "Cannot parse savefile"; 
    19871987                } 
    1988  
    1989                 /* Try using the new savefile code instead */ 
    1990                 if (err) 
    1991                 { 
    1992                         if (load(savefile)) 
    1993                         { 
    1994                                 new_save = TRUE; 
    1995                                 return TRUE; 
    1996                         } 
    1997                 } 
    19981988        } 
    19991989 
  • trunk/src/main.c

    r958 r966  
    291291                        { 
    292292                                new_game = TRUE; 
    293                                 break; 
    294                         } 
    295  
    296                         case 'L': 
    297                         { 
    298                                 new_save = TRUE; 
    299293                                break; 
    300294                        } 
  • trunk/src/signals.c

    r965 r966  
    217217 
    218218        /* Attempt to save */ 
    219         if (new_save ? save(panic_savefile) : old_save()) 
     219        if (old_save()) 
    220220        { 
    221221                Term_putstr(45, 23, -1, TERM_RED, "Panic save succeeded!"); 
  • trunk/src/variable.c

    r958 r966  
    771771u16b inscriptions_count = 0; 
    772772 
    773 /* Use new-type savefiles */ 
    774 bool new_save; 
    775  
    776773 
    777774/* Delay in centiseconds before moving to allow another keypress */ 
  • trunk/src/wizard.c

    r938 r966  
    16751675                } 
    16761676 
    1677                 case 'S': 
    1678                 { 
    1679                         save("savefile.new"); 
    1680                         break; 
    1681                 } 
    1682          
    16831677                /* Teleport */ 
    16841678                case 't':