Subversion Repositories spk

Rev

Rev 125 | Rev 127 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 125 Rev 126
Line 354... Line 354...
354
		if ( textid >= 0 && textid <= 3 )
354
		if ( textid >= 0 && textid <= 3 )
355
			return true;
355
			return true;
356
	}
356
	}
357
 
357
 
358
	return false;
358
	return false;
-
 
359
}
-
 
360
 
-
 
361
bool C_File::isFileInAddon() const
-
 
362
{
-
 
363
	switch (m_iFileType)
-
 
364
	{
-
 
365
		case FILETYPE_SHIPMODEL:
-
 
366
		case FILETYPE_SHIPOTHER:
-
 
367
		case FILETYPE_SHIPSCENE:
-
 
368
		case FILETYPE_COCKPITSCENE:
-
 
369
		case FILETYPE_SOUND:
-
 
370
			return false;
-
 
371
	}
-
 
372
 
-
 
373
	return true;
359
}
374
}
360
 
375
 
361
bool C_File::IsFakePatch() const
376
bool C_File::IsFakePatch() const
362
{
377
{
363
	if (m_iFileType != FILETYPE_MOD)
378
	if (m_iFileType != FILETYPE_MOD)
Line 1246... Line 1261...
1246
 
1261
 
1247
	// assume same or newer
1262
	// assume same or newer
1248
	return true;
1263
	return true;
1249
}
1264
}
1250
 
1265
 
1251
CyString GetFileTypeString ( int type )
1266
Utils::String GetFileTypeString(int type)
1252
{
1267
{
1253
	switch ( type )
1268
	switch ( type )
1254
	{
1269
	{
1255
		case FILETYPE_SCRIPT:
1270
		case FILETYPE_SCRIPT:
1256
			return "Script";
1271
			return "Script";
Line 1284... Line 1299...
1284
			return "ShipScene";
1299
			return "ShipScene";
1285
		case FILETYPE_COCKPITSCENE:
1300
		case FILETYPE_COCKPITSCENE:
1286
			return "CockpitScene";
1301
			return "CockpitScene";
1287
	}
1302
	}
1288
 
1303
 
1289
	return NullString;
1304
	return Utils::String::Null();
1290
}
1305
}
1291
 
1306
 
1292
int GetFileTypeFromString ( CyString type )
1307
int GetFileTypeFromString ( CyString type )
1293
{
1308
{
1294
	CyString ltype = type.ToLower();
1309
	CyString ltype = type.ToLower();