skyrim-multiplayer / skymp

Multiplayer Mod & TypeScript SDK for Skyrim Special Edition
Other
223 stars 75 forks source link

feat(skyrim-platform): add builtin IPC call to SkyrimPlatform_OnLoadPluginFile #2211

Closed Pospelove closed 2 weeks ago

Pospelove commented 2 weeks ago

[!IMPORTANT] Adds IPC call SkyrimPlatform_OnLoadPluginFile to modify plugin file loading in CommonExecutionListener.

  • Behavior:
    • Adds PatchPluginFile method in CommonExecutionListener to modify plugin file loading with IPC call SkyrimPlatform_OnLoadPluginFile.
    • Introduces OnLoadPluginFileCallback to handle patched source code.
    • Updates LoadPluginFile to use PatchPluginFile for potential source code modification.
  • Data Structures:
    • Adds tmpPatchedPluginSources as std::optional<std::string> in CommonExecutionListener to store patched source code.
    • Defines Msg struct for IPC communication with onLoadPluginFileCallback, self, and pluginPathUtf8 fields.

This description was created by Ellipsis for 765fd6182fa5235b4305bcd0d620de9647d8da47. It will automatically update as commits are pushed.