mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-14 07:35:12 +01:00
Default to filename for name if name isn't set
This commit is contained in:
parent
94c53ceb22
commit
6ff06c0d1f
@ -28,7 +28,10 @@ GameInfo::GameInfo(const char *filename,
|
||||
SDL_Surface *image)
|
||||
{
|
||||
this->filename = xstrdup(filename);
|
||||
this->name = xstrdup(name);
|
||||
if (strcmp(name, " ") == 0)
|
||||
this->name = xstrdup(filename);
|
||||
else
|
||||
this->name = xstrdup(name);
|
||||
this->author = xstrdup(author);
|
||||
this->screenshot = image;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user