koto/desktop/config/library.cpp
2024-09-29 17:39:43 +03:00

15 lines
354 B
C++

#include "library.hpp"
#include <string>
KotoLibraryConfig::KotoLibraryConfig(const toml::value &v) {
this->i_name = toml::find<std::string>(v, "name");
this->i_path = toml::find<std::string>(v, "path");
}
std::string KotoLibraryConfig::getName() {
return this->i_name;
}
fs::path KotoLibraryConfig::getPath() {
return this->i_path;
}