Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add functions to control the Eco mode #363

Merged
merged 2 commits into from
Apr 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions include/coreinit/mcp.h
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,18 @@ MCP_CompatLoadAVFile(int32_t handle,
MCPError
MCP_TriggerCrashLogCollection(int32_t handle);

/**
* Sets values to /storage_slc/sys/config/eco.xml
*
* \return
* \c 0 on success.
*/
MCPError
MCP_ChangeEcoSettings(int32_t handle,
uint32_t enable,
uint32_t maxOnTime,
uint16_t defaultOffTime);

#ifdef __cplusplus
}
#endif
Expand Down
12 changes: 12 additions & 0 deletions include/nn/ccr/sys_caffeine.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@ CCRSysCaffeineGetAppLaunchParam(CCRAppLaunchParam * data);
uint32_t
CCRSysCaffeineBootCheck();

/**
* @return 0 on success, -1 on error
*/
int32_t
CCRSysCaffeineSetDRCEnableFlag(int32_t enabled);

/**
* @return 0 on success, -1 on error
*/
int32_t
CCRSysCaffeineSetEnableFlag(int32_t enabled);

#ifdef __cplusplus
}
#endif
Expand Down
Loading