mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-02 02:15:13 -04:00
UI: Make scene collection/profile enum funcs external
Allows using the functions outside of the file they're in.
This commit is contained in:
1 parent
9ed95b2497
commit
bfc21317bf
2 files changed
+4
-2
No files matched your search
@@ -24,7 +24,7 @@
|
||||
#include "window-namedialog.hpp"
|
||||
#include "qt-wrappers.hpp"
|
||||
|
||||
template <typename Func> static void EnumProfiles(Func &&cb)
|
||||
void EnumProfiles(std::function<bool (const char *, const char *)> &&cb)
|
||||
{
|
||||
char path[512];
|
||||
os_glob_t *glob;
|
||||
|
||||
@@ -24,7 +24,9 @@
|
||||
#include "window-namedialog.hpp"
|
||||
#include "qt-wrappers.hpp"
|
||||
|
||||
template <typename Func> static void EnumSceneCollections(Func &&cb)
|
||||
using namespace std;
|
||||
|
||||
void EnumSceneCollections(std::function<bool (const char *, const char *)> &&cb)
|
||||
{
|
||||
char path[512];
|
||||
os_glob_t *glob;
|
||||
|
||||
Reference in new issue
Block a user