Skip to content

Commit

Permalink
Added: Mod Template support for ReadyToRun
Browse files Browse the repository at this point in the history
  • Loading branch information
Sewer56 committed Jun 14, 2022
1 parent 9b6aa5c commit 56663cd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
"ModDescription": "ModDescriptionValue",
"ModDll": "Reloaded.Mod.Template.dll",
"ModIcon": "Preview.png",
"ModR2RManagedDll32": "",
"ModR2RManagedDll64": "",
"ModR2RManagedDll32": "x86/Reloaded.Mod.Template.dll",
"ModR2RManagedDll64": "x64/Reloaded.Mod.Template.dll",
"ModNativeDll32": "",
"ModNativeDll64": "",
"IsLibrary": false,
"ReleaseMetadataFileName": "Sewer56.Update.ReleaseMetadata.json",
"PluginData": {},
"IsUniversalMod": false,
"ModDependencies": ["reloaded.sharedlib.hooks"],
"ModDependencies": [ "reloaded.sharedlib.hooks" ],
"OptionalDependencies": [],
"SupportedAppId": []
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ public void StartEx(IModLoaderV1 loaderApi, IModConfigV1 modConfig)
Debugger.Launch();
#endif

// For more information about this template, please see
// https://reloaded-project.github.io/Reloaded-II/ModTemplate/

_modLoader = (IModLoader) loaderApi;
_modConfig = (IModConfig) modConfig;
_logger = (ILogger)_modLoader.GetLogger();
Expand All @@ -66,10 +69,8 @@ public void StartEx(IModLoaderV1 loaderApi, IModConfigV1 modConfig)
_configuration = configurator.GetConfiguration<Config>(0);
_configuration.ConfigurationUpdated += OnConfigurationUpdated;

/*
Your mod code starts below.
Visit https://github.com/Reloaded-Project for additional optional libraries.
*/
// Please put your mod code in the class below,
// use this class for only interfacing with mod loader.
_mod = new Mod(_hooks, _logger);
}

Expand Down

0 comments on commit 56663cd

Please sign in to comment.