Vultraz

Untitled

Sep 1st, 2016
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.02 KB | None | 0 0
  1.     static bool execute(ng::create_engine& create_engine, CVideo& video)
  2.     {
  3.         using mod_type = ng::create_engine::extras_metadata_ptr;
  4.  
  5.         const std::vector<mod_type>& activemods = create_engine.active_mods_data();
  6.         if(activemods.empty() || std::all_of(activemods.begin(), activemods.end(), [](mod_type mod) {
  7.             return !(*mod->cfg).has_child("options");
  8.         })) {
  9.             return false;
  10.         }
  11.  
  12.         return tsp_options_configure(create_engine).show(video);
  13.     }
  14.  
  15.  
  16. =============================================
  17. VS
  18. =============================================
  19.  
  20.     static bool execute(ng::create_engine& create_engine, CVideo& video)
  21.     {
  22.         using mod_type = ng::create_engine::extras_metadata_ptr;
  23.  
  24.         const std::vector<mod_type>& activemods = create_engine.active_mods_data();
  25.         if(activemods.empty()) {
  26.             return false;
  27.         }
  28.  
  29.         if(std::any_of(activemods.begin(), activemods.end(), [](mod_type mod) {
  30.             return (*mod->cfg).has_child("options");
  31.         })) {
  32.             return tsp_options_configure(create_engine).show(video);
  33.         }
  34.  
  35.         return false;
  36.     }
Advertisement
Add Comment
Please, Sign In to add comment