RTT: Synchronous rendering notice dialog added

This commit is contained in:
Marcel Szewczyk 2018-12-22 20:50:42 +01:00
parent 0761ee713e
commit 2a7f4613f3
4 changed files with 17 additions and 1 deletions

View File

@ -339,6 +339,13 @@ public class MainActivity extends AppCompatActivity implements
builder.show();
}
public void synchronousRenderingNotice() {
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setMessage(R.string.synchronous_rendering_notice);
builder.create();
builder.show();
}
@Override
public void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig);

View File

@ -72,6 +72,7 @@ public class OptionsFragment extends Fragment {
void recreateActivity();
void onMainBrowseSelected(String path_entry, boolean games, String query);
void launchBIOSdetection();
void synchronousRenderingNotice();
}
@Override @SuppressWarnings("deprecation")
@ -388,6 +389,9 @@ public class OptionsFragment extends Fragment {
rtt_spnr.setOnItemSelectedListener(new OnItemSelectedListener() {
public void onItemSelected(AdapterView<?> parent, View view, int pos, long id) {
mPrefs.edit().putInt(Emulator.pref_rtt, pos).apply();
if (pos == 4) {
mCallback.synchronousRenderingNotice();
}
}
public void onNothingSelected(AdapterView<?> arg0) {

View File

@ -65,4 +65,6 @@
<string name="about">O nas</string>
<string name="rateme">Oceń nas</string>
<string name="synchronous_rendering_notice">Zalecane jest także włączenie opcji `Synchronous Rendering`</string>
</resources>

View File

@ -182,4 +182,7 @@
<string name="popup_button_audio">Emu Sound</string>
<string name="popup_button_turbo">Turbo</string>
<string name="textview">disk_loading</string>
</resources>
<string name="synchronous_rendering_notice">It is recommended to enable `Synchronous Rendering` option as well</string>
</resources>