mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-04 05:04:33 +00:00
[PR #2933] [MERGED] Prevent shutdown hotkey from bypassing the state on shutdown setting #1355
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/stenzek/duckstation/pull/2933
Author: @bslenul
Created: 12/18/2022
Status: ✅ Merged
Merged: 12/19/2022
Merged by: @stenzek
Base:
master← Head:shutdown-hk-state📝 Commits (1)
266a50fPrevent shutdown hotkey from bypassing the state on shutdown setting📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
src/frontend-common/common_host.cpp(+1 -1)📄 Description
Currently if you have "Save State on Shutdown" disabled, if you use the "Power Off" hotkey to close a game it will create a state anyway. I'm not sure if this is the best way to handle this, but with this PR it seems to work fine from my tests, and the state is not created if "Save State on Shutdown" is disabled.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.