| 865 | bool MsgBox(int ids, int flags, int idd) |
| 866 | { |
| 867 | return MsgBox(LocalizeString(ids), flags, idd); |
| 868 | } |
| 869 | |
| 870 | bool ProcessTemplateName(RString name, RString dir) |
| 871 | { |
| 872 | char buffer[256]; |
| 873 | snprintf(buffer, sizeof(buffer), "%s", (const char*)name); |
| 874 | |
| 875 | // parse mission name |
| 876 | |
| 877 | // mission |
| 878 | char* world = strchr(buffer, '.'); |
| 879 | if (!world) |
| 880 | { |
| 881 | return false; |
| 882 | } |
| 883 | *world = 0; |
| 884 | world++; |
| 885 | |
| 886 | // world |
| 887 | char* ext = strchr(world, '.'); |
| 888 | if (ext) |
| 889 | { |
| 890 | *ext = 0; |
| 891 | ext++; |
| 892 | PoseidonAssert(stricmp(ext, "sqm") == 0); |
| 893 | } |
| 894 | |
| 895 | SetMission(world, buffer, dir); |
| 896 | return true; |
| 897 | } |
no test coverage detected