| 145 | } |
| 146 | |
| 147 | std::filesystem::path streamfx::config_file_path(std::string_view file) |
| 148 | { |
| 149 | char* root_path = obs_module_get_config_path(obs_current_module(), file.data()); |
| 150 | if (root_path) { |
| 151 | auto ret = std::filesystem::u8path(root_path); |
| 152 | bfree(root_path); |
| 153 | return ret; |
| 154 | } else { |
| 155 | throw std::runtime_error("obs_module_get_config_path returned nullptr"); |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | bool streamfx::open_url(std::string_view url) |
| 160 | { |