mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-26 05:24:21 +01:00
Add file extension
This commit is contained in:
parent
55b605b146
commit
6ad852e2b9
@ -397,10 +397,10 @@ void Gui::saveGameInfo()
|
||||
size_t sz = ntohl(p->sz);
|
||||
|
||||
char *new_name = (char *)xmalloc(strlen(this->metadata_base_path) +
|
||||
3 + strlen(this->cur_gameInfo->filename));
|
||||
8 + strlen(this->cur_gameInfo->filename));
|
||||
FILE *fp;
|
||||
|
||||
sprintf(new_name, "%s/%s", this->metadata_base_path,
|
||||
sprintf(new_name, "%s/%s.lra", this->metadata_base_path,
|
||||
this->cur_gameInfo->filename);
|
||||
fp = fopen(new_name, "w");
|
||||
if (fp)
|
||||
|
Loading…
Reference in New Issue
Block a user