summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/am/am.h
diff options
context:
space:
mode:
authorDavid Marcec <dmarcecguzman@gmail.com>2020-07-31 16:44:14 +0200
committerDavid Marcec <dmarcecguzman@gmail.com>2020-07-31 16:44:14 +0200
commite586921c28f1cdf9c97b306835c345e11dec0da8 (patch)
tree1048bc2cb3c8ef9aecba8e61123d3e911d493afa /src/core/hle/service/am/am.h
parentMerge pull request #4392 from lioncash/guard (diff)
downloadyuzu-e586921c28f1cdf9c97b306835c345e11dec0da8.tar
yuzu-e586921c28f1cdf9c97b306835c345e11dec0da8.tar.gz
yuzu-e586921c28f1cdf9c97b306835c345e11dec0da8.tar.bz2
yuzu-e586921c28f1cdf9c97b306835c345e11dec0da8.tar.lz
yuzu-e586921c28f1cdf9c97b306835c345e11dec0da8.tar.xz
yuzu-e586921c28f1cdf9c97b306835c345e11dec0da8.tar.zst
yuzu-e586921c28f1cdf9c97b306835c345e11dec0da8.zip
Diffstat (limited to 'src/core/hle/service/am/am.h')
-rw-r--r--src/core/hle/service/am/am.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/hle/service/am/am.h b/src/core/hle/service/am/am.h
index 6cfb11b48..6e69796ec 100644
--- a/src/core/hle/service/am/am.h
+++ b/src/core/hle/service/am/am.h
@@ -149,6 +149,12 @@ private:
void GetAccumulatedSuspendedTickValue(Kernel::HLERequestContext& ctx);
void GetAccumulatedSuspendedTickChangedEvent(Kernel::HLERequestContext& ctx);
+ enum class ScreenshotPermission : u32 {
+ Inherit = 0,
+ Enable = 1,
+ Disable = 2,
+ };
+
Core::System& system;
std::shared_ptr<NVFlinger::NVFlinger> nvflinger;
Kernel::EventPair launchable_event;
@@ -157,6 +163,7 @@ private:
u32 idle_time_detection_extension = 0;
u64 num_fatal_sections_entered = 0;
bool is_auto_sleep_disabled = false;
+ ScreenshotPermission screenshot_permission = ScreenshotPermission::Inherit;
};
class ICommonStateGetter final : public ServiceFramework<ICommonStateGetter> {