effect.cpp 420 B

12345678910111213141516
  1. #include <wallpaperengine/fs/utils.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 = ("effects/" + (*file).get <std::string> ()).c_str ();
  12. }
  13. }
  14. };