LaunchBoxContributors
On this page

IStorefrontLegacyDataCompatibilityCapability14.1

Interface in Unbroken.LaunchBox.Plugins.Components.Storefronts

C#
public interface IStorefrontLegacyDataCompatibilityCapability
Converts between legacy LaunchBox game fields and provider-owned game data.

Methods

ExportLegacyGameData

C#
StorefrontLegacyData ExportLegacyGameData(ProviderItemContext game)
Produces legacy fields that let older LaunchBox versions use a storefront game.
game
The game identifier and provider-owned data to export.

Returns

The compatible application path and named legacy field values.

ImportLegacyGameData

C#
ProviderItemData? ImportLegacyGameData(
    ProviderItemContext game,
    StorefrontLegacyData legacyGame
)
Reconstructs provider-owned data from a game's legacy fields.
game
The logical game identifier and any provider data already available.
legacyGame
The legacy application path and named compatibility fields.

Returns

The reconstructed provider data, or null to retain the existing provider data.

Remarks

The host may call this again after an application-path edit or when associating an existing entry. Preserve unrelated and unsupported provider data.