mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-05-12 11:43:16 -04:00
Compare commits
2 commits
7d88ab4ef4
...
951cbdbec6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
951cbdbec6 | ||
|
|
4503d63ec8 |
2 changed files with 10 additions and 3 deletions
|
|
@ -106,9 +106,13 @@ static int find_extension(const char *ext)
|
|||
void spcf_read_command_line(const void* parameter)
|
||||
{
|
||||
int ix;
|
||||
|
||||
ix = find_extension( parameter - 3 + rb->strlen (parameter) );
|
||||
|
||||
const char *ext = rb->strrchr(parameter, '.');
|
||||
ix = (ext ? find_extension(ext+1) : -1);
|
||||
if (ix < 0)
|
||||
{
|
||||
rb->splash(HZ*2, "Invalid extension");
|
||||
return;
|
||||
}
|
||||
file_type = extensions[ix].type;
|
||||
file_subtype = extensions[ix].subtype;
|
||||
rb->strlcpy(filenamebuf, parameter, MAXFILENAME - 10 + 1);
|
||||
|
|
|
|||
|
|
@ -47,6 +47,8 @@
|
|||
|
||||
#include "zxbox_keyb.h"
|
||||
|
||||
#include "tapefile.h"
|
||||
|
||||
int endofsingle IBSS_ATTR;
|
||||
|
||||
int sp_nosync IBSS_ATTR = 0;
|
||||
|
|
@ -519,4 +521,5 @@ void start_spectemu(const void *parameter)
|
|||
init_spect_key();
|
||||
|
||||
run_singlemode();
|
||||
close_tapefile(); /* Bugfix leak file handles */
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue