Fix reflection for GameVersions

This commit is contained in:
CWX
2025-01-10 22:33:46 +00:00
parent b9316fee63
commit 7bb98b6991
3 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ public class LauncherController
{
var result = new Dictionary<string, string>();
var dbProfiles = _databaseService.GetProfiles();
foreach (var templatesProperty in typeof(ProfileTemplates).GetProperties())
foreach (var templatesProperty in typeof(ProfileTemplates).GetProperties().Where(p => p.CanWrite == true))
{
var propertyValue = templatesProperty.GetValue(dbProfiles);
if (propertyValue == null) {