MCPcopy Create free account
hub / github.com/JACoders/OpenJK / SE_GetFoundFile

Function SE_GetFoundFile

code/qcommon/stringed_ingame.cpp:892–919  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

890}
891
892static 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

Callers 2

SE_GetNumLanguagesFunction · 0.70
SE_LoadLanguageFunction · 0.70

Calls 2

c_strMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected