mirror of
https://git.planet-casio.com/Lephenixnoir/fxsdk.git
synced 2024-12-28 04:23:37 +01:00
fxlink: generate blob names based on application/type
This commit is contained in:
parent
5e004f989e
commit
27e60884c3
1 changed files with 4 additions and 1 deletions
|
@ -102,8 +102,11 @@ static void message_finish(message_t *msg)
|
|||
}
|
||||
}
|
||||
|
||||
static char combined_type[33];
|
||||
snprintf(combined_type, 33, "%.16s-%.16s", msg->header.application,
|
||||
msg->header.type);
|
||||
/* Default to saving to a blob */
|
||||
char *filename = gen_file_name(path, "blob", "bin");
|
||||
char *filename = gen_file_name(path, combined_type, "bin");
|
||||
FILE *fp = fopen(filename, "wb");
|
||||
if(!fp) {
|
||||
err("could not save to '%s': %m", filename);
|
||||
|
|
Loading…
Reference in a new issue