You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scriptmodules/system.sh
+11-15Lines changed: 11 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -430,20 +430,12 @@ function get_platform() {
430
430
;;
431
431
esac
432
432
else
433
-
case$architecturein
434
-
i686|x86_64|amd64)
435
-
__platform="x86"
436
-
;;
437
-
esac
433
+
__platform="$architecture"
438
434
fi
439
435
;;
440
436
esac
441
437
fi
442
438
443
-
if! fnExists "platform_${__platform}";then
444
-
fatalError "Unknown platform - please manually set the __platform variable to one of the following: $(compgen -A functionplatform_| cut -b10- | paste -s -d'')"
445
-
fi
446
-
447
439
# check if we wish to target kms for platform
448
440
if [[ -z"$__has_kms" ]];then
449
441
iniConfig " = "'"'"$configdir/all/retropie.cfg"
@@ -453,7 +445,13 @@ function get_platform() {
453
445
fi
454
446
455
447
set_platform_defaults
456
-
platform_${__platform}
448
+
449
+
# if we have a function for the platform, call it, otherwise use the default "native" one.
450
+
if fnExists "platform_${__platform}";then
451
+
platform_${__platform}
452
+
else
453
+
platform_native
454
+
fi
457
455
}
458
456
459
457
functionset_platform_defaults() {
@@ -586,18 +584,16 @@ function platform_tinker() {
586
584
__platform_flags+=(kms gles)
587
585
}
588
586
589
-
function platform_x86() {
587
+
functionplatform_native() {
590
588
__default_cpu_flags="-march=native"
591
589
__platform_flags+=(gl)
592
590
if [[ "$__has_kms"-eq 1 ]];then
593
591
__platform_flags+=(kms)
594
592
else
595
593
__platform_flags+=(x11)
596
594
fi
597
-
}
598
-
599
-
function platform_generic-x11() {
600
-
__platform_flags+=(x11 gl)
595
+
# add x86 platform flag for x86/x86_64 archictures.
0 commit comments