Legacy:ProfileExporter
From Unreal Wiki, The Unreal Engine Documentation Site
//-----------------------------------------------------------
// Ladder.ProfileExporter
//
// Stores custom mutator & map download locations
// Writes profile information to .txt file
//-----------------------------------------------------------
class ProfileExporter extends Object within LadderQuery
config(LadderProfiles);
struct FileZip
{
var string ZipName;
var string ZipURL;
};
var config array<FileZip> Zips;
function AddZipLocation(string ZipName, string URL)
{
local FileZip Zip;
local bool ZipFound;
local int i;
Zip.ZipName = ZipName;
Zip.ZipURL = URL;
// Find out if we already have this zip on file
// If so, overwrite it
for ( i = 0; i < Zips.Length; i++ )
{
if (Zips[i].ZipName ~= ZipName)
{
ZipFound = True;
break;
}
}
if (ZipFound) Zips[i] = Zip;
else Zips[Zips.Length] = Zip;
SaveConfig();
}
function DeleteZipLocation(string ZipName)
{
local int i;
for (i=0;i<Zips.Length;i++)
if (Zips[i].ZipName ~= ZipName)
Zips.Remove(i,1);
SaveConfig();
}
function string FindZipLocation(string ZipName)
{
local int i;
for (i=0;i<Zips.Length;i++)
if (Zips[i].ZipName ~= ZipName)
return Zips[i].ZipURL;
}