diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/NetworkHelper.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/NetworkHelper.kt index 0e7ca5ba79..805f778768 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/NetworkHelper.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/NetworkHelper.kt @@ -7,11 +7,11 @@ import android.content.Context import android.net.ConnectivityManager object NetworkHelper { - fun setRoutes(context: Context) { + fun getRoutes(context: Context): String { val connectivity = context.getSystemService(Context.CONNECTIVITY_SERVICE) as ConnectivityManager - val lp = connectivity.getLinkProperties(connectivity.activeNetwork) ?: return + val lp = connectivity.getLinkProperties(connectivity.activeNetwork) ?: return "" val ifName = lp.interfaceName val addr = lp.linkAddresses[0] @@ -28,8 +28,6 @@ object NetworkHelper { val gw = lp.routes.last { it.isDefaultRoute }.gateway?.hostAddress - val settingFormattedRoute = "$ifName;$addr;$mask;$gw" - - // TODO set this value to settings + return "$ifName;$addr;$mask;$gw" } } \ No newline at end of file