Switched the library importing in the launcher to work based on a queue. As a new game is added to the queue, it should find any related data and also add it to the queue. This should result in an easier to maintain importer while reducing the load on the launcher's DAL. This may result in more RAM usage while importing. Local manifests have also been refactored to match manifests in import/export LCX files, removing the old manifest format. This is a large breaking change that will probably break existing game installations. A migration will probably have to be created.
18 lines
581 B
C#
18 lines
581 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using LANCommander.SDK.Models;
|
|
|
|
namespace LANCommander.SDK.Services;
|
|
|
|
public class GameInstallationArchiveInfo
|
|
{
|
|
public Models.Manifest.Game Manifest { get; internal set; }
|
|
public List<ArchiveEntry> Entries { get; private set; } = [];
|
|
public List<SavePathEntry> SavePaths { get; internal set; }
|
|
}
|
|
|
|
public class GameInstallationArchiveEntries
|
|
{
|
|
public GameInstallationArchiveInfo BaseGame { get; internal set; } = new();
|
|
public Dictionary<Guid, GameInstallationArchiveInfo> Addons { get; private set; } = [];
|
|
}
|