| 216 | } |
| 217 | |
| 218 | bool Engine::LoadThemeFromString( const std::string& data ) { |
| 219 | auto theme = parser::theme::ParseString( data ); |
| 220 | |
| 221 | if( theme.empty() ) { |
| 222 | return false; |
| 223 | } |
| 224 | |
| 225 | ParseTheme( theme ); |
| 226 | |
| 227 | return true; |
| 228 | } |
| 229 | |
| 230 | bool Engine::LoadThemeFromFile( const std::string& filename ) { |
| 231 | std::ifstream in( filename.c_str() ); |
nothing calls this directly
no test coverage detected