mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 15:45:46 +00:00
general: Get the current process program id directly from the system
This allows us to avoid including KProcess' header file in files that only need to get the current process' program id.
This commit is contained in:
parent
10508e7af2
commit
41a0c088ba
21 changed files with 42 additions and 56 deletions
|
@ -2762,7 +2762,7 @@ void GMainWindow::OnConfigureTas() {
|
|||
}
|
||||
|
||||
void GMainWindow::OnConfigurePerGame() {
|
||||
const u64 title_id = system->CurrentProcess()->GetProgramID();
|
||||
const u64 title_id = system->GetCurrentProcessProgramID();
|
||||
OpenPerGameConfiguration(title_id, game_path.toStdString());
|
||||
}
|
||||
|
||||
|
@ -2861,7 +2861,7 @@ void GMainWindow::OnToggleFilterBar() {
|
|||
}
|
||||
|
||||
void GMainWindow::OnCaptureScreenshot() {
|
||||
const u64 title_id = system->CurrentProcess()->GetProgramID();
|
||||
const u64 title_id = system->GetCurrentProcessProgramID();
|
||||
const auto screenshot_path =
|
||||
QString::fromStdString(Common::FS::GetYuzuPathString(Common::FS::YuzuPath::ScreenshotsDir));
|
||||
const auto date =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue