Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
parent
75e2abbe6e
commit
34ad2d9a23
1 changed files with 4 additions and 14 deletions
|
@ -210,26 +210,16 @@ namespace common2
|
||||||
{
|
{
|
||||||
g_nMemoryClearType = options.memclear;
|
g_nMemoryClearType = options.memclear;
|
||||||
|
|
||||||
LPSTR szImageName_drive[NUM_DRIVES];
|
LPSTR szImageName_drive[NUM_DRIVES] = {nullptr, nullptr};
|
||||||
bool driveConnected[NUM_DRIVES];
|
bool driveConnected[NUM_DRIVES] = {true, true};
|
||||||
|
|
||||||
if (options.disk1.empty())
|
if (!options.disk1.empty())
|
||||||
{
|
{
|
||||||
driveConnected[DRIVE_1] = false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
driveConnected[DRIVE_1] = true;
|
|
||||||
szImageName_drive[DRIVE_2] = const_cast<char *>(options.disk1.c_str());
|
szImageName_drive[DRIVE_2] = const_cast<char *>(options.disk1.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (options.disk2.empty())
|
if (!options.disk2.empty())
|
||||||
{
|
{
|
||||||
driveConnected[DRIVE_2] = false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
driveConnected[DRIVE_2] = true;
|
|
||||||
szImageName_drive[DRIVE_2] = const_cast<char *>(options.disk2.c_str());
|
szImageName_drive[DRIVE_2] = const_cast<char *>(options.disk2.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue