| 890 | } |
| 891 | |
| 892 | static const char *SE_GetFoundFile( std::string &strResult ) |
| 893 | { |
| 894 | static char sTemp[1024/*MAX_PATH*/]; |
| 895 | |
| 896 | if (!strlen(strResult.c_str())) |
| 897 | return NULL; |
| 898 | |
| 899 | strncpy(sTemp,strResult.c_str(),sizeof(sTemp)-1); |
| 900 | sTemp[sizeof(sTemp)-1]='\0'; |
| 901 | |
| 902 | char *psSemiColon = strchr(sTemp,';'); |
| 903 | if ( psSemiColon) |
| 904 | { |
| 905 | *psSemiColon = '\0'; |
| 906 | |
| 907 | strResult.erase(0,(psSemiColon-sTemp)+1); |
| 908 | } |
| 909 | else |
| 910 | { |
| 911 | // no semicolon found, probably last entry? (though i think even those have them on, oh well) |
| 912 | // |
| 913 | strResult.erase(); |
| 914 | } |
| 915 | |
| 916 | // strlwr(sTemp); // just for consistancy and set<> -> set<> erasure checking etc |
| 917 | |
| 918 | return sTemp; |
| 919 | } |
| 920 | |
| 921 | //////////// API entry points from rest of game.... ////////////////////////////// |
| 922 |
no test coverage detected