From 15740faf9fe9fe4be08965098bbf2947e096aeeb Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 14 Aug 2019 22:50:43 +0800 Subject: +Unity Runtime code --- Runtime/Utilities/GlobalPreferences.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Runtime/Utilities/GlobalPreferences.h (limited to 'Runtime/Utilities/GlobalPreferences.h') diff --git a/Runtime/Utilities/GlobalPreferences.h b/Runtime/Utilities/GlobalPreferences.h new file mode 100644 index 0000000..b0ca58f --- /dev/null +++ b/Runtime/Utilities/GlobalPreferences.h @@ -0,0 +1,15 @@ +#ifndef GLOBALPREFERENCES_H +#define GLOBALPREFERENCES_H + +#if WEBPLUG +std::string GetStrippedPlayerDomain (); +#endif + +// Used for hardware stats and webplayer settings. +std::string GetGlobalPreference(const char *key); +bool GetGlobalBoolPreference(const char *key, bool defaultValue); + +void SetGlobalPreference(const char *key, std::string value); +void SetGlobalBoolPreference(const char *key, bool value); + +#endif \ No newline at end of file -- cgit v1.1-26-g67d0