Added "Report a bug" to the start menu

This commit is contained in:
Eddoursul 2022-08-02 21:27:22 +02:00
parent bf2db76fd5
commit cdc19f4e52
13 changed files with 10 additions and 6 deletions

BIN
SKSE/Plugins/EnderalSE.dll (Stored with Git LFS)

Binary file not shown.

BIN
interface/startmenu.swf (Stored with Git LFS)

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,5 +1,6 @@
#include "EventListener.h"
#include "Util.h"
#include <shellapi.h>
auto EventListener::GetSingleton() -> EventListener*
{
@ -18,7 +19,10 @@ auto EventListener::ProcessEvent(
RE::BSTEventSource<SKSE::ModCallbackEvent>* a_eventSource)
-> RE::BSEventNotifyControl
{
//
if (a_event->eventName == "Enderal_OpenHelpURL") {
ShowWindow(GetForegroundWindow(), SW_MINIMIZE);
ShellExecuteA(NULL, "open", "https://discord.gg/s9H925auNN", NULL, NULL, SW_SHOWNORMAL);
}
return RE::BSEventNotifyControl::kContinue;
}

View File

@ -65,7 +65,7 @@ namespace {
EventListener::Install();
} else if (message->type == MessagingInterface::kPostPostLoad) {
//
SKSE::GetModCallbackEventSource()->AddEventSink(EventListener::GetSingleton());
} else if (message->type == MessagingInterface::kDataLoaded) {
const auto dataHandler = RE::TESDataHandler::GetSingleton();
if (dataHandler) {