-
-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
266 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 0 additions & 24 deletions
24
lemuroid-app/src/main/java/com/swordfish/lemuroid/app/shared/game/GameLoaderErrorUtils.kt
This file was deleted.
Oops, something went wrong.
26 changes: 22 additions & 4 deletions
26
lemuroid-app/src/main/java/com/swordfish/lemuroid/app/shared/gamecrash/GameCrashActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,41 @@ | ||
package com.swordfish.lemuroid.app.shared.gamecrash | ||
|
||
import android.app.Activity | ||
import android.content.Intent | ||
import android.os.Bundle | ||
import android.widget.TextView | ||
import com.swordfish.lemuroid.R | ||
import com.swordfish.lemuroid.common.view.setVisibleOrGone | ||
|
||
class GameCrashActivity : Activity() { | ||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
setContentView(R.layout.activity_crash) | ||
|
||
val message = intent.getStringExtra(EXTRA_MESSAGE)?.let { | ||
getString(R.string.lemuroid_crash_message, it) | ||
val message = intent.getStringExtra(EXTRA_MESSAGE) | ||
val messageDetail = intent.getStringExtra(EXTRA_MESSAGE_DETAIL) | ||
|
||
findViewById<TextView>(R.id.text1).apply { | ||
setVisibleOrGone(!message.isNullOrEmpty()) | ||
text = message | ||
} | ||
|
||
findViewById<TextView>(R.id.crashmessage).text = message | ||
findViewById<TextView>(R.id.text2).apply { | ||
setVisibleOrGone(!messageDetail.isNullOrEmpty()) | ||
text = messageDetail | ||
} | ||
} | ||
|
||
companion object { | ||
const val EXTRA_MESSAGE = "EXTRA_MESSAGE" | ||
private const val EXTRA_MESSAGE = "EXTRA_MESSAGE" | ||
private const val EXTRA_MESSAGE_DETAIL = "EXTRA_MESSAGE_DETAIL" | ||
|
||
fun launch(activity: Activity, message: String, messageDetail: String?) { | ||
val intent = Intent(activity, GameCrashActivity::class.java).apply { | ||
putExtra(EXTRA_MESSAGE, message) | ||
putExtra(EXTRA_MESSAGE_DETAIL, messageDetail) | ||
} | ||
activity.startActivity(intent) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<vector android:height="96dp" android:tint="#FFFFFF" | ||
android:viewportHeight="24" android:viewportWidth="24" | ||
android:width="96dp" xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<path android:fillColor="@android:color/white" android:pathData="M1,21h22L12,2 1,21zM13,18h-2v-2h2v2zM13,14h-2v-4h2v4z"/> | ||
</vector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule lemuroid-cores
updated
62 files
Binary file modified
BIN
+548 KB
(110%)
lemuroid-metadata-libretro-db/src/main/assets/libretro-db.sqlite
Binary file not shown.
Oops, something went wrong.