feat: Improvements in module exports

Add new `Inkay_GetStatus` which can be used for retrieving the status of
the module. Also add better handling of module initialization, and show
a notification from the plugin if the module can't be found.
This commit is contained in:
Daniel López Guimaraes 2024-10-29 18:24:13 +00:00 committed by Ash Logan
commit 7958373394
7 changed files with 104 additions and 4 deletions

View file

@ -16,4 +16,14 @@
#pragma once
enum class InkayStatus {
Uninitialized, ///< The module isn't initialized
Nintendo, ///< The module is initialized but hasn't applied any patches
Pretendo, ///< The module is initialized and has applied the Pretendo patches
Error = -1 ///< Failed to retrieve the module status
};
void Inkay_Initialize(bool apply_patches);
void Inkay_Finalize();
InkayStatus Inkay_GetStatus();