aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorJude Melton-Houghton <jwmhjwmh@gmail.com>2022-11-23 17:25:34 -0500
committerJude Melton-Houghton <jwmhjwmh@gmail.com>2022-11-24 17:58:25 -0500
commit7c21347a40ede4427d9a9ba69c768ffb9c41d264 (patch)
treed7e06211ea1d6f04038d3a9b2558cf5203ed8076 /src/client
parent8817af07fb72fd78fb753fe5d069d0a65a79742f (diff)
downloadminetest-7c21347a40ede4427d9a9ba69c768ffb9c41d264.tar.xz
Rename "mod metadata" to "mod storage" everywhere
Diffstat (limited to 'src/client')
-rw-r--r--src/client/client.cpp4
-rw-r--r--src/client/client.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/client/client.cpp b/src/client/client.cpp
index 016fb3a8d..04686c43c 100644
--- a/src/client/client.cpp
+++ b/src/client/client.cpp
@@ -134,7 +134,7 @@ Client::Client(
// Make the mod storage database and begin the save for later
m_mod_storage_database =
- new ModMetadataDatabaseSQLite3(porting::path_user + DIR_DELIM + "client");
+ new ModStorageDatabaseSQLite3(porting::path_user + DIR_DELIM + "client");
m_mod_storage_database->beginSave();
if (g_settings->getBool("enable_minimap")) {
@@ -151,7 +151,7 @@ void Client::migrateModStorage()
if (fs::IsDir(old_mod_storage)) {
infostream << "Migrating client mod storage to SQLite3 database" << std::endl;
{
- ModMetadataDatabaseFiles files_db(mod_storage_dir);
+ ModStorageDatabaseFiles files_db(mod_storage_dir);
std::vector<std::string> mod_list;
files_db.listMods(&mod_list);
for (const std::string &modname : mod_list) {
diff --git a/src/client/client.h b/src/client/client.h
index 4342a0087..52ca87625 100644
--- a/src/client/client.h
+++ b/src/client/client.h
@@ -381,7 +381,7 @@ public:
{ return checkPrivilege(priv); }
virtual scene::IAnimatedMesh* getMesh(const std::string &filename, bool cache = false);
const std::string* getModFile(std::string filename);
- ModMetadataDatabase *getModStorageDatabase() override { return m_mod_storage_database; }
+ ModStorageDatabase *getModStorageDatabase() override { return m_mod_storage_database; }
// Migrates away old files-based mod storage if necessary
void migrateModStorage();
@@ -590,7 +590,7 @@ private:
// Client modding
ClientScripting *m_script = nullptr;
- ModMetadataDatabase *m_mod_storage_database = nullptr;
+ ModStorageDatabase *m_mod_storage_database = nullptr;
float m_mod_storage_save_timer = 10.0f;
std::vector<ModSpec> m_mods;
StringMap m_mod_vfs;