* Configure and initialize the sticker subsystem. */
| 237 | * Configure and initialize the sticker subsystem. |
| 238 | */ |
| 239 | static std::unique_ptr<StickerDatabase> |
| 240 | LoadStickerDatabase(const ConfigData &config) |
| 241 | { |
| 242 | auto sticker_file = config.GetPath(ConfigOption::STICKER_FILE); |
| 243 | if (sticker_file.IsNull()) |
| 244 | return nullptr; |
| 245 | |
| 246 | return std::make_unique<StickerDatabase>(std::move(sticker_file)); |
| 247 | } |
| 248 | |
| 249 | #endif |
| 250 |
no test coverage detected