Subversion Repositories spk

Rev

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

Rev 50 Rev 52
Line 175... Line 175...
175
		CyString dir = GetInput();
175
		CyString dir = GetInput();
176
		if ( dir.Empty() )
176
		if ( dir.Empty() )
177
			return NullString;
177
			return NullString;
178
 
178
 
179
		// check if the directory exists
179
		// check if the directory exists
180
		if ( CFileIO(dir + "/x3tc.exe").Exists() )
180
		if ( CFileIO(dir + "/x3tc.exe").ExistsOld() )
181
			return dir;
181
			return dir;
182
		printf("\nTerran Conflict installation doesn't exist: %s\n\n", dir.c_str());
182
		printf("\nTerran Conflict installation doesn't exist: %s\n\n", dir.c_str());
183
	}
183
	}
184
 
184
 
185
	return NullString;
185
	return NullString;
Line 232... Line 232...
232
		printf ( "Error: File, %s, is not an old style XSP file\n", filename.c_str() );
232
		printf ( "Error: File, %s, is not an old style XSP file\n", filename.c_str() );
233
}
233
}
234
 
234
 
235
void ExtractShip(CyString catfile, CyString to, CyString shipid)
235
void ExtractShip(CyString catfile, CyString to, CyString shipid)
236
{
236
{
237
	if ( !CFileIO(catfile).Exists() )
237
	if ( !CFileIO(catfile).ExistsOld() )
238
	{
238
	{
239
		printf ( "Error: Mod File, %s, does not exist\n", catfile.c_str() );
239
		printf ( "Error: Mod File, %s, does not exist\n", catfile.c_str() );
240
		return;
240
		return;
241
	}
241
	}
242
 
242
 
Line 1150... Line 1150...
1150
	return GetInput();
1150
	return GetInput();
1151
}
1151
}
1152
 
1152
 
1153
void GenerateUpdateFile(CyString spkfile)
1153
void GenerateUpdateFile(CyString spkfile)
1154
{
1154
{
1155
	if ( !CFileIO(spkfile).Exists() )
1155
	if ( !CFileIO(spkfile).ExistsOld() )
1156
	{
1156
	{
1157
		printf("Error: The package file, %s, does not exist", spkfile.c_str());
1157
		printf("Error: The package file, %s, does not exist", spkfile.c_str());
1158
		return;
1158
		return;
1159
	}
1159
	}
1160
 
1160
 
Line 1194... Line 1194...
1194
 
1194
 
1195
}
1195
}
1196
 
1196
 
1197
void GeneratePackagerScript(CyString spkfile, CyString toFile)
1197
void GeneratePackagerScript(CyString spkfile, CyString toFile)
1198
{
1198
{
1199
	if ( !CFileIO(spkfile).Exists() )
1199
	if ( !CFileIO(spkfile).ExistsOld() )
1200
	{
1200
	{
1201
		printf("Error: The package file, %s, does not exist", spkfile.c_str());
1201
		printf("Error: The package file, %s, does not exist", spkfile.c_str());
1202
		return;
1202
		return;
1203
	}
1203
	}
1204
 
1204
 
Line 1252... Line 1252...
1252
	Args:	String filename	-	The filename of the packager script to load
1252
	Args:	String filename	-	The filename of the packager script to load
1253
	Desc:	Loads the packager scripts and creates a spk/xsp file from it
1253
	Desc:	Loads the packager scripts and creates a spk/xsp file from it
1254
*/
1254
*/
1255
void LoadPackagerScript(CyString filename, bool verify)
1255
void LoadPackagerScript(CyString filename, bool verify)
1256
{
1256
{
1257
	if ( !CFileIO(filename).Exists() )
1257
	if ( !CFileIO(filename).ExistsOld() )
1258
	{
1258
	{
1259
		printf("Error: The packager script, %s, does not exist", filename.c_str());
1259
		printf("Error: The packager script, %s, does not exist", filename.c_str());
1260
		return;
1260
		return;
1261
	}
1261
	}
1262
 
1262