| 64 | } |
| 65 | |
| 66 | const char* getMessage(u32 msgId) |
| 67 | { |
| 68 | if (!s_loaded) { load(); } |
| 69 | |
| 70 | std::map<u32, std::string>::iterator iMsg = s_msgMap.find(msgId); |
| 71 | if (iMsg == s_msgMap.end()) |
| 72 | { |
| 73 | // cannot find the message. |
| 74 | return nullptr; |
| 75 | } |
| 76 | |
| 77 | return iMsg->second.c_str(); |
| 78 | } |
| 79 | } |