175 files, from working commit b1a079a. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
25 lines
841 B
C
25 lines
841 B
C
#ifndef GW_ACCEPTED_FEATURE_DEFAULTS_H
|
|
#define GW_ACCEPTED_FEATURE_DEFAULTS_H
|
|
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
/* Native PE production uses the accepted guild/POI implementations without a
|
|
* launcher environment. Legacy host prototypes retain their opt-in behavior.
|
|
* Explicit overrides retain the original exact "1" contract, including off
|
|
* for an empty or otherwise invalid value. This never supplies missing data
|
|
* or bypasses membership, Source permissions, or dataset validation. */
|
|
static inline int gw_accepted_feature_enabled(const char* name)
|
|
{
|
|
const char* value = getenv(name);
|
|
if (value) return strcmp(value, "1") == 0;
|
|
#if (defined(GW_NATIVE_WINDOWS) && GW_NATIVE_WINDOWS) || \
|
|
(defined(GW_IN_CLIENT_FEATURE_DEFAULTS) && GW_IN_CLIENT_FEATURE_DEFAULTS)
|
|
return 1;
|
|
#else
|
|
return 0;
|
|
#endif
|
|
}
|
|
|
|
#endif
|