mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-23 11:04:44 +00:00
Since we now generate warnings/messages for engine instantiation failures in a central place, get rid of such messages printed by engines
svn-id: r24686
This commit is contained in:
parent
1f26cb8965
commit
8d37c135c0
@ -642,7 +642,6 @@ PluginError Engine_AGI_create(OSystem *syst, Engine **engine) {
|
||||
FSList fslist;
|
||||
FilesystemNode dir(ConfMan.get("path"));
|
||||
if (!dir.listDir(fslist, FilesystemNode::kListFilesOnly)) {
|
||||
warning("AgiEngine: invalid game path '%s'", dir.path().c_str());
|
||||
return kInvalidPathError;
|
||||
}
|
||||
|
||||
@ -657,7 +656,6 @@ PluginError Engine_AGI_create(OSystem *syst, Engine **engine) {
|
||||
}
|
||||
}
|
||||
|
||||
warning("AgiEngine: Unable to locate game data at path '%s'", dir.path().c_str());
|
||||
return kNoGameDataFoundError;
|
||||
}
|
||||
|
||||
|
@ -1410,7 +1410,6 @@ PluginError Engine_SCUMM_create(OSystem *syst, Engine **engine) {
|
||||
FSList fslist;
|
||||
FilesystemNode dir(ConfMan.get("path"));
|
||||
if (!dir.listDir(fslist, FilesystemNode::kListFilesOnly)) {
|
||||
warning("ScummEngine: invalid game path '%s'", dir.path().c_str());
|
||||
return kInvalidPathError;
|
||||
}
|
||||
|
||||
@ -1421,7 +1420,6 @@ PluginError Engine_SCUMM_create(OSystem *syst, Engine **engine) {
|
||||
|
||||
// Unable to locate game data
|
||||
if (results.empty()) {
|
||||
warning("ScummEngine: unable to locate game data at path '%s'", dir.path().c_str());
|
||||
return kNoGameDataFoundError;
|
||||
}
|
||||
|
||||
|
@ -113,7 +113,6 @@ PluginError Engine_SWORD2_create(OSystem *syst, Engine **engine) {
|
||||
FSList fslist;
|
||||
FilesystemNode dir(ConfMan.get("path"));
|
||||
if (!dir.listDir(fslist, FilesystemNode::kListFilesOnly)) {
|
||||
warning("Sword2Engine: invalid game path '%s'", dir.path().c_str());
|
||||
return kInvalidPathError;
|
||||
}
|
||||
|
||||
@ -128,7 +127,6 @@ PluginError Engine_SWORD2_create(OSystem *syst, Engine **engine) {
|
||||
}
|
||||
}
|
||||
|
||||
warning("Sword2Engine: Unable to locate game data at path '%s'", dir.path().c_str());
|
||||
return kNoGameDataFoundError;
|
||||
}
|
||||
|
||||
|
@ -138,12 +138,10 @@ PluginError Engine_TOUCHE_create(OSystem *system, Engine **engine) {
|
||||
FSList fslist;
|
||||
FilesystemNode dir(ConfMan.get("path"));
|
||||
if (!dir.listDir(fslist, FilesystemNode::kListFilesOnly)) {
|
||||
warning("ToucheEngine: invalid game path '%s'", dir.path().c_str());
|
||||
return kInvalidPathError;
|
||||
}
|
||||
DetectedGameList game = Engine_TOUCHE_detectGames(fslist);
|
||||
if (game.size() != 1) {
|
||||
warning("ToucheEngine: Unable to locate game data in '%s'", dir.path().c_str());
|
||||
return kNoGameDataFoundError;
|
||||
}
|
||||
assert(engine);
|
||||
|
Loading…
x
Reference in New Issue
Block a user