From da3ddb6d7bf1bad4fec351095df83e3a4ae73349 Mon Sep 17 00:00:00 2001 From: Motorhead1991 Date: Fri, 25 Dec 2020 21:34:08 -0700 Subject: [PATCH 1/3] Core: Filter ANDROID in with Linux Theyre similar enough, so i think we can keep it close inline --- source/4.0.6/Core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/4.0.6/Core.cpp b/source/4.0.6/Core.cpp index 32fd970..20a96ca 100644 --- a/source/4.0.6/Core.cpp +++ b/source/4.0.6/Core.cpp @@ -931,7 +931,7 @@ int recurse = 0; // recurse count check //********** file extensions and flags for linux and Win32 ******************** -#ifdef __linux__ +#if defined(__linux__) || defined(__ANDROID__) HOP fd[] ={{".bin","r"}, {"_lst.txt","w"}, {"_msg.txt","w"}, {"_dir.txt","r"},{"_cmt.txt","r"}, {"sad.ini","r"} , {"_dbg.txt","w"} }; From d2396d44b7296f8a984cb2ec8ac30076b3f63684 Mon Sep 17 00:00:00 2001 From: Motorhead1991 Date: Fri, 25 Dec 2020 21:58:36 -0700 Subject: [PATCH 2/3] Call on the Android log header, but only for Android --- source/4.0.6/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/4.0.6/main.cpp b/source/4.0.6/main.cpp index 2b2d44c..0b57f5c 100644 --- a/source/4.0.6/main.cpp +++ b/source/4.0.6/main.cpp @@ -6,6 +6,10 @@ #include // linux #include "shared.h" +#ifdef __ANDROID__ +#include "android/log.h" +#endif + int get_config(char **); void shutdwn (void); void startup (void); From 11c8ea8c31edbfc20f3219ff5c92ed2307161e66 Mon Sep 17 00:00:00 2001 From: Motorhead1991 Date: Fri, 25 Dec 2020 21:59:28 -0700 Subject: [PATCH 3/3] Android: warn about storing binaries on the SD card It's writable by the user, where everywhere else is not --- source/4.0.6/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/4.0.6/main.cpp b/source/4.0.6/main.cpp index 0b57f5c..ea46d18 100644 --- a/source/4.0.6/main.cpp +++ b/source/4.0.6/main.cpp @@ -134,6 +134,11 @@ int main (int argc, const char **argv) prt_stars(); printf ("EEC-IV disassembler Version %s (%s)", SADVERSION, SADDATE); printf ("\nAbsolutely no warranty or liability"); +#ifdef __ANDROID__ + printf ("\n"); + printf ("\nWARNING: This should be run from the"); + printf ("\n'SD card'."); +#endif prt_stars(); fn = 0;