mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-26 05:24:21 +01:00
Default to filename for name if name isn't set
This commit is contained in:
parent
94c53ceb22
commit
6ff06c0d1f
@ -28,6 +28,9 @@ GameInfo::GameInfo(const char *filename,
|
||||
SDL_Surface *image)
|
||||
{
|
||||
this->filename = xstrdup(filename);
|
||||
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