mirror of
https://github.com/Polprzewodnikowy/N64FlashcartMenu.git
synced 2024-11-29 22:14:15 +01:00
Make backup unique
use time var
This commit is contained in:
parent
8ed610f25d
commit
3ed121dcfb
@ -27,9 +27,7 @@ static void exec_cpak_backup(menu_t *menu, uint8_t port) {
|
||||
path_t *path = path_init(menu->storage_prefix, CPAK_BACKUP_DIRECTORY);
|
||||
directory_create(path_get(path));
|
||||
|
||||
// TODO: preferably with the time added to the filename so it does not overwrite the existing one!
|
||||
sprintf(file_name, "%s-%s.%s", CPAK_BACKUP_FILE_PREFIX, "1", CPAK_BACKUP_FILE_EXT);
|
||||
|
||||
sprintf(file_name, "%s-%lld.%s", CPAK_BACKUP_FILE_PREFIX, time( NULL ), CPAK_BACKUP_FILE_EXT);
|
||||
|
||||
path_push(path, file_name);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user