mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-20 17:35:46 +00:00
chore: removed unnecessary typecasting
This commit is contained in:
parent
eb720ef074
commit
7fa40791c6
1 changed files with 3 additions and 6 deletions
|
@ -153,7 +153,7 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback {
|
||||||
titleId,
|
titleId,
|
||||||
customSettings,
|
customSettings,
|
||||||
requireContext(),
|
requireContext(),
|
||||||
requireActivity() as? FragmentActivity,
|
requireActivity(),
|
||||||
driverViewModel
|
driverViewModel
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -170,7 +170,6 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback {
|
||||||
|
|
||||||
isCustomSettingsIntent = true
|
isCustomSettingsIntent = true
|
||||||
|
|
||||||
// Continue with game setup
|
|
||||||
finishGameSetup()
|
finishGameSetup()
|
||||||
|
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
|
@ -184,7 +183,6 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Return early to prevent synchronous continuation
|
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
Log.error("[EmulationFragment] Custom settings intent missing required extras")
|
Log.error("[EmulationFragment] Custom settings intent missing required extras")
|
||||||
|
@ -205,9 +203,7 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isCustomSettingsIntent) {
|
if (!isCustomSettingsIntent) finishGameSetup()
|
||||||
finishGameSetup()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -221,6 +217,7 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback {
|
||||||
intentGame!!
|
intentGame!!
|
||||||
}
|
}
|
||||||
} catch (e: NullPointerException) {
|
} catch (e: NullPointerException) {
|
||||||
|
Log.error("[EmulationFragment] No game found in arguments or intent: ${e.message}")
|
||||||
Toast.makeText(
|
Toast.makeText(
|
||||||
requireContext(),
|
requireContext(),
|
||||||
R.string.no_game_present,
|
R.string.no_game_present,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue