RhythmGame 1.4.3
Loading...
Searching...
No Matches
Namespaces | Functions
SongDbScanner.cpp File Reference
#include <llfio.hpp>
#include <stack>
#include <utility>
#include "SongDbScanner.h"
#include "SongAssetStore.h"
#include "db/SqliteCppDb.h"
#include "support/PathToQString.h"
#include "support/PathToUtfString.h"
#include "support/QStringToPath.h"
#include <algorithm>
#include <cctype>
#include <system_error>
#include <QHash>
#include <QSet>
#include <qthreadpool.h>
#include <spdlog/stopwatch.h>
#include <spdlog/spdlog.h>
Include dependency graph for SongDbScanner.cpp:

Namespaces

namespace  resource_managers
 Classes and functions related to loading and managing resources such as charts, sounds, images, etc.
 

Functions

int64_t resource_managers::addDirToParentDirs (db::SqliteCppDb &db, QString root, QString folder)
 
void resource_managers::loadChart (QThreadPool &threadPool, db::SqliteCppDb &db, int64_t directory, const std::filesystem::path &path, std::function< void(QString)> updateCurrentScannedFolder, std::atomic_bool *stop)
 
void resource_managers::loadArchivedChart (QThreadPool &threadPool, db::SqliteCppDb &db, int64_t directory, const std::filesystem::path &virtualPath, QByteArray contents, std::function< void(QString)> updateCurrentScannedFolder, std::atomic_bool *stop)
 
void resource_managers::addSongDirectoryFileToDb (db::SqliteCppDb &db, const char *table, const char *label, const std::filesystem::path &directory, const std::filesystem::path &path)
 
void resource_managers::addPreviewFileToDb (db::SqliteCppDb &db, const std::filesystem::path &directory, const std::filesystem::path &path)
 
void resource_managers::addReadmeFileToDb (db::SqliteCppDb &db, const std::filesystem::path &directory, const std::filesystem::path &path)
 
auto resource_managers::lowercaseExtension (const std::filesystem::path &path) -> std::string
 
auto resource_managers::fileNameStartsWithDot (const std::filesystem::path &path) -> bool
 
auto resource_managers::isReadmeCandidate (const std::filesystem::path &path) -> bool
 
auto resource_managers::isChartCandidate (const std::filesystem::path &path) -> bool
 
auto resource_managers::isPreviewCandidate (const std::filesystem::path &path) -> bool
 
void resource_managers::scanSongArchive (const std::filesystem::path &archivePath, QThreadPool &threadPool, db::SqliteCppDb &db, SongAssetStore &assetStore, const QString &root, const std::function< void(QString)> &updateCurrentScannedFolder, std::atomic_bool *stop)
 
void resource_managers::scanFolder (const std::filesystem::path &directory, const std::filesystem::path &parentDirectory, QThreadPool &threadPool, db::SqliteCppDb &db, SongAssetStore &assetStore, const QString &root, const std::function< void(QString)> &updateCurrentScannedFolder, std::vector< llfio::directory_handle::buffer_type > &buffer, std::atomic_bool *stop)