| 193 | } |
| 194 | |
| 195 | bool AspellInterface::init(const wchar_t *path_arg) { |
| 196 | #ifdef _WIN64 |
| 197 | constexpr auto cur_bitness = 64; |
| 198 | #else |
| 199 | constexpr auto cur_bitness = 32; |
| 200 | #endif |
| 201 | m_correct_bitness = true; |
| 202 | auto lib_bitness = WinApi::library_bitness(path_arg); |
| 203 | if (!lib_bitness) |
| 204 | return false; |
| 205 | if (lib_bitness != cur_bitness) { |
| 206 | m_correct_bitness = false; |
| 207 | return false; |
| 208 | } |
| 209 | return (m_aspell_loaded = load_aspell(path_arg)); |
| 210 | } |
| 211 | |
| 212 | AspellStatus AspellInterface::get_status() const { |
| 213 | if (is_working()) { |
no test coverage detected