Skip to content

Commit

Permalink
Android: remove old post processing system
Browse files Browse the repository at this point in the history
  • Loading branch information
iwubcode committed Jan 29, 2022
1 parent 193d519 commit ba7b40b
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 72 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ public enum StringSetting implements AbstractStringSetting
MAIN_SD_PATH(Settings.FILE_DOLPHIN, Settings.SECTION_INI_GENERAL, "WiiSDCardPath", ""),
MAIN_WFS_PATH(Settings.FILE_DOLPHIN, Settings.SECTION_INI_GENERAL, "WFSPath", ""),

GFX_ENHANCE_POST_SHADER(Settings.FILE_GFX, Settings.SECTION_GFX_ENHANCEMENTS,
"PostProcessingShader", "");

private static final StringSetting[] NOT_RUNTIME_EDITABLE_ARRAY = new StringSetting[]{
MAIN_GFX_BACKEND,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import org.dolphinemu.dolphinemu.features.settings.model.LegacyBooleanSetting;
import org.dolphinemu.dolphinemu.features.settings.model.LegacyIntSetting;
import org.dolphinemu.dolphinemu.features.settings.model.LegacyStringSetting;
import org.dolphinemu.dolphinemu.features.settings.model.PostProcessing;
import org.dolphinemu.dolphinemu.features.settings.model.Settings;
import org.dolphinemu.dolphinemu.features.settings.model.StringSetting;
import org.dolphinemu.dolphinemu.features.settings.model.WiimoteProfileStringSetting;
Expand Down Expand Up @@ -641,22 +640,6 @@ private void addEnhanceSettings(ArrayList<SettingsItem> sl)
R.string.anisotropic_filtering, R.string.anisotropic_filtering_description,
R.array.anisotropicFilteringEntries, R.array.anisotropicFilteringValues));

int stereoModeValue = IntSetting.GFX_STEREO_MODE.getInt(mSettings);
final int anaglyphMode = 3;
String[] shaderList = stereoModeValue == anaglyphMode ?
PostProcessing.getAnaglyphShaderList() : PostProcessing.getShaderList();

String[] shaderListEntries = new String[shaderList.length + 1];
shaderListEntries[0] = mContext.getString(R.string.off);
System.arraycopy(shaderList, 0, shaderListEntries, 1, shaderList.length);

String[] shaderListValues = new String[shaderList.length + 1];
shaderListValues[0] = "";
System.arraycopy(shaderList, 0, shaderListValues, 1, shaderList.length);

sl.add(new StringSingleChoiceSetting(mContext, StringSetting.GFX_ENHANCE_POST_SHADER,
R.string.post_processing_shader, 0, shaderListEntries, shaderListValues));

sl.add(new CheckBoxSetting(mContext, BooleanSetting.GFX_HACK_COPY_EFB_SCALED,
R.string.scaled_efb_copy, R.string.scaled_efb_copy_description));
sl.add(new CheckBoxSetting(mContext, BooleanSetting.GFX_ENABLE_PIXEL_LIGHTING,
Expand Down
1 change: 0 additions & 1 deletion Source/Android/jni/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ add_library(main SHARED
Cheats/GeckoCheat.cpp
Cheats/PatchCheat.cpp
Config/NativeConfig.cpp
Config/PostProcessing.cpp
GameList/GameFile.cpp
GameList/GameFile.h
GameList/GameFileCache.cpp
Expand Down
34 changes: 0 additions & 34 deletions Source/Android/jni/Config/PostProcessing.cpp

This file was deleted.

0 comments on commit ba7b40b

Please sign in to comment.