mirror of
https://github.com/AloUltraExt/sm64ex-alo.git
synced 2025-01-23 08:02:14 -05:00
Post r15: Allow spaces in filename for vadpcm_enc
This commit is contained in:
parent
908e8fc16d
commit
b33d829f07
1 changed files with 9 additions and 0 deletions
|
@ -56,7 +56,11 @@ int main(int argc, char **argv)
|
|||
ALADPCMloop *aloops;
|
||||
Marker *markers;
|
||||
CodeChunk cChunk;
|
||||
#ifdef __sgi
|
||||
char filename[1024];
|
||||
#else
|
||||
const char *filename;
|
||||
#endif
|
||||
FILE *fhandle;
|
||||
FILE *ifile;
|
||||
FILE *ofile;
|
||||
|
@ -72,7 +76,12 @@ int main(int argc, char **argv)
|
|||
switch (c)
|
||||
{
|
||||
case 'c':
|
||||
#ifdef __sgi
|
||||
if (sscanf(optarg, "%s", filename) == 1)
|
||||
#else
|
||||
// Allow filenames with spaces
|
||||
filename = optarg;
|
||||
#endif
|
||||
{
|
||||
if ((fhandle = fopen(filename, "r")) == NULL)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue