Properly fixed earlier MistIn fixes

This commit is contained in:
Thulinma 2014-04-30 15:40:48 +02:00
parent ce26adb105
commit d7ad0b3207
3 changed files with 30 additions and 9 deletions

View file

@ -26,10 +26,17 @@ namespace Mist {
std::cerr << "Input from stdin not yet supported" << std::endl;
return false;
}
if (!config->getBool("player")){
if (config->getString("output") == "-") {
std::cerr << "Output to stdout not yet supported" << std::endl;
return false;
}
}else{
if (config->getString("output") != "-") {
std::cerr << "File output in player mode not supported" << std::endl;
return false;
}
}
//open File
inFile = DTSC::File(config->getString("input"));

View file

@ -26,10 +26,17 @@ namespace Mist {
std::cerr << "Input from stdin not yet supported" << std::endl;
return false;
}
if (!config->getBool("player")){
if (config->getString("output") == "-") {
std::cerr << "Output to stdout not yet supported" << std::endl;
return false;
}
}else{
if (config->getString("output") != "-") {
std::cerr << "File output in player mode not supported" << std::endl;
return false;
}
}
//open File
inFile = fopen(config->getString("input").c_str(), "r");

View file

@ -24,10 +24,17 @@ namespace Mist {
std::cerr << "Input from stdin not yet supported" << std::endl;
return false;
}
if (!config->getBool("player")){
if (config->getString("output") == "-") {
std::cerr << "Output to stdout not yet supported" << std::endl;
return false;
}
}else{
if (config->getString("output") != "-") {
std::cerr << "File output in player mode not supported" << std::endl;
return false;
}
}
//open File
inFile = fopen(config->getString("input").c_str(), "r");