|
|
@ -35,11 +35,11 @@ namespace { |
|
|
|
{ |
|
|
|
{ |
|
|
|
GetMessagingInterface()->RegisterListener([](MessagingInterface::Message* message) { |
|
|
|
GetMessagingInterface()->RegisterListener([](MessagingInterface::Message* message) { |
|
|
|
if (message->type == MessagingInterface::kPostLoad) { |
|
|
|
if (message->type == MessagingInterface::kPostLoad) { |
|
|
|
if ((std::filesystem::exists("Data\\Dawnguard.esm") && std::filesystem::file_size("Data\\Dawnguard.esm") > 1000000) || (std::filesystem::exists("Data\\Dragonborn.esm") && std::filesystem::file_size("Data\\Dragonborn.esm") > 1000000) || (std::filesystem::exists("Data\\HearthFires.esm") && std::filesystem::file_size("Data\\HearthFires.esm") > 1000000) || (std::filesystem::exists("Data\\Update.esm") && std::filesystem::file_size("Data\\Update.esm") > 1000000)) { |
|
|
|
if (DataFileExists("Dawnguard.esm") || DataFileExists("Dragonborn.esm") || DataFileExists("HearthFires.esm") || DataFileExists("Update.esm")) { |
|
|
|
MessageBoxW(NULL, L"Skyrim DLCs are incompatible with Enderal.", L"Error", MB_OK | MB_ICONERROR); |
|
|
|
MessageBoxW(NULL, L"Skyrim DLCs are incompatible with Enderal.", L"Error", MB_OK | MB_ICONERROR); |
|
|
|
exit(EXIT_FAILURE); |
|
|
|
exit(EXIT_FAILURE); |
|
|
|
} |
|
|
|
} |
|
|
|
if (std::filesystem::exists("Data\\Unofficial Skyrim Special Edition Patch.esp")) { |
|
|
|
if (DataFileExists("Unofficial Skyrim Special Edition Patch.esp")) { |
|
|
|
MessageBoxW(NULL, L"Unofficial Skyrim Special Edition Patch is incompatible with Enderal.", L"Error", MB_OK | MB_ICONERROR); |
|
|
|
MessageBoxW(NULL, L"Unofficial Skyrim Special Edition Patch is incompatible with Enderal.", L"Error", MB_OK | MB_ICONERROR); |
|
|
|
exit(EXIT_FAILURE); |
|
|
|
exit(EXIT_FAILURE); |
|
|
|
} |
|
|
|
} |
|
|
|