mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-10 03:51:18 +00:00
Merge pull request #314 from ensiform/cpp11_string_concat_fixes
C++11 and newer reserves X"foo" and "bar"Y for string literal syntax.
This commit is contained in:
commit
d2c0ce4370
1 changed files with 6 additions and 6 deletions
|
@ -724,7 +724,7 @@ CGameDescription::CGameDescription( xmlDocPtr pDoc, const Str &GameFile ){
|
||||||
// on win32, game tools path can now be specified relative to the exe's cwd
|
// on win32, game tools path can now be specified relative to the exe's cwd
|
||||||
prop = (char*)xmlGetProp( pNode, (xmlChar*)TOOLS_ATTRIBUTE );
|
prop = (char*)xmlGetProp( pNode, (xmlChar*)TOOLS_ATTRIBUTE );
|
||||||
if ( prop == NULL ) {
|
if ( prop == NULL ) {
|
||||||
Error( "Didn't find '"TOOLS_ATTRIBUTE "' node in the game description file '%s'\n", pDoc->URL );
|
Error( "Didn't find '" TOOLS_ATTRIBUTE "' node in the game description file '%s'\n", pDoc->URL );
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
char full[PATH_MAX];
|
char full[PATH_MAX];
|
||||||
|
@ -3605,11 +3605,11 @@ void CGameInstall::Run() {
|
||||||
// - TTimo
|
// - TTimo
|
||||||
fprintf( fg, "<?xml version=\"1.0\" encoding=\"iso-8859-1\" standalone=\"yes\"?>\n<game\n" );
|
fprintf( fg, "<?xml version=\"1.0\" encoding=\"iso-8859-1\" standalone=\"yes\"?>\n<game\n" );
|
||||||
fprintf( fg, " name=\"%s\"\n", m_strName.GetBuffer() );
|
fprintf( fg, " name=\"%s\"\n", m_strName.GetBuffer() );
|
||||||
fprintf( fg, " "ENGINEPATH_ATTRIBUTE "=\"%s\"\n", m_strEngine.GetBuffer() );
|
fprintf( fg, " " ENGINEPATH_ATTRIBUTE "=\"%s\"\n", m_strEngine.GetBuffer() );
|
||||||
fprintf( fg, " "TOOLS_ATTRIBUTE "=\"%sinstalls/%s/game\"\n", g_strAppPath.GetBuffer(), gamePack.GetBuffer() );
|
fprintf( fg, " " TOOLS_ATTRIBUTE "=\"%sinstalls/%s/game\"\n", g_strAppPath.GetBuffer(), gamePack.GetBuffer() );
|
||||||
|
|
||||||
if ( m_strExecutables.GetLength() > 0 ) {
|
if ( m_strExecutables.GetLength() > 0 ) {
|
||||||
fprintf( fg, " "EXECUTABLES_ATTRIBUTE "=\"%s\"\n", m_strExecutables.GetBuffer() );
|
fprintf( fg, " " EXECUTABLES_ATTRIBUTE "=\"%s\"\n", m_strExecutables.GetBuffer() );
|
||||||
}
|
}
|
||||||
|
|
||||||
switch ( m_availGames[ m_nComboSelect ] ) {
|
switch ( m_availGames[ m_nComboSelect ] ) {
|
||||||
|
@ -3708,9 +3708,9 @@ void CGameInstall::Run() {
|
||||||
}
|
}
|
||||||
case GAME_ET: {
|
case GAME_ET: {
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
fprintf( fg, " "ENGINE_ATTRIBUTE "=\"ET.exe\"\n");
|
fprintf( fg, " " ENGINE_ATTRIBUTE "=\"ET.exe\"\n");
|
||||||
#elif __linux__
|
#elif __linux__
|
||||||
fprintf( fg, " "ENGINE_ATTRIBUTE "=\"et\"\n" );
|
fprintf( fg, " " ENGINE_ATTRIBUTE "=\"et\"\n" );
|
||||||
#endif
|
#endif
|
||||||
fprintf( fg, " prefix=\".etwolf\"\n" );
|
fprintf( fg, " prefix=\".etwolf\"\n" );
|
||||||
fprintf( fg, " basegame=\"etmain\"\n" );
|
fprintf( fg, " basegame=\"etmain\"\n" );
|
||||||
|
|
Loading…
Reference in a new issue