1
0
KF2-Dev-Scripts/WebAdmin/Classes/QHDefaultsKF.uc
2020-12-13 18:01:13 +03:00

19 lines
586 B
Ucode

/**
* Adds Killing Floor 2 specific information to current defaults handler.
*
* Copyright (C) 2015 Tripwire Interactive LLC
*
* @author Michiel 'elmuerte' Hendriks
*/
class QHDefaultsKF extends QHDefaults;
`include(WebAdmin.uci)
function string rewriteSettingsClassname(string pkgName, string clsName)
{
// rewrite standard game classes to WebAdmin
if (pkgName ~= "KFGame") pkgName = string(class.getPackageName());
else if (pkgName ~= "KFGameContent") pkgName = string(class.getPackageName());
return super.rewriteSettingsClassname(pkgName, clsName);
}