mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Ennable unreported games
This commit is contained in:
parent
8012fcd92b
commit
704a71a855
1 changed files with 13 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ import axios from 'axios'
|
||||||
const statusesTranslations = {
|
const statusesTranslations = {
|
||||||
'Native': 'native',
|
'Native': 'native',
|
||||||
'Rosetta': 'rosetta',
|
'Rosetta': 'rosetta',
|
||||||
|
'': 'unreported'
|
||||||
// 'CrossOver': 'rosetta',
|
// 'CrossOver': 'rosetta',
|
||||||
// '': 'no'
|
// '': 'no'
|
||||||
}
|
}
|
||||||
|
|
@ -29,6 +30,14 @@ const statusesMessages = {
|
||||||
// 'no': '🚫 No, not yet supported only works on Intel-based Macs'
|
// 'no': '🚫 No, not yet supported only works on Intel-based Macs'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function isUnknown(game) {
|
||||||
|
const playableStatus = game.Playable.toLowerCase()
|
||||||
|
return ![
|
||||||
|
'yes',
|
||||||
|
'no'
|
||||||
|
].includes(playableStatus)
|
||||||
|
}
|
||||||
|
|
||||||
function isPlayable(game) {
|
function isPlayable(game) {
|
||||||
return game.Playable.toLowerCase() === 'yes'
|
return game.Playable.toLowerCase() === 'yes'
|
||||||
}
|
}
|
||||||
|
|
@ -39,6 +48,8 @@ function environmentName(game) {
|
||||||
|
|
||||||
|
|
||||||
function getStatusText(game) {
|
function getStatusText(game) {
|
||||||
|
if (isUnknown(game)) return '🔶 Unknown, more info needed'
|
||||||
|
|
||||||
if (isPlayable(game) === false) return '🚫 No, not yet supported only works on Intel-based Macs'
|
if (isPlayable(game) === false) return '🚫 No, not yet supported only works on Intel-based Macs'
|
||||||
|
|
||||||
// Match status to Sheet Status
|
// Match status to Sheet Status
|
||||||
|
|
@ -47,6 +58,8 @@ function getStatusText(game) {
|
||||||
|
|
||||||
|
|
||||||
function parseStatus(game) {
|
function parseStatus(game) {
|
||||||
|
if (isUnknown(game)) return 'unreported'
|
||||||
|
|
||||||
if (isPlayable(game) === false) return 'no'
|
if (isPlayable(game) === false) return 'no'
|
||||||
|
|
||||||
// Match status to Sheet Status
|
// Match status to Sheet Status
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue