Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #11952 from K0bin/no-per-game-driver
Android: Remove GPU driver from per-game settings
  • Loading branch information
JosJuice committed Jun 25, 2023
2 parents 50c9299 + 38a5774 commit ac53ab1
Showing 1 changed file with 11 additions and 2 deletions.
Expand Up @@ -65,7 +65,12 @@ class SettingsFragmentPresenter(
controllerNumber = menuTag.subType
} else if (menuTag.isSerialPort1Menu) {
serialPort1Type = extras.getInt(ARG_SERIALPORT1_TYPE)
} else if (menuTag == MenuTag.GRAPHICS) {
} else if (
menuTag == MenuTag.GRAPHICS
&& this.gameId.isNullOrEmpty()
&& !NativeLibrary.IsRunning()
&& GpuDriverHelper.supportsCustomDriverLoading()
) {
this.gpuDriver =
GpuDriverHelper.getInstalledDriverMetadata() ?: GpuDriverHelper.getSystemDriverMetadata(
context.applicationContext
Expand Down Expand Up @@ -1265,7 +1270,11 @@ class SettingsFragmentPresenter(
)
)

if (GpuDriverHelper.supportsCustomDriverLoading() && this.gpuDriver != null) {
if (
this.gpuDriver != null && this.gameId.isNullOrEmpty()
&& !NativeLibrary.IsRunning()
&& GpuDriverHelper.supportsCustomDriverLoading()
) {
sl.add(
SubmenuSetting(
context,
Expand Down

0 comments on commit ac53ab1

Please sign in to comment.