Keep v1 for now

This commit is contained in:
simon.kagstrom 2010-03-19 13:16:12 +00:00
parent bd0166e397
commit 9457a76210
2 changed files with 0 additions and 12 deletions

View File

@ -145,8 +145,6 @@ GameInfo::GameInfo(const char *filename,
this->name = xstrdup(filename);
else
this->name = xstrdup(name);
this->musician = xstrdup(musician);
this->graphics_artist = xstrdup(graphics_artist);
this->screenshot = image;
this->score = 0;
this->year = 1982;
@ -175,8 +173,6 @@ GameInfo::~GameInfo()
free((void*)this->name);
free((void*)this->author);
free((void*)this->filename);
free((void*)this->graphics_artist);
free((void*)this->musician);
SDL_FreeSurface(this->screenshot);
}
@ -186,15 +182,11 @@ void GameInfo::resetDefaults()
free((void*)this->name);
free((void*)this->author);
free((void*)this->filename);
free((void*)this->graphics_artist);
free((void*)this->musician);
SDL_FreeSurface(this->screenshot);
this->name = xstrdup(" ");
this->author = xstrdup(" ");
this->filename = xstrdup("unknown");
this->musician = xstrdup(" ");
this->graphics_artist = xstrdup(" ");
this->screenshot = NULL;
}

View File

@ -19,8 +19,6 @@ struct game_info
uint16_t filename_off;
uint16_t score;
uint16_t year;
uint16_t musician_off;
uint16_t graphics_artist_off;
uint8_t data[]; /* 4-byte aligned */
};
@ -59,8 +57,6 @@ public:
const char *name;
const char *author;
const char *filename;
const char *musician;
const char *graphics_artist;
SDL_Surface *screenshot;
uint16_t year;