rename Profile(pn) to GetPlayerOrMachineProfile(pn) so that the Profile class will show up in Lua.xml
This commit is contained in:
@@ -224,10 +224,10 @@ end;
|
|||||||
--[[ ----------------------------------------------------------------------- ]]
|
--[[ ----------------------------------------------------------------------- ]]
|
||||||
|
|
||||||
--[[ profile stuff ]]
|
--[[ profile stuff ]]
|
||||||
-- Profile(pn)
|
-- GetPlayerOrMachineProfile(pn)
|
||||||
-- This returns a profile, preferably a player one.
|
-- This returns a profile, preferably a player one.
|
||||||
-- If there isn't one, we fall back on the machine profile.
|
-- If there isn't one, we fall back on the machine profile.
|
||||||
function Profile(pn)
|
function GetPlayerOrMachineProfile(pn)
|
||||||
if PROFILEMAN:IsPersistentProfile(pn) then
|
if PROFILEMAN:IsPersistentProfile(pn) then
|
||||||
-- player profile
|
-- player profile
|
||||||
return PROFILEMAN:GetProfile(pn);
|
return PROFILEMAN:GetProfile(pn);
|
||||||
|
|||||||
Reference in New Issue
Block a user