diff --git a/README.md b/README.md
index 6ea9d7afc..8bde5db32 100644
--- a/README.md
+++ b/README.md
@@ -31,15 +31,9 @@ Tools required:
From project root directory:
```
-cd shell\android\xperia
+export ANDROID_NDK=\ <-Type the full path to your NDK here
-rm -rf libs
-
-android update project -p . --target "android-9"
-
-ndk-build -j4
-
-cd ..\
+cd shell\android
android update project -p . --target "android-19"
diff --git a/shell/android/custom_rules.xml b/shell/android/custom_rules.xml
index 871abf69a..26c710374 100644
--- a/shell/android/custom_rules.xml
+++ b/shell/android/custom_rules.xml
@@ -8,16 +8,6 @@
-
-
-
-
-
-
diff --git a/shell/android/jni/Android.mk b/shell/android/jni/Android.mk
index 8b3e8042e..dbda2857f 100644
--- a/shell/android/jni/Android.mk
+++ b/shell/android/jni/Android.mk
@@ -28,7 +28,9 @@ endif
include $(LOCAL_PATH)/../../core/core.mk
-LOCAL_SRC_FILES := $(RZDCY_FILES) $(wildcard $(LOCAL_PATH)/jni/src/*.cpp)
+LOCAL_SRC_FILES := $(RZDCY_FILES)
+LOCAL_SRC_FILES += $(wildcard $(LOCAL_PATH)/jni/src/Android.cpp)
+LOCAL_SRC_FILES += $(wildcard $(LOCAL_PATH)/jni/src/utils.cpp)
LOCAL_CXXFLAGS := $(RZDCY_CXXFLAGS)
LOCAL_SHARED_LIBRARIES:= libcutils libutils
@@ -63,3 +65,18 @@ LOCAL_ARM_MODE := arm
include $(BUILD_SHARED_LIBRARY)
$(call import-module,android/native_app_glue)
+
+LOCAL_CERTIFICATE := shared
+
+LOCAL_PATH:= $(call my-dir)/..
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := sexplay
+LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/jni/src/XperiaPlay.c)
+LOCAL_LDLIBS := -llog -landroid -lEGL -lGLESv1_CM
+LOCAL_STATIC_LIBRARIES := android_native_app_glue
+
+include $(BUILD_SHARED_LIBRARY)
+
+$(call import-module,android/native_app_glue)
diff --git a/shell/android/xperia/jni/XperiaPlay.c b/shell/android/jni/src/XperiaPlay.c
similarity index 100%
rename from shell/android/xperia/jni/XperiaPlay.c
rename to shell/android/jni/src/XperiaPlay.c
diff --git a/shell/android/res/layout/configure_fragment.xml b/shell/android/res/layout/configure_fragment.xml
index fdf642e97..2df510fae 100644
--- a/shell/android/res/layout/configure_fragment.xml
+++ b/shell/android/res/layout/configure_fragment.xml
@@ -323,19 +323,6 @@
-
-
-
-
-
diff --git a/shell/android/res/values-da/strings.xml b/shell/android/res/values-da/strings.xml
index 92771dc9a..38e536a85 100644
--- a/shell/android/res/values-da/strings.xml
+++ b/shell/android/res/values-da/strings.xml
@@ -35,10 +35,7 @@
Tilgængelige Dreamcast spil
Tidligere nedbrud detekteret
- Kopierer logcat indhold til clipboardet\nIndsæt venligst i fejlrapporten
- Log gemt i \"System Path\"
Konfiguration fejlede!
- Indsend fejllogger
Tilpas touch knapper
Opstarts editor
@@ -67,10 +64,6 @@
reicast er en Dreamcast emulator
Version: %1$s [%2$s]
- Hjemmeside: http://reicast.com
- Betaer: http://reicast.loungekatt.com
- https://api.github.com/repos/reicast/reicast-emulator/commits
- https://github.com/reicast/reicast-emulator/issues/
- Controller A
diff --git a/shell/android/res/values-de/strings.xml b/shell/android/res/values-de/strings.xml
index 1869a5246..4b34b8f10 100644
--- a/shell/android/res/values-de/strings.xml
+++ b/shell/android/res/values-de/strings.xml
@@ -69,9 +69,5 @@
Ein
Aus
-
- Kopieren logcat Inhalt in die Zwischenablage kopieren\nBitte fügen Sie in der Ausgabe Bericht
-
- Senden Debug-Protokolle
diff --git a/shell/android/res/values-el/strings.xml b/shell/android/res/values-el/strings.xml
deleted file mode 100644
index f1370eec3..000000000
--- a/shell/android/res/values-el/strings.xml
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
- Settings
- System Path (location of the data folder with dc_boot.bin/dc_flash.bin inside)
- Default System Path
- Storage Path (location of .gdi, .chd or .cdi images)
- Default Game Storage
-
- Boot Dreamcast Bios
- BIOS Missing. The Dreamcast BIOS is required for this emulator to work. Place the BIOS file in %1$s/data/dc_boot.bin
- Flash Missing. The Dreamcast Flash is required for this emulator to work. Place the Flash file in %1$s/data/dc_flash.bin
- You have to provide the BIOS
-
- BOOT BIOS
- SELECT CURRENT FOLDER
-
- Dynarec Options
- Unstable Optimisations
- DC Region
- Limit FPS
- Use Mipmaps (fix for old SGX540)
- Widescreen Mode
- Frameskip Value
- PVR Rendering (does nothing for now)
- Set Default Disk
-
- Available Dreamcast Games
-
- Customize Touch Controls
- Launch Editor
- Touch Vibration
- Controller A
- Controller B
- Controller C
- Controller D
- Controller Not Connected
- No Controller Selected
- Select
- Remove
- Select Controller
- Press any button on the controller %1$s to assign to port
- This controller is already in use!
- Enable Custom Key Layout
- Enable Compatibility Mode
-
- Customize Physical Controls
- Modify Controller
- Press the new controller button for %1$s
-
- MOGA Pro Connected!
- MOGA Connected!
-
- reicast is a dreamcast emulator
- Version: %1$s [%2$s]
-
-
- - Controller A
- - Controller B
- - Controller C
- - Controller D
-
-
- Browser
- Settings
- Paths
- Input
- About
- Rate Me
-
- ON
- OFF
-
- Save Error Logs
-
-
diff --git a/shell/android/res/values-es/strings.xml b/shell/android/res/values-es/strings.xml
index 2bab62e4c..89c25d56e 100644
--- a/shell/android/res/values-es/strings.xml
+++ b/shell/android/res/values-es/strings.xml
@@ -69,8 +69,4 @@
EN
OFF
- Contenido Copiado Logcat al portapapeles\nPor favor, pegue en el informe de problema
-
- Enviar registros de errores
-
diff --git a/shell/android/res/values-fr/strings.xml b/shell/android/res/values-fr/strings.xml
index c5a4148a0..872c29eec 100644
--- a/shell/android/res/values-fr/strings.xml
+++ b/shell/android/res/values-fr/strings.xml
@@ -61,10 +61,7 @@
reicast est un émulateur dreamcast
Version: %1$s [%2$s]
- Site web officiel: http://reicast.com
- Bétas: http://reicast.loungekatt.com
- https://api.github.com/repos/NoblesseOblige/reicast-emulator/commits
-
+
- Manette A
- Manette B
@@ -81,9 +78,5 @@
ACTIF
DESACT.
-
- Le contenu du logcat a été copié dans le presse-papiers\nVeuillez coller le rapport d\'émission
-
- Soumettre le log d\'erreurs
diff --git a/shell/android/res/values-jp/strings.xml b/shell/android/res/values-jp/strings.xml
index b1a352327..657f2a91f 100644
--- a/shell/android/res/values-jp/strings.xml
+++ b/shell/android/res/values-jp/strings.xml
@@ -70,8 +70,4 @@
上の
オフ
- クリップボードにコピーするlogcatをコンテンツ\n問題報告書に貼り付けてください
-
- デバッグログを提出
-
diff --git a/shell/android/res/values-ko/strings.xml b/shell/android/res/values-ko/strings.xml
index 0786be1de..fd6a7ef04 100644
--- a/shell/android/res/values-ko/strings.xml
+++ b/shell/android/res/values-ko/strings.xml
@@ -1,6 +1,5 @@
- reicast
설정
시스템 경로 (dc_boot.bin / dc_flash.bin 내부와 데이터 폴더의 위치)
기본 시스템 경로
@@ -55,9 +54,6 @@
reicast는 드림 캐스트 에뮬레이터
버전: %1$s [%2$s]
- 홈페이지: http://reicast.com
- 베타: http://reicast.loungekatt.com
- https://api.github.com/repos/reicast/reicast-emulator/commits
- 제어 장치 A
@@ -66,12 +62,6 @@
- 제어 장치 D
-
- - cdi
- - chd
- - gdi
-
-
브라우저
설정
경로
@@ -81,9 +71,5 @@
ON
OFF
-
- 클립 보드에 복사 logcat 내용\n문제 보고서에 붙여 넣기
-
- 디버그 로그를 제출
diff --git a/shell/android/res/values-pl/strings.xml b/shell/android/res/values-pl/strings.xml
index 9e691558b..e43681723 100644
--- a/shell/android/res/values-pl/strings.xml
+++ b/shell/android/res/values-pl/strings.xml
@@ -71,6 +71,4 @@
WŁ
WYŁ
- Zapisz logi błędów
-
diff --git a/shell/android/res/values-pt/strings.xml b/shell/android/res/values-pt/strings.xml
index e58998710..c1cb200e3 100644
--- a/shell/android/res/values-pt/strings.xml
+++ b/shell/android/res/values-pt/strings.xml
@@ -35,10 +35,8 @@
Jogos disponíveis
Falha Anterior Detectada
- Conteúdo do logcat copiado para a área de transferência\n Por favor, cole no relatório de erros.
Log salvo no \"Diretório do sistema\"
Falha ao Configurar!
- Enviar Log de Erros
Configurar controles de toque na tela
Iniciar editor
diff --git a/shell/android/res/values-ru/strings.xml b/shell/android/res/values-ru/strings.xml
index f4ff29bb1..1f359a0af 100644
--- a/shell/android/res/values-ru/strings.xml
+++ b/shell/android/res/values-ru/strings.xml
@@ -60,9 +60,6 @@
DREAMCAST эмулятор "REICAST"
Версия: %1$s [%2$s]
- Сайт: http://reicast.com
- Бета версии: http://reicast.loungekatt.com
- https://api.github.com/repos/reicast/reicast-emulator/commits
- Контроллер A
@@ -84,8 +81,5 @@
Обнаружен предыдущий краш
Логи сохранены в %1$s
Ошибка конфигурации!
- Логи скопированы в буфер обмена.\nВставьте их в репорт.
-
- Отправить журнал ошибок
diff --git a/shell/android/res/values-sv/strings.xml b/shell/android/res/values-sv/strings.xml
deleted file mode 100644
index f1370eec3..000000000
--- a/shell/android/res/values-sv/strings.xml
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
- Settings
- System Path (location of the data folder with dc_boot.bin/dc_flash.bin inside)
- Default System Path
- Storage Path (location of .gdi, .chd or .cdi images)
- Default Game Storage
-
- Boot Dreamcast Bios
- BIOS Missing. The Dreamcast BIOS is required for this emulator to work. Place the BIOS file in %1$s/data/dc_boot.bin
- Flash Missing. The Dreamcast Flash is required for this emulator to work. Place the Flash file in %1$s/data/dc_flash.bin
- You have to provide the BIOS
-
- BOOT BIOS
- SELECT CURRENT FOLDER
-
- Dynarec Options
- Unstable Optimisations
- DC Region
- Limit FPS
- Use Mipmaps (fix for old SGX540)
- Widescreen Mode
- Frameskip Value
- PVR Rendering (does nothing for now)
- Set Default Disk
-
- Available Dreamcast Games
-
- Customize Touch Controls
- Launch Editor
- Touch Vibration
- Controller A
- Controller B
- Controller C
- Controller D
- Controller Not Connected
- No Controller Selected
- Select
- Remove
- Select Controller
- Press any button on the controller %1$s to assign to port
- This controller is already in use!
- Enable Custom Key Layout
- Enable Compatibility Mode
-
- Customize Physical Controls
- Modify Controller
- Press the new controller button for %1$s
-
- MOGA Pro Connected!
- MOGA Connected!
-
- reicast is a dreamcast emulator
- Version: %1$s [%2$s]
-
-
- - Controller A
- - Controller B
- - Controller C
- - Controller D
-
-
- Browser
- Settings
- Paths
- Input
- About
- Rate Me
-
- ON
- OFF
-
- Save Error Logs
-
-
diff --git a/shell/android/res/values-zh-rCN/strings.xml b/shell/android/res/values-zh-rCN/strings.xml
index 7618a82a3..faab3ef8d 100644
--- a/shell/android/res/values-zh-rCN/strings.xml
+++ b/shell/android/res/values-zh-rCN/strings.xml
@@ -51,10 +51,6 @@
MOGA已连接
reicast是一款dreamcast模拟器
版本: %1$s [%2$s]
- 主页: http://reicast.com
- 测试版: http://reicast.loungekatt.com
- https://api.github.com/repos/reicast/reicast-emulator/commits
- https://github.com/reicast/reicast-emulator/issues/
- 控制器A
@@ -71,8 +67,7 @@
评价我
开
关
- 复制logcat的内容到剪贴板\n请在问题的报告贴
+
请生成一个配置\n(运行至少一次BIOS)
- 提交错误日志
\ No newline at end of file
diff --git a/shell/android/res/values-zh/strings.xml b/shell/android/res/values-zh/strings.xml
index ff06303f4..0124eaa82 100644
--- a/shell/android/res/values-zh/strings.xml
+++ b/shell/android/res/values-zh/strings.xml
@@ -51,10 +51,6 @@
MOGA已連接
reicast是一款dreamcast模擬器
版本: %1$s [%2$s]
- 主頁: http://reicast.com
- 測試版: http://reicast.loungekatt.com
- https://api.github.com/repos/reicast/reicast-emulator/commits
- https://github.com/reicast/reicast-emulator/issues/
- 控制器A
@@ -71,8 +67,7 @@
評價我
開
關
- 復制logcat的內容到剪貼板\n請在問題的報告貼
+
請生成一個配置\n(運行至少一次BIOS)
- 提交錯誤日誌
\ No newline at end of file
diff --git a/shell/android/res/values/donottranslate.xml b/shell/android/res/values/donottranslate.xml
index 217d3e95f..4c724f1bf 100644
--- a/shell/android/res/values/donottranslate.xml
+++ b/shell/android/res/values/donottranslate.xml
@@ -1,6 +1,6 @@
- reicast [LK Edition]
+ reicast
Homepage: http://reicast.com
https://api.github.com/repos/reicast/reicast-emulator/commits
diff --git a/shell/android/res/values/strings.xml b/shell/android/res/values/strings.xml
index 99229ceba..b62a234eb 100644
--- a/shell/android/res/values/strings.xml
+++ b/shell/android/res/values/strings.xml
@@ -42,10 +42,7 @@
Available Dreamcast Games
Previous Crash Detected
- Copying logcat content to clipboard\nPlease paste in the issue report
- Log saved to \"System Path\"
Configuration failed!
- Submit Error Logs
Customize Touch Controls
Launch Editor
@@ -88,8 +85,8 @@
Paths
Input
About
- Messages
Rate Me
+ Test Suite
ON
OFF
diff --git a/shell/android/src/com/reicast/emulator/MainActivity.java b/shell/android/src/com/reicast/emulator/MainActivity.java
index ead481498..7253d8610 100644
--- a/shell/android/src/com/reicast/emulator/MainActivity.java
+++ b/shell/android/src/com/reicast/emulator/MainActivity.java
@@ -13,7 +13,6 @@ import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.content.res.Configuration;
import android.net.Uri;
-import android.os.AsyncTask;
import android.os.Build;
import android.os.Bundle;
import android.os.Environment;
@@ -35,7 +34,6 @@ import com.reicast.emulator.config.Config;
import com.reicast.emulator.config.ConfigureFragment;
import com.reicast.emulator.config.InputFragment;
import com.reicast.emulator.config.OptionsFragment;
-import com.reicast.emulator.debug.GenerateLogs;
import com.reicast.emulator.emu.JNIdc;
import com.reicast.emulator.periph.Gamepad;
@@ -74,7 +72,7 @@ public class MainActivity extends SlidingFragmentActivity implements
String prior_error = mPrefs.getString("prior_error", null);
if (prior_error != null && !prior_error.equals(null)) {
- initiateReport(prior_error);
+ displayLogOutput(prior_error);
mPrefs.edit().remove("prior_error").commit();
} else {
mUEHandler = new Thread.UncaughtExceptionHandler() {
@@ -314,7 +312,7 @@ public class MainActivity extends SlidingFragmentActivity implements
* @param error
* A generalized summary of the crash cause
*/
- private void initiateReport(final String error) {
+ private void displayLogOutput(final String error) {
AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);
builder.setTitle(getString(R.string.report_issue));
builder.setMessage(error);
@@ -324,30 +322,10 @@ public class MainActivity extends SlidingFragmentActivity implements
dialog.dismiss();
}
});
- if (MainActivity.debugUser) {
- builder.setPositiveButton("Report",
- new DialogInterface.OnClickListener() {
- public void onClick(DialogInterface dialog, int which) {
- reportIssueUpstream(error);
- dialog.dismiss();
- }
- });
- }
builder.create();
builder.show();
}
- private void reportIssueUpstream(String error) {
- GenerateLogs mGenerateLogs = new GenerateLogs(MainActivity.this);
- mGenerateLogs.setUnhandled(error);
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
- mGenerateLogs.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR,
- home_directory);
- } else {
- mGenerateLogs.execute(home_directory);
- }
- }
-
public static boolean isBiosExisting() {
File bios = new File(home_directory, "data/dc_boot.bin");
return bios.exists();
@@ -359,7 +337,7 @@ public class MainActivity extends SlidingFragmentActivity implements
}
public void onGameSelected(Uri uri) {
- if (GenerateLogs.readOutput("uname -a").equals(getString(R.string.error_kernel))) {
+ if (Config.readOutput("uname -a").equals(getString(R.string.error_kernel))) {
Toast.makeText(MainActivity.this, R.string.unsupported,
Toast.LENGTH_SHORT).show();
}
diff --git a/shell/android/src/com/reicast/emulator/config/Config.java b/shell/android/src/com/reicast/emulator/config/Config.java
index 2fae922ae..e95820865 100644
--- a/shell/android/src/com/reicast/emulator/config/Config.java
+++ b/shell/android/src/com/reicast/emulator/config/Config.java
@@ -1,5 +1,9 @@
package com.reicast.emulator.config;
+import java.io.BufferedReader;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+
import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;
@@ -112,4 +116,29 @@ public class Config {
toast.show();
}
+ /**
+ * Read the output of a shell command
+ *
+ * @param command
+ * The shell command being issued to the terminal
+ */
+ public static String readOutput(String command) {
+ try {
+ Process p = Runtime.getRuntime().exec(command);
+ InputStream is = null;
+ if (p.waitFor() == 0) {
+ is = p.getInputStream();
+ } else {
+ is = p.getErrorStream();
+ }
+ BufferedReader br = new BufferedReader(new InputStreamReader(is),
+ 2048);
+ String line = br.readLine();
+ br.close();
+ return line;
+ } catch (Exception ex) {
+ return "ERROR: " + ex.getMessage();
+ }
+ }
+
}
diff --git a/shell/android/src/com/reicast/emulator/config/ConfigureFragment.java b/shell/android/src/com/reicast/emulator/config/ConfigureFragment.java
index 200a3cec5..b3807aed3 100644
--- a/shell/android/src/com/reicast/emulator/config/ConfigureFragment.java
+++ b/shell/android/src/com/reicast/emulator/config/ConfigureFragment.java
@@ -2,11 +2,8 @@ package com.reicast.emulator.config;
import java.io.File;
-import org.apache.commons.lang3.ArrayUtils;
-
import android.app.Activity;
import android.content.SharedPreferences;
-import android.os.AsyncTask;
import android.os.Build;
import android.os.Bundle;
import android.os.Environment;
@@ -20,7 +17,6 @@ import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemSelectedListener;
import android.widget.ArrayAdapter;
-import android.widget.Button;
import android.widget.CompoundButton;
import android.widget.CompoundButton.OnCheckedChangeListener;
import android.widget.EditText;
@@ -29,9 +25,7 @@ import android.widget.SeekBar.OnSeekBarChangeListener;
import android.widget.Spinner;
import android.widget.TextView;
-import com.reicast.emulator.MainActivity;
import com.reicast.emulator.R;
-import com.reicast.emulator.debug.GenerateLogs;
import com.reicast.emulator.emu.GL2JNIView;
import de.ankri.views.Switch;
@@ -389,26 +383,5 @@ public class ConfigureFragment extends Fragment {
});
- Button debug = (Button) getView().findViewById(R.id.debug_button);
- if (MainActivity.debugUser) {
- debug.setOnClickListener(new View.OnClickListener() {
- public void onClick(View view) {
- generateErrorLog();
- }
- });
- } else {
- debug.setVisibility(View.GONE);
- }
- }
-
- public void generateErrorLog() {
- GenerateLogs mGenerateLogs = new GenerateLogs(parentActivity);
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
- mGenerateLogs.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR,
- home_directory);
- } else {
- mGenerateLogs.execute(home_directory);
- }
-
}
}
diff --git a/shell/android/xperia/jni/Android.mk b/shell/android/xperia/jni/Android.mk
deleted file mode 100644
index 86f200878..000000000
--- a/shell/android/xperia/jni/Android.mk
+++ /dev/null
@@ -1,15 +0,0 @@
-
-LOCAL_CERTIFICATE := shared
-
-LOCAL_PATH := $(call my-dir)
-
-include $(CLEAR_VARS)
-
-LOCAL_MODULE := sexplay
-LOCAL_SRC_FILES := XperiaPlay.c
-LOCAL_LDLIBS := -llog -landroid -lEGL -lGLESv1_CM
-LOCAL_STATIC_LIBRARIES := android_native_app_glue
-
-include $(BUILD_SHARED_LIBRARY)
-
-$(call import-module,android/native_app_glue)
\ No newline at end of file
diff --git a/shell/android/xperia/jni/Application.mk b/shell/android/xperia/jni/Application.mk
deleted file mode 100644
index 9d685c750..000000000
--- a/shell/android/xperia/jni/Application.mk
+++ /dev/null
@@ -1,4 +0,0 @@
-APP_ABI := armeabi-v7a x86
-#APP_ABI := armeabi-v7a
-APP_PLATFORM := android-9
-NDK_TOOLCHAIN_VERSION := 4.8
\ No newline at end of file
diff --git a/shell/debug/res/layout/dialog_message.xml b/shell/debug/res/layout/dialog_message.xml
index 20dbd621d..b635d5675 100644
--- a/shell/debug/res/layout/dialog_message.xml
+++ b/shell/debug/res/layout/dialog_message.xml
@@ -6,39 +6,39 @@
android:orientation="vertical" >
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="6dp"
+ android:stretchColumns="*" >
-
+
-
+
+
+
+
-
-
-
-
-
-
-
+ android:focusable="true" />
+
+
+
+
+
\ No newline at end of file
diff --git a/shell/debug/res/values-da/strings.xml b/shell/debug/res/values-da/strings.xml
new file mode 100644
index 000000000..740dc0831
--- /dev/null
+++ b/shell/debug/res/values-da/strings.xml
@@ -0,0 +1,7 @@
+
+
+ Kopierer logcat indhold til clipboardet\nIndsæt venligst i fejlrapporten
+ Log gemt i \"System Path\"
+ Indsend fejllogger
+
+
diff --git a/shell/debug/res/values-de/strings.xml b/shell/debug/res/values-de/strings.xml
new file mode 100644
index 000000000..f8aa2e8a4
--- /dev/null
+++ b/shell/debug/res/values-de/strings.xml
@@ -0,0 +1,7 @@
+
+
+ Kopieren logcat Inhalt in die Zwischenablage kopieren\nBitte fügen Sie in der Ausgabe Bericht
+
+ Senden Debug-Protokolle
+
+
diff --git a/shell/debug/res/values-el/strings.xml b/shell/debug/res/values-el/strings.xml
new file mode 100644
index 000000000..4f5b2d4c1
--- /dev/null
+++ b/shell/debug/res/values-el/strings.xml
@@ -0,0 +1,5 @@
+
+
+ Save Error Logs
+
+
diff --git a/shell/debug/res/values-es/strings.xml b/shell/debug/res/values-es/strings.xml
new file mode 100644
index 000000000..e7bd5171c
--- /dev/null
+++ b/shell/debug/res/values-es/strings.xml
@@ -0,0 +1,7 @@
+
+
+ Contenido Copiado Logcat al portapapeles\nPor favor, pegue en el informe de problema
+
+ Enviar registros de errores
+
+
diff --git a/shell/debug/res/values-fr/strings.xml b/shell/debug/res/values-fr/strings.xml
new file mode 100644
index 000000000..dbefb3927
--- /dev/null
+++ b/shell/debug/res/values-fr/strings.xml
@@ -0,0 +1,7 @@
+
+
+ Le contenu du logcat a été copié dans le presse-papiers\nVeuillez coller le rapport d\'émission
+
+ Soumettre le log d\'erreurs
+
+
diff --git a/shell/debug/res/values-jp/strings.xml b/shell/debug/res/values-jp/strings.xml
new file mode 100644
index 000000000..5b227de53
--- /dev/null
+++ b/shell/debug/res/values-jp/strings.xml
@@ -0,0 +1,7 @@
+
+
+ クリップボードにコピーするlogcatをコンテンツ\n問題報告書に貼り付けてください
+
+ デバッグログを提出
+
+
diff --git a/shell/debug/res/values-ko/strings.xml b/shell/debug/res/values-ko/strings.xml
new file mode 100644
index 000000000..a74deb60d
--- /dev/null
+++ b/shell/debug/res/values-ko/strings.xml
@@ -0,0 +1,7 @@
+
+
+ 클립 보드에 복사 logcat 내용\n문제 보고서에 붙여 넣기
+
+ 디버그 로그를 제출
+
+
diff --git a/shell/debug/res/values-pl/strings.xml b/shell/debug/res/values-pl/strings.xml
new file mode 100644
index 000000000..4f5b2d4c1
--- /dev/null
+++ b/shell/debug/res/values-pl/strings.xml
@@ -0,0 +1,5 @@
+
+
+ Save Error Logs
+
+
diff --git a/shell/debug/res/values-pt/strings.xml b/shell/debug/res/values-pt/strings.xml
new file mode 100644
index 000000000..0fb99dcca
--- /dev/null
+++ b/shell/debug/res/values-pt/strings.xml
@@ -0,0 +1,7 @@
+
+
+ Conteúdo do logcat copiado para a área de transferência\n Por favor, cole no relatório de erros.
+ Log salvo no \"Diretório do sistema\"
+ Enviar Log de Erros
+
+
diff --git a/shell/debug/res/values-ru/strings.xml b/shell/debug/res/values-ru/strings.xml
new file mode 100644
index 000000000..1b814fa2d
--- /dev/null
+++ b/shell/debug/res/values-ru/strings.xml
@@ -0,0 +1,8 @@
+
+
+ Логи сохранены в %1$s
+ Логи скопированы в буфер обмена.\nВставьте их в репорт.
+
+ Отправить журнал ошибок
+
+
diff --git a/shell/debug/res/values-zh-rCN/strings.xml b/shell/debug/res/values-zh-rCN/strings.xml
new file mode 100644
index 000000000..5a74bfb90
--- /dev/null
+++ b/shell/debug/res/values-zh-rCN/strings.xml
@@ -0,0 +1,6 @@
+
+
+ 复制logcat的内容到剪贴板\n请在问题的报告贴
+ 提交错误日志
+
+
\ No newline at end of file
diff --git a/shell/debug/res/values-zh/strings.xml b/shell/debug/res/values-zh/strings.xml
new file mode 100644
index 000000000..1a24137fd
--- /dev/null
+++ b/shell/debug/res/values-zh/strings.xml
@@ -0,0 +1,6 @@
+
+
+ 復制logcat的內容到剪貼板\n請在問題的報告貼
+ 提交錯誤日誌
+
+
\ No newline at end of file
diff --git a/shell/debug/res/values/donottranslate.xml b/shell/debug/res/values/donottranslate.xml
new file mode 100644
index 000000000..44157d0b8
--- /dev/null
+++ b/shell/debug/res/values/donottranslate.xml
@@ -0,0 +1,8 @@
+
+
+ reicast [LK Edition]
+
+ https://github.com/NoblesseOblige/reicast-emulator/issues/
+ http://twisted.dyndns.tv:3194/Dreamcast/report/submit.php
+
+
\ No newline at end of file
diff --git a/shell/debug/res/values/strings.xml b/shell/debug/res/values/strings.xml
index f322c02e2..1d657a011 100644
--- a/shell/debug/res/values/strings.xml
+++ b/shell/debug/res/values/strings.xml
@@ -4,6 +4,10 @@
Message Notifications
+ Copying logcat content to clipboard\nPlease paste in the issue report
+ Log saved to \"Sdcard Path\"
+ Submit Error Logs
+
ON
OFF
diff --git a/shell/debug/src/com/reicast/emulator/debug/Debug.java b/shell/debug/src/com/reicast/emulator/debug/Debug.java
index 62056670c..39e350c59 100644
--- a/shell/debug/src/com/reicast/emulator/debug/Debug.java
+++ b/shell/debug/src/com/reicast/emulator/debug/Debug.java
@@ -1,6 +1,7 @@
package com.reicast.emulator.debug;
import java.io.BufferedReader;
+import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStream;
@@ -46,6 +47,7 @@ import android.content.pm.PackageManager.NameNotFoundException;
import android.os.AsyncTask;
import android.os.Build;
import android.os.Bundle;
+import android.os.Environment;
import android.os.Handler;
import android.preference.PreferenceManager;
import android.util.Log;
@@ -95,6 +97,8 @@ public class Debug extends Activity {
private Context mContext;
private SharedPreferences mPrefs;
+ private File sdcard = Environment.getExternalStorageDirectory();
+
private ExpandableListView exlist = new ExpandableListView();
@Override
@@ -168,6 +172,23 @@ public class Debug extends Activity {
}
});
+ Button debug = (Button) findViewById(R.id.debug_button);
+ debug.setOnClickListener(new View.OnClickListener() {
+ public void onClick(View view) {
+ generateErrorLog();
+ }
+ });
+ }
+
+ public void generateErrorLog() {
+ GenerateLogs mGenerateLogs = new GenerateLogs(Debug.this);
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
+ mGenerateLogs.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR,
+ sdcard.getAbsolutePath());
+ } else {
+ mGenerateLogs.execute(sdcard.getAbsolutePath());
+ }
+
}
public class MessageAdapter extends BaseAdapter {
diff --git a/shell/android/src/com/reicast/emulator/debug/GenerateLogs.java b/shell/debug/src/com/reicast/emulator/debug/GenerateLogs.java
similarity index 99%
rename from shell/android/src/com/reicast/emulator/debug/GenerateLogs.java
rename to shell/debug/src/com/reicast/emulator/debug/GenerateLogs.java
index 68adeea41..ab9c68f17 100644
--- a/shell/android/src/com/reicast/emulator/debug/GenerateLogs.java
+++ b/shell/debug/src/com/reicast/emulator/debug/GenerateLogs.java
@@ -14,8 +14,6 @@ import android.os.AsyncTask;
import android.os.Build;
import android.widget.Toast;
-import com.reicast.emulator.R;
-
public class GenerateLogs extends AsyncTask {
public static final String build_model = android.os.Build.MODEL;
diff --git a/shell/android/src/com/reicast/emulator/debug/UploadLogs.java b/shell/debug/src/com/reicast/emulator/debug/UploadLogs.java
similarity index 99%
rename from shell/android/src/com/reicast/emulator/debug/UploadLogs.java
rename to shell/debug/src/com/reicast/emulator/debug/UploadLogs.java
index 6ec7b6dd3..0184758eb 100644
--- a/shell/android/src/com/reicast/emulator/debug/UploadLogs.java
+++ b/shell/debug/src/com/reicast/emulator/debug/UploadLogs.java
@@ -24,8 +24,6 @@ import android.os.AsyncTask;
import android.os.Build;
import android.os.StrictMode;
-import com.reicast.emulator.R;
-
/**
* Upload the specialized logcat to reicast issues
*