This commit is contained in:
SSimco
2025-07-25 19:33:44 +03:00
parent eb803a8c8c
commit a660be1a16
3 changed files with 1 additions and 10 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
/build
assets/hash.txt
/src/main/assets/hash.txt
*.po
*.pot
@@ -6,7 +6,6 @@ import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.ReadOnlyComposable
import androidx.compose.ui.Modifier
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.dp
@@ -63,8 +62,6 @@ fun GameDetails(game: Game) {
}
@ReadOnlyComposable
@Composable
private fun getTimePlayed(game: Game): String {
if (game.minutesPlayed == 0) {
return tr("Never played")
@@ -83,8 +80,6 @@ private val DateFormatter = DateTimeFormatter.ofLocalizedDate(
FormatStyle.SHORT
)
@ReadOnlyComposable
@Composable
private fun getLastPlayedDate(game: Game): String {
if (game.lastPlayedYear.toInt() == 0) {
return tr("Never played")
@@ -4,18 +4,14 @@ import android.content.Context
import android.content.SharedPreferences
import android.graphics.Rect
import android.util.DisplayMetrics.DENSITY_DEFAULT
import androidx.annotation.IntRange
import info.cemu.cemu.R
import info.cemu.cemu.nativeinterface.NativeInput
import kotlin.math.max
import kotlin.math.min
class OverlaySettings(
var isVibrateOnTouchEnabled: Boolean,
var isOverlayEnabled: Boolean,
@IntRange(0, (NativeInput.MAX_CONTROLLERS - 1L))
var controllerIndex: Int,
@IntRange(0, 255)
var alpha: Int,
) {
companion object {