Added blocksize, doudf, and doiso flags.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5550 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -19,7 +19,12 @@
|
|||||||
#include "UdfBuilder.h"
|
#include "UdfBuilder.h"
|
||||||
|
|
||||||
Shell::Shell()
|
Shell::Shell()
|
||||||
|
// The following settings are essentially default values
|
||||||
|
// for all the command-line options.
|
||||||
: fVerbosityLevel(VERBOSITY_HIGH)
|
: fVerbosityLevel(VERBOSITY_HIGH)
|
||||||
|
, fBlockSize(2048)
|
||||||
|
, fDoUdf(true)
|
||||||
|
, fDoIso(false)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -30,11 +35,16 @@ Shell::Run(int argc, char *argv[])
|
|||||||
status_t error = _ProcessArguments(argc, argv);
|
status_t error = _ProcessArguments(argc, argv);
|
||||||
if (!error) {
|
if (!error) {
|
||||||
ConsoleListener listener(fVerbosityLevel);
|
ConsoleListener listener(fVerbosityLevel);
|
||||||
UdfBuilder builder(listener);
|
UdfBuilder builder("./output.img", fBlockSize, fDoUdf, fDoIso,
|
||||||
builder.Build();
|
listener);
|
||||||
} else {
|
error = builder.InitCheck();
|
||||||
_PrintHelp();
|
if (!error)
|
||||||
|
error = builder.Build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (error)
|
||||||
|
_PrintHelp();
|
||||||
|
|
||||||
RETURN(error);
|
RETURN(error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -27,6 +27,9 @@ private:
|
|||||||
void _PrintHelp();
|
void _PrintHelp();
|
||||||
|
|
||||||
VerbosityLevel fVerbosityLevel;
|
VerbosityLevel fVerbosityLevel;
|
||||||
|
uint32 fBlockSize;
|
||||||
|
bool fDoUdf;
|
||||||
|
bool fDoIso;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user