MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / IsFirstRun

Function IsFirstRun

lib/utils/first-run-wizard.cpp:21–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19static constexpr char kFirstRunKey[] = "firstRun";
20
21bool IsFirstRun()
22{
23#if LIBOBS_API_VER >= MAKE_SEMANTIC_VERSION(31, 0, 0)
24 config_t *cfg = obs_frontend_get_user_config();
25#else
26 config_t *cfg = obs_frontend_get_global_config();
27#endif
28 if (!config_has_user_value(cfg, kConfigSection, kFirstRunKey)) {
29 return true;
30 }
31 return config_get_bool(cfg, kConfigSection, kFirstRunKey);
32}
33
34static void writeFirstRun(bool value)
35{

Callers 1

CheckFirstTimeSetupMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected