bool8 S9xLoadOrigSnapshot (const char *filename) { STREAM snapshot = NULL; if (S9xOpenSnapshotFile (filename, TRUE, &snapshot)) { int result; if ((result = ReadOrigSnapshot (snapshot)) != SUCCESS) { S9xCloseSnapshotFile (snapshot); return (FALSE); } S9xCloseSnapshotFile (snapshot); return (TRUE); } return (FALSE); }
bool8 S9xLoadOrigSnapshot (const char *filename) { FILE* fp; fp = fopen(filename, "r"); if(NULL == fp) return (FALSE); int result; if ((result = ReadOrigSnapshot (fp)) != SUCCESS) { fclose(fp); return (FALSE); } fclose(fp); return (TRUE); }