summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnout <arnouten@bzzt.net>2013-02-03 21:31:09 +0100
committerArnout <arnouten@bzzt.net>2013-02-03 21:31:09 +0100
commitbded5523bc74e5858e178a859a925a8ddd366167 (patch)
tree8ba711209a670aa99d6a4e0d68e8a8808f4c5ff3
parent6dead1c0c7081c6978b5d4639e6d2d5ac9d80fde (diff)
No default filenames
take filenames from commandline, show usage on too few parameters
-rw-r--r--sfArkXTm.cpp18
1 files changed, 1 insertions, 17 deletions
diff --git a/sfArkXTm.cpp b/sfArkXTm.cpp
index 821e76c..0b8a11e 100644
--- a/sfArkXTm.cpp
+++ b/sfArkXTm.cpp
@@ -103,10 +103,6 @@ int ReportError(long error)
int main(int argc, char** argv)
{
- char InFileName[SFARKLIB_MAX_FILEPATH] = "elepiano.sfArk";//"testfile1.sfArk";
- //char InFileName[SFARKLIB_MAX_FILEPATH] = "testfile2.sfArk";
- char OutFileName[SFARKLIB_MAX_FILEPATH] = "testfile_mac.sf2";
-
// Print welcome message...
printf("======================================================================\n");
@@ -117,10 +113,9 @@ int main(int argc, char** argv)
// Open input and output files...
-/******
char *InFileName = argv[1];
char *OutFileName = argv[2];
- // useage
+ // usage
if (argc != 3)
{
printf("Specify input and output files on the command line, i.e:\n");
@@ -129,17 +124,6 @@ int main(int argc, char** argv)
return 1;
}
-*********/
- if (argc < 2)
- {
- printf("HINT: Drag & drop a sfArk file onto the %s icon to avoid this...\n", ThisProg);
- printf("Enter name of sfArk file to decompress and press return: \n");
- }
- else
- {
- strncpy(InFileName, argv[1], sizeof(InFileName)-1);
- }
-
// Uncompress the file...
printf("Uncompressing %s to %s...\n", InFileName, OutFileName);