| 251 | |
| 252 | |
| 253 | void CStringEdPackage::SetupNewFileParse( const char *psFileName, SE_BOOL bLoadDebug ) |
| 254 | { |
| 255 | char sString[ iSE_MAX_FILENAME_LENGTH ]; |
| 256 | |
| 257 | strcpy(sString, Filename_WithoutPath( Filename_WithoutExt( psFileName ) )); |
| 258 | Q_strupr(sString); |
| 259 | |
| 260 | m_strCurrentFileRef_ParseOnly = sString; // eg "OBJECTIVES" |
| 261 | m_strLoadingLanguage_ParseOnly = ExtractLanguageFromPath( psFileName ); |
| 262 | m_bLoadingEnglish_ParseOnly = (!Q_stricmp( m_strLoadingLanguage_ParseOnly.c_str(), "english" )) ? SE_TRUE : SE_FALSE; |
| 263 | m_bLoadDebug = bLoadDebug; |
| 264 | } |
| 265 | |
| 266 | |
| 267 | // returns SE_TRUE if supplied keyword found at line start (and advances supplied ptr past any whitespace to next arg (or line end if none), |
no test coverage detected