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

Method SetupNewFileParse

code/qcommon/stringed_ingame.cpp:253–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251
252
253void 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),

Callers 1

SE_Load_ActualFunction · 0.45

Calls 5

Q_struprFunction · 0.85
Q_stricmpFunction · 0.85
Filename_WithoutPathFunction · 0.50
Filename_WithoutExtFunction · 0.50
c_strMethod · 0.45

Tested by

no test coverage detected