refactor: ModConfig lateInit

This commit is contained in:
rhunk
2023-10-25 03:20:48 +02:00
parent a4b7432006
commit be4a0f5ccd
5 changed files with 24 additions and 10 deletions

View File

@ -57,7 +57,7 @@ class RemoteSideContext(
set(value) { _activity?.clear(); _activity = WeakReference(value) }
val sharedPreferences: SharedPreferences get() = androidContext.getSharedPreferences("prefs", 0)
val config = ModConfig()
val config = ModConfig(androidContext)
val translation = LocaleWrapper()
val mappings = MappingsWrapper()
val downloadTaskManager = DownloadTaskManager()