示例#1
0
void FileManager::checkAndCreateDirForAddons(std::string addons_name, std::string addons_type)
{
    bool success = checkAndCreateDirectory(getAddonsDir() + "/data/" + addons_type);
    if(!success)
        std::cout << "There is a problem with the addons dir." << std::endl;
    checkAndCreateDirectory(getAddonsDir() + "/data/" + addons_type + addons_name);

}
示例#2
0
/** Returns the full path of a file in the addons directory.
 *  \param name Name of the file.
 */
std::string FileManager::getAddonsFile(const std::string &name)
{
    return getAddonsDir()+name;
}   // getAddonsFile