mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-07-10 13:29:52 -04:00
[Feature] FS#13884 #2 allow merging imported native keymaps
allows you to import a file and merge native keymaps pops a yes no prompt to erase existing duplicates will be overwritten Change-Id: I167c6fac65775754b2a9874185d14f65638db9d7
This commit is contained in:
parent
7517674513
commit
2b96380641
1 changed files with 4 additions and 1 deletions
|
|
@ -1134,7 +1134,10 @@ static int keyremap_load_file(const char *filename)
|
|||
|
||||
if (count > 0)
|
||||
{
|
||||
keyremap_reset_buffer();
|
||||
if (ctx_data.ctx_count == 0 || rb->yesno_pop("Delete Current Entries?") == true)
|
||||
{
|
||||
keyremap_reset_buffer();
|
||||
}
|
||||
while(--count > 0)
|
||||
{
|
||||
rb->lseek(fd, ctxpos, SEEK_SET); /* next context remap entry */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue