Skip to content

Commit

Permalink
Use VR launcher when launching from system files fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
amwatson committed Feb 1, 2024
1 parent e1ae4c0 commit 70f6132
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import org.citra.citra_emu.utils.SystemSaveGame
import org.citra.citra_emu.viewmodel.GamesViewModel
import org.citra.citra_emu.viewmodel.HomeViewModel
import org.citra.citra_emu.viewmodel.SystemFilesViewModel
import org.citra.citra_emu.vr.VrActivity

class SystemFilesFragment : Fragment() {
private var _binding: FragmentSystemFilesBinding? = null
Expand Down Expand Up @@ -206,8 +207,9 @@ class SystemFilesFragment : Fragment() {
path = menuPath,
filename = ""
)
val action = HomeNavigationDirections.actionGlobalEmulationActivity(menu)
binding.root.findNavController().navigate(action)
// val action = HomeNavigationDirections.actionGlobalEmulationActivity(menu)
// binding.root.findNavController().navigate(action)
VrActivity.launch(CitraApplication.appContext, menu.path, menu.title)
}
}

Expand Down

0 comments on commit 70f6132

Please sign in to comment.