2026-01-09 19:31:37 +01:00
|
|
|
|
#include "f4se/PluginAPI.h"
|
|
|
|
|
|
#include <shlobj.h>
|
|
|
|
|
|
|
|
|
|
|
|
// Informaci<63>n del Mod
|
|
|
|
|
|
IDebugLog gLog;
|
|
|
|
|
|
PluginHandle g_pluginHandle = kPluginHandle_Invalid;
|
|
|
|
|
|
F4SEMessagingInterface* g_messaging = NULL;
|
2026-01-06 19:12:21 +01:00
|
|
|
|
|
2026-01-06 19:58:58 +01:00
|
|
|
|
extern "C" {
|
2026-01-09 19:31:37 +01:00
|
|
|
|
// Esta funci<63>n la llama F4SE al arrancar para ver si el mod es compatible
|
|
|
|
|
|
bool F4SEPlugin_Query(const F4SEInterface* f4se, PluginInfo* info) {
|
|
|
|
|
|
gLog.OpenRelative(CSIDL_MYDOCUMENTS, "\\My Games\\Fallout4\\F4SE\\F4MP_Project.log");
|
2026-01-06 19:12:21 +01:00
|
|
|
|
|
2026-01-09 19:31:37 +01:00
|
|
|
|
// Datos del mod
|
|
|
|
|
|
info->infoVersion = PluginInfo::kInfoVersion;
|
|
|
|
|
|
info->name = "F4MP_Project";
|
|
|
|
|
|
info->version = 1;
|
|
|
|
|
|
|
|
|
|
|
|
if (f4se->runtimeVersion != RUNTIME_VERSION_1_10_163) {
|
|
|
|
|
|
_MESSAGE("ERROR: Version de juego no compatible.");
|
|
|
|
|
|
return false;
|
|
|
|
|
|
}
|
2026-01-06 19:12:21 +01:00
|
|
|
|
|
2026-01-06 19:58:58 +01:00
|
|
|
|
return true;
|
2026-01-06 19:12:21 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-09 19:31:37 +01:00
|
|
|
|
// Esta funci<63>n se ejecuta cuando el mod se carga oficialmente
|
|
|
|
|
|
bool F4SEPlugin_Load(const F4SEInterface* f4se) {
|
|
|
|
|
|
_MESSAGE("F4MP: Protocolo de terminal cargado correctamente.");
|
|
|
|
|
|
|
|
|
|
|
|
g_pluginHandle = f4se->GetPluginHandle();
|
|
|
|
|
|
|
|
|
|
|
|
// Aqu<71> es donde en el futuro "engancharemos" los datos
|
|
|
|
|
|
return true;
|
2026-01-06 19:12:21 +01:00
|
|
|
|
}
|
2026-01-09 19:31:37 +01:00
|
|
|
|
};
|