//
// =======================================================================================================================
//    Map_ImportFile
// =======================================================================================================================
//
void Map_ImportFile( char *fileName ) {
	char	*buf;
	idStr	temp;
	Sys_BeginWait();
	temp = fileName;
	temp.BackSlashesToSlashes();
	if( LoadFile( temp, ( void ** ) &buf ) != -1 ) {
		Map_ImportBuffer( buf );
		Mem_Free( buf );
		Map_BuildBrushData();
	}
	Sys_UpdateWindows( W_ALL );
	mapModified = 1;
	Sys_EndWait();
}
Exemple #2
0
//
//================
//Map_ImportFile
//================
//
void Map_ImportFile (char *filename)
{
  char* buf;
	char temp[1024];
	Sys_BeginWait ();
	QE_ConvertDOSToUnixName( temp, filename );
  if (LoadFile (filename, (void **)&buf) != -1)
  {
    Map_ImportBuffer(buf);
    free(buf);
    Map_BuildBrushData();
  }
	Sys_UpdateWindows (W_ALL);
	modified = true;
	Sys_EndWait();
}