Skip to content

Commit

Permalink
Added the second AMD APU code value to Steam Deck detection (#3434)
Browse files Browse the repository at this point in the history
  • Loading branch information
m3e-g authored Jan 17, 2024
1 parent 36ee9f0 commit a76e4f1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/backend/utils/systeminfo/steamDeck.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ type SteamDeckInfo =
| { isDeck: false; model?: undefined }

function getSteamDeckInfo(cpus: CpuInfo[], gpus: GPUInfo[]): SteamDeckInfo {
if (cpus[0]?.model !== 'AMD Custom APU 0405') return { isDeck: false }
if (
cpus[0]?.model !== 'AMD Custom APU 0405' &&
cpus[0]?.model !== 'AMD Custom APU 0932'
)
return { isDeck: false }

const primaryGpu = gpus.at(0)
if (!primaryGpu || primaryGpu.vendorId !== '1002') return { isDeck: false }
Expand Down

0 comments on commit a76e4f1

Please sign in to comment.