mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-03 16:14:06 +00:00
Android: Remove SettingsActivityView parameters from Settings
No longer used for anything.
This commit is contained in:
parent
99600ef781
commit
08334015f9
@ -423,7 +423,7 @@ public final class EmulationActivity extends AppCompatActivity implements ThemeP
|
|||||||
protected void onStop()
|
protected void onStop()
|
||||||
{
|
{
|
||||||
super.onStop();
|
super.onStop();
|
||||||
mSettings.saveSettings(null, null);
|
mSettings.saveSettings(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onTitleChanged()
|
public void onTitleChanged()
|
||||||
|
@ -92,7 +92,7 @@ public class GamePropertiesDialog extends DialogFragment
|
|||||||
{
|
{
|
||||||
settings.loadSettings();
|
settings.loadSettings();
|
||||||
StringSetting.MAIN_DEFAULT_ISO.setString(settings, path);
|
StringSetting.MAIN_DEFAULT_ISO.setString(settings, path);
|
||||||
settings.saveSettings(null, getContext());
|
settings.saveSettings(getContext());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -160,7 +160,7 @@ class CheatsActivity : AppCompatActivity(), PanelSlideListener {
|
|||||||
|
|
||||||
fun loadGameSpecificSettings(): Settings {
|
fun loadGameSpecificSettings(): Settings {
|
||||||
val settings = Settings()
|
val settings = Settings()
|
||||||
settings.loadSettings(null, gameId, revision, isWii)
|
settings.loadSettings(gameId, revision, isWii)
|
||||||
return settings
|
return settings
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,7 +9,6 @@ import android.widget.Toast;
|
|||||||
import org.dolphinemu.dolphinemu.NativeLibrary;
|
import org.dolphinemu.dolphinemu.NativeLibrary;
|
||||||
import org.dolphinemu.dolphinemu.R;
|
import org.dolphinemu.dolphinemu.R;
|
||||||
import org.dolphinemu.dolphinemu.features.input.model.MappingCommon;
|
import org.dolphinemu.dolphinemu.features.input.model.MappingCommon;
|
||||||
import org.dolphinemu.dolphinemu.features.settings.ui.SettingsActivityView;
|
|
||||||
import org.dolphinemu.dolphinemu.services.GameFileCacheManager;
|
import org.dolphinemu.dolphinemu.services.GameFileCacheManager;
|
||||||
|
|
||||||
import java.io.Closeable;
|
import java.io.Closeable;
|
||||||
@ -78,10 +77,10 @@ public class Settings implements Closeable
|
|||||||
public void loadSettings()
|
public void loadSettings()
|
||||||
{
|
{
|
||||||
// The value of isWii doesn't matter if we don't have any SettingsActivity
|
// The value of isWii doesn't matter if we don't have any SettingsActivity
|
||||||
loadSettings(null, true);
|
loadSettings(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void loadSettings(SettingsActivityView view, boolean isWii)
|
public void loadSettings(boolean isWii)
|
||||||
{
|
{
|
||||||
mIsWii = isWii;
|
mIsWii = isWii;
|
||||||
mSettingsLoaded = true;
|
mSettingsLoaded = true;
|
||||||
@ -98,14 +97,14 @@ public class Settings implements Closeable
|
|||||||
mLoadedRecursiveIsoPathsValue = BooleanSetting.MAIN_RECURSIVE_ISO_PATHS.getBoolean();
|
mLoadedRecursiveIsoPathsValue = BooleanSetting.MAIN_RECURSIVE_ISO_PATHS.getBoolean();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void loadSettings(SettingsActivityView view, String gameId, int revision, boolean isWii)
|
public void loadSettings(String gameId, int revision, boolean isWii)
|
||||||
{
|
{
|
||||||
mGameId = gameId;
|
mGameId = gameId;
|
||||||
mRevision = revision;
|
mRevision = revision;
|
||||||
loadSettings(view, isWii);
|
loadSettings(isWii);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void saveSettings(SettingsActivityView view, Context context)
|
public void saveSettings(Context context)
|
||||||
{
|
{
|
||||||
if (!isGameSpecific())
|
if (!isGameSpecific())
|
||||||
{
|
{
|
||||||
|
@ -70,7 +70,7 @@ public final class SettingsActivityPresenter
|
|||||||
{
|
{
|
||||||
if (!TextUtils.isEmpty(mGameId))
|
if (!TextUtils.isEmpty(mGameId))
|
||||||
{
|
{
|
||||||
mSettings.loadSettings(mView, mGameId, mRevision, mIsWii);
|
mSettings.loadSettings(mGameId, mRevision, mIsWii);
|
||||||
|
|
||||||
if (mSettings.gameIniContainsJunk())
|
if (mSettings.gameIniContainsJunk())
|
||||||
{
|
{
|
||||||
@ -79,7 +79,7 @@ public final class SettingsActivityPresenter
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
mSettings.loadSettings(mView, mIsWii);
|
mSettings.loadSettings(mIsWii);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -110,7 +110,7 @@ public final class SettingsActivityPresenter
|
|||||||
if (mSettings != null && finishing && mShouldSave)
|
if (mSettings != null && finishing && mShouldSave)
|
||||||
{
|
{
|
||||||
Log.debug("[SettingsActivity] Settings activity stopping. Saving settings to INI...");
|
Log.debug("[SettingsActivity] Settings activity stopping. Saving settings to INI...");
|
||||||
mSettings.saveSettings(mView, mActivity);
|
mSettings.saveSettings(mActivity);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ object Analytics {
|
|||||||
BooleanSetting.MAIN_ANALYTICS_PERMISSION_ASKED.setBoolean(settings, true)
|
BooleanSetting.MAIN_ANALYTICS_PERMISSION_ASKED.setBoolean(settings, true)
|
||||||
|
|
||||||
// Context is set to null to avoid toasts
|
// Context is set to null to avoid toasts
|
||||||
settings.saveSettings(null, null)
|
settings.saveSettings(null)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user