Page 1 of 1

[README] ExamplePlugin - Framework for writing plugins.

Posted: Thu Apr 12, 2018 9:41 pm
by atom0s
Hello developers!

If you are interested in writing plugins for rMod, you can download the example plugin framework from here:
https://github.com/KoA-rMod/ExamplePlugin

This is a simple, bare-bones, plugin framework to help get you started.
This plugin framework was written in Visual Studio 2017 (v15.6.5) but can be compiled using any C++ compiler, such as gcc if you prefer.

Plugins can be written in any language that conforms to the requirements of the plugin framework:
- Must be able to export the required calls.
- Must be able to create and export properly, a plugin class that inherits from IPlugin like the 'ExamplePlugin' class seen in this example.
- Must be able to properly export the required plugin exports (GetInterfaceVersion, CreatePluginInfo, CreatePlugin)
- Must be able to properly export the required plugin exports using the __stdcall calling convention.

Failure to properly meet these requirements will more than likely crash rMod or have unexpected results.