mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 19:42:10 +00:00
Rename "mod metadata" to "mod storage" everywhere
This commit is contained in:
parent
8817af07fb
commit
7c21347a40
22 changed files with 480 additions and 474 deletions
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue