mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-25 12:56:59 +01:00
Keep v1 for now
This commit is contained in:
parent
bd0166e397
commit
9457a76210
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user