| 91 | } |
| 92 | |
| 93 | const char* ScriptFactorySingleton::ProduceScript(const char* sScriptName) const |
| 94 | { |
| 95 | const char* script = static_cast<const char*>(Produce(sScriptName)); |
| 96 | |
| 97 | if (!script) { |
| 98 | #ifdef FC_DEBUG |
| 99 | Console().warning("\"%s\" is not registered\n", sScriptName); |
| 100 | #endif |
| 101 | return ""; // no data |
| 102 | } |
| 103 | |
| 104 | return script; |
| 105 | } |
no test coverage detected