restore.h

./lib/include/fn/restore.h · 427 B

From the archive heaven7_2v06.tar.gz

Download the archive   « Back to the archive contents

#ifndef RESTORE_H
#define RESTORE_H


/* Amylaar, mudos, and 3.1.2 have different save_object formats */
/* This will ignore incompatible driver formats                 */

static mixed restore_object(string file) {
  mixed ret;

  if(catch(ret = efun::restore_object(file))) {
    write("Error: Save File is incorrect Format for "+ version() 
         +" Driver.\n");
    return 0;
  }
  return ret;
}

#endif /* RESTORE_H */

Site Stats

Snippets: 1791
Codebases: 571