/[svn]/libgig/trunk/src/tools/akaidump.cpp
ViewVC logotype

Diff of /libgig/trunk/src/tools/akaidump.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2835 by schoenebeck, Thu May 22 15:54:02 2014 UTC revision 2836 by persson, Sun Aug 23 05:57:18 2015 UTC
# Line 2  Line 2 
2    libakai - C++ cross-platform akai sample disk reader    libakai - C++ cross-platform akai sample disk reader
3    Copyright (C) 2002-2003 Sébastien Métrot    Copyright (C) 2002-2003 Sébastien Métrot
4    
5    Linux port by Christian Schoenebeck <cuse@users.sourceforge.net> 2003-2014    Linux port by Christian Schoenebeck <cuse@users.sourceforge.net> 2003-2015
6    
7    This library is free software; you can redistribute it and/or    This library is free software; you can redistribute it and/or
8    modify it under the terms of the GNU Lesser General Public    modify it under the terms of the GNU Lesser General Public
# Line 65  static void PrintLastError(char* file, i Line 65  static void PrintLastError(char* file, i
65    
66  static void printUsage() {  static void printUsage() {
67  #ifdef WIN32  #ifdef WIN32
68      printf(      const wchar_t* msg =
69          "akaidump <source-drive-letter>: <destination-filename>\n"          L"akaidump <source-drive-letter>: <destination-filename>\n"
70          "by Sebastien Métrot (meeloo@meeloo.net)\n\n"          "by S\351bastien M\351trot (meeloo@meeloo.net)\n\n"
71          "Reads an AKAI media (i.e. CDROM, ZIP disk) and writes it as AKAI\n"          "Reads an AKAI media (i.e. CDROM, ZIP disk) and writes it as AKAI\n"
72          "disk image file to your hard disk drive for more convenient and\n"          "disk image file to your hard disk drive for more convenient and\n"
73          "faster further usage.\n\n"          "faster further usage.\n\n"
74          "Available types of your drives:\n"          "Available types of your drives:\n";
75      );      DWORD n = wcslen(msg);
76        WriteConsoleW(GetStdHandle(STD_OUTPUT_HANDLE), msg, n, &n, NULL);
77      char rootpath[4]="a:\\";      char rootpath[4]="a:\\";
78      for (char drive ='a'; drive <= 'z'; drive++) {      for (char drive ='a'; drive <= 'z'; drive++) {
79          rootpath[0] = drive;          rootpath[0] = drive;
# Line 92  static void printUsage() { Line 93  static void printUsage() {
93      }      }
94      printf("\n");      printf("\n");
95  #elif defined _CARBON_  #elif defined _CARBON_
96      printf(      setlocale(LC_CTYPE, "");
97          "akaidump [<source-path>] <destination-filename>\n"      printf("%ls",
98          "by Sebastien Métrot (meeloo@meeloo.net)\n\n"          L"akaidump [<source-path>] <destination-filename>\n"
99            "by S\351bastien M\351trot (meeloo@meeloo.net)\n\n"
100          "Reads an AKAI media (i.e. CDROM, ZIP disk) and writes it as AKAI\n"          "Reads an AKAI media (i.e. CDROM, ZIP disk) and writes it as AKAI\n"
101          "disk image file to your hard disk drive for more convenient and\n"          "disk image file to your hard disk drive for more convenient and\n"
102          "faster further usage.\n\n"          "faster further usage.\n\n"
# Line 103  static void printUsage() { Line 105  static void printUsage() {
105          "<destination-filename> - target filename to write the AKAI disk image to\n\n"          "<destination-filename> - target filename to write the AKAI disk image to\n\n"
106      );      );
107  #else  #else
108      printf(      setlocale(LC_CTYPE, "");
109          "akaidump <source-path> <destination-filename>\n"      printf("%ls",
110          "by Sebastien Métrot (meeloo@meeloo.net)\n"          L"akaidump <source-path> <destination-filename>\n"
111            "by S\351bastien M\351trot (meeloo@meeloo.net)\n"
112          "Linux port by Christian Schoenebeck\n\n"          "Linux port by Christian Schoenebeck\n\n"
113          "Reads an AKAI media (i.e. CDROM, ZIP disk) and writes it as AKAI\n"          "Reads an AKAI media (i.e. CDROM, ZIP disk) and writes it as AKAI\n"
114          "disk image file to your hard disk drive for more convenient and\n"          "disk image file to your hard disk drive for more convenient and\n"

Legend:
Removed from v.2835  
changed lines
  Added in v.2836

  ViewVC Help
Powered by ViewVC