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,9 +26,16 @@ namespace Mist {
std::cerr << "Input from stdin not yet supported" << std::endl; std::cerr << "Input from stdin not yet supported" << std::endl;
return false; return false;
} }
if (config->getString("output") == "-") { if (!config->getBool("player")){
std::cerr << "Output to stdout not yet supported" << std::endl; if (config->getString("output") == "-") {
return false; 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 //open File

View file

@ -26,9 +26,16 @@ namespace Mist {
std::cerr << "Input from stdin not yet supported" << std::endl; std::cerr << "Input from stdin not yet supported" << std::endl;
return false; return false;
} }
if (config->getString("output") == "-") { if (!config->getBool("player")){
std::cerr << "Output to stdout not yet supported" << std::endl; if (config->getString("output") == "-") {
return false; 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 //open File

View file

@ -24,9 +24,16 @@ namespace Mist {
std::cerr << "Input from stdin not yet supported" << std::endl; std::cerr << "Input from stdin not yet supported" << std::endl;
return false; return false;
} }
if (config->getString("output") == "-") { if (!config->getBool("player")){
std::cerr << "Output to stdout not yet supported" << std::endl; if (config->getString("output") == "-") {
return false; 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 //open File