mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-15 20:37:42 +01:00
Localization: change to a provided service
This commit is contained in:
parent
aa99be6ccb
commit
efaa346d5e
3 changed files with 32 additions and 14 deletions
|
|
@ -126,7 +126,13 @@ internal static class ServiceManager
|
|||
/// <param name="fs">Instance of <see cref="ReliableFileStorage"/>.</param>
|
||||
/// <param name="configuration">Instance of <see cref="DalamudConfiguration"/>.</param>
|
||||
/// <param name="scanner">Instance of <see cref="TargetSigScanner"/>.</param>
|
||||
public static void InitializeProvidedServices(Dalamud dalamud, ReliableFileStorage fs, DalamudConfiguration configuration, TargetSigScanner scanner)
|
||||
/// <param name="localization">Instance of <see cref="Localization"/>.</param>
|
||||
public static void InitializeProvidedServices(
|
||||
Dalamud dalamud,
|
||||
ReliableFileStorage fs,
|
||||
DalamudConfiguration configuration,
|
||||
TargetSigScanner scanner,
|
||||
Localization localization)
|
||||
{
|
||||
#if DEBUG
|
||||
lock (LoadedServices)
|
||||
|
|
@ -136,6 +142,7 @@ internal static class ServiceManager
|
|||
ProvideService(configuration);
|
||||
ProvideService(new ServiceContainer());
|
||||
ProvideService(scanner);
|
||||
ProvideService(localization);
|
||||
}
|
||||
|
||||
return;
|
||||
|
|
@ -152,6 +159,7 @@ internal static class ServiceManager
|
|||
ProvideService(configuration);
|
||||
ProvideService(new ServiceContainer());
|
||||
ProvideService(scanner);
|
||||
ProvideService(localization);
|
||||
return;
|
||||
|
||||
void ProvideService<T>(T service) where T : IServiceType => Service<T>.Provide(service);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue