-
Notifications
You must be signed in to change notification settings - Fork 18
getDefaultProfile
Ben edited this page Aug 16, 2022
·
1 revision
Returns the default TRP3 profile, used when creating new profiles.
TRP3_API.profile.getDefaultProfile()
-
PR_DEFAULT_PROFILE
: The default profile used by TRP3 when creating new profiles. Unlikely to ever be used outside of this context.
This function doesn't have much use outside of TRP3 itself, below is an example as to how it is used.
-- Creating a new profile using the default profile as a template
local defaultProfile = TRP3_API.profile.getDefaultProfile
local function createProfile(profileName)
return duplicateProfile(defaultProfile, profileName);
end