OpenClonk
StdResStr2.cpp File Reference
#include "C4Include.h"
Include dependency graph for StdResStr2.cpp:

Go to the source code of this file.

Functions

const char * LoadResStrNoAmp (const char *id)
 

Variables

const int ResStrMaxLen = 4096
 

Function Documentation

◆ LoadResStrNoAmp()

const char* LoadResStrNoAmp ( const char *  id)

Definition at line 23 of file StdResStr2.cpp.

24 {
25  const char * str = LoadResStr(id);
26  char * cpd = strResult;
27  for (const char * cps = str; *cps; ++cps, ++cpd)
28  {
29  if (*cps == '&')
30  --cpd;
31  else
32  *cpd = *cps;
33  }
34  *cpd = 0;
35  return strResult;
36 }
const char * LoadResStr(const char *id)
Definition: C4Language.h:83

References LoadResStr().

Referenced by C4StartupOptionsDlg::C4StartupOptionsDlg(), and C4StartupScenSelDlg::DoOK().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ ResStrMaxLen

const int ResStrMaxLen = 4096

Definition at line 21 of file StdResStr2.cpp.