mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-11-03 02:35:42 -05:00
Core modules are main OBS Studio functionality implemented as runtime modules, but are conceptually considered mandatory and the application is incomplete without them. This change also introduces a configure-time dependency of core modules on "libobs" (already a generation-time dependency) and produces a library target with the names of all core modules available at build system generation. Co-authored-by: PatTheMav <PatTheMav@users.noreply.github.com>
35 lines
1.2 KiB
Plaintext
35 lines
1.2 KiB
Plaintext
/******************************************************************************
|
|
Copyright (C) 2026 by FiniteSingularity <finitesingularityttv@gmail.com>
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 2 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
******************************************************************************/
|
|
|
|
#include <string.h>
|
|
#include <obs-core-modules.h>
|
|
|
|
const char *obs_core_modules[] = {
|
|
@OBS_CORE_MODULE_LIST@
|
|
};
|
|
|
|
const unsigned int obs_core_modules_count = @OBS_CORE_MODULE_COUNT@;
|
|
|
|
bool obs_in_core_module_list(const char *name) {
|
|
for (unsigned int i = 0; i < obs_core_modules_count; i++) {
|
|
if(strcmp(obs_core_modules[i], name) == 0) {
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|