aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/mods/modmanager.h
diff options
context:
space:
mode:
authorRémy Raes <contact@remyraes.com>2023-10-09 01:34:47 +0200
committerGitHub <noreply@github.com>2023-10-09 01:34:47 +0200
commita040bff98c16b79a3e817af441a795cf4f407069 (patch)
treee120401207c3218af42f0a394ac6ee3f3a7a0213 /NorthstarDLL/mods/modmanager.h
parent70a0114caa21ab7417c3cc74c1cf8f46cfd197a1 (diff)
downloadNorthstarLauncher-a040bff98c16b79a3e817af441a795cf4f407069.tar.gz
NorthstarLauncher-a040bff98c16b79a3e817af441a795cf4f407069.zip
Create mod entry in `enabledmods.json` if it doesn't exist (#410)
Currently, when you add a new mod to your `mods/` directory, when there's no associated entry in the `enabledmods.json` file, it is considered enabled by default; mod entries are only written in `enabledmods.json` when toggling them via the mods interface. In this pull request, I propose to create mod entries in `enabledmods.json` on startup when detecting they don't exist.
Diffstat (limited to 'NorthstarDLL/mods/modmanager.h')
-rw-r--r--NorthstarDLL/mods/modmanager.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/NorthstarDLL/mods/modmanager.h b/NorthstarDLL/mods/modmanager.h
index 15367e4d..813edec7 100644
--- a/NorthstarDLL/mods/modmanager.h
+++ b/NorthstarDLL/mods/modmanager.h
@@ -80,7 +80,7 @@ class Mod
bool m_bEnabled = true;
bool m_bWasReadSuccessfully = false;
fs::path m_ModDirectory;
- // bool m_bIsRemote;
+ bool m_bIsRemote;
// mod.json stuff: