effect.cpp 407 B

12345678910111213141516
  1. #include <wallpaperengine/fs/fileResolver.h>
  2. #include "effect.h"
  3. namespace wp
  4. {
  5. effect::effect (json json_data)
  6. {
  7. json::const_iterator file = json_data.find ("file");
  8. json::const_iterator pass = json_data.find ("passes");
  9. if (file != json_data.end () && (*file).is_string () == true)
  10. {
  11. this->m_file = wp::fs::resolver.resolve (*file);
  12. }
  13. }
  14. };