fix legacy SCUM RCON runtime profile resolution

This commit is contained in:
npc0-hue
2026-08-24 11:27:08 +08:00
parent b69939a5ce
commit dc9b0eaf2a
4 changed files with 64 additions and 8 deletions
+1 -6
View File
@@ -441,12 +441,7 @@ func runtimeProfileActionRef(actions domain.PluginLifecycleActions, action domai
}
func runtimeLifecycleProfileForKey(profiles domain.GamePluginRuntimeProfiles, key string) (domain.RuntimeLifecycleProfile, bool) {
for _, profile := range profiles.LifecycleProfiles {
if profile.Key == key {
return profile, true
}
}
return domain.RuntimeLifecycleProfile{}, false
return runtimeLifecycleProfile(profiles, key)
}
func lifecycleDLLExtensionPlans(profiles domain.GamePluginRuntimeProfiles, profile domain.RuntimeLifecycleProfile, endpoint domain.RunEndpoint) ([]domain.RuntimeDLLExtensionPlan, error) {