Skip to content

Commit

Permalink
need to update the networking allow settings based on what mode you h…
Browse files Browse the repository at this point in the history
…ave enabled
  • Loading branch information
metal-crow committed Mar 22, 2021
1 parent 45ae2ce commit 3858efa
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions OverhaulDLL/src/ModData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "Files.h"
#include "FileReloading.h"
#include "SpellDesyncFixes.h"
#include "ModNetworking.h"

#define _SP_DEFINE_VK_NAME_STRINGS_ // Must be defined to use Virtual-key code name strings from SP_IO_Strings.hpp (opt-in by default because it increases filesize by a few KB)

Expand Down Expand Up @@ -58,7 +59,15 @@ void Mod::get_init_preferences()
Mod::prefer_legacy_mode = ((int)GetPrivateProfileInt(_DS1_OVERHAUL_PREFS_SECTION_, _DS1_OVERHAUL_PREF_LEGACY_MODE_, (int)Mod::prefer_legacy_mode, _DS1_OVERHAUL_SETTINGS_FILE_) != 0);
Mod::legacy_mode = Mod::prefer_legacy_mode;
if (Mod::legacy_mode)
{
global::cmd_out << (" Legacy mode enabled. Gameplay changes will not be applied.\n");
ModNetworking::allow_connect_with_legacy_mod_host = true;
}
else
{
global::cmd_out << (" Overhaul mode enabled. Gameplay changes will be applied.\n");
ModNetworking::allow_connect_with_overhaul_mod_host = true;
}

// Check for custom game files
Mod::get_custom_game_files();
Expand Down

0 comments on commit 3858efa

Please sign in to comment.