OpenClonk
C4ConsoleQtState.cpp File Reference
Include dependency graph for C4ConsoleQtState.cpp:

Go to the source code of this file.

Classes

class  ExecRecursionCheck
 
struct  EditorWindowState
 

Functions

void SplitMaterialTexture (const QString &mat_tex, QString *mat, QString *tex)
 

Variables

C4ConsoleQtTranslator qt_translator
 

Function Documentation

◆ SplitMaterialTexture()

void SplitMaterialTexture ( const QString &  mat_tex,
QString *  mat,
QString *  tex 
)

Definition at line 473 of file C4ConsoleQtState.cpp.

474 {
475  int sep = mat_tex.indexOf('-');
476  if (sep < 0)
477  {
478  *mat = mat_tex;
479  *tex = QString();
480  }
481  else
482  {
483  *mat = mat_tex.mid(0, sep);
484  *tex = mat_tex.mid(sep + 1);
485  }
486 }

Variable Documentation

◆ qt_translator

C4ConsoleQtTranslator qt_translator

Definition at line 52 of file C4ConsoleQtState.cpp.