/[projet1]/public/pc/tools/osdk/main/makedisk/FloppyBuilder.cpp
Defence Force logotype

Diff of /public/pc/tools/osdk/main/makedisk/FloppyBuilder.cpp

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

revision 1071 by dbug, Fri Jan 3 09:56:25 2014 UTC revision 1072 by dbug, Wed Jan 8 21:07:43 2014 UTC
# Line 71  bool GetNextToken(std::string& returnedT Line 71  bool GetNextToken(std::string& returnedT
71        {        {
72          // Parse error          // Parse error
73          ShowError("Parse error line '%d'\n",lineNumber);          ShowError("Parse error line '%d'\n",lineNumber);
   
74        }        }
75      }      }
76      else      else
# Line 103  void main(int argc, char *argv[]) Line 102  void main(int argc, char *argv[])
102      "  Generating bootable floppies for the Oric computer.\r\n"      "  Generating bootable floppies for the Oric computer.\r\n"
103      "\r\n"      "\r\n"
104      "Usage:\r\n"      "Usage:\r\n"
105      "  {ApplicationName} <description file path>\r\n"      "  {ApplicationName} <init|build> <description file path>\r\n"
106      "\r\n"      "\r\n"
107      );      );
108    
# Line 123  void main(int argc, char *argv[]) Line 122  void main(int argc, char *argv[])
122    }    }
123    
124    
125    if (argc!=2)    if (argc!=3)
126    {    {
127      ShowError(nullptr);      ShowError(nullptr);
128    }    }
129    
130      Floppy floppy;
131    
132      if (!strcmp(argv[param],"init"))
133      {
134        floppy.AllowMissingFiles(true);
135      }
136      else
137      if (!strcmp(argv[param],"build"))
138      {
139        floppy.AllowMissingFiles(false);
140      }
141      else
142      {
143        ShowError("The first parameter should be either 'init' or 'build'.");
144      }
145      param++;
146    
147    
148    //    //
149    // Open the description file    // Open the description file
# Line 139  void main(int argc, char *argv[]) Line 155  void main(int argc, char *argv[])
155      ShowError("Can't load script file '%s'\n",description_name);      ShowError("Can't load script file '%s'\n",description_name);
156    }    }
157    
   //  
   // Copy the floppy disk  
   //  
   Floppy floppy;  
158    
159    std::string outputLayoutFileName;    std::string outputLayoutFileName;
160    std::string targetFloppyDiskName;    std::string targetFloppyDiskName;

Legend:
Removed from v.1071  
changed lines
  Added in v.1072

  ViewVC Help
Powered by ViewVC 1.1.26