From 091a4570715599ee52dbfa192cbf8f58c00af8b6 Mon Sep 17 00:00:00 2001 From: Alexander Guryanov Date: Thu, 12 May 2022 16:35:02 +0700 Subject: [PATCH] * Change main name for android * Always use HD version on android --- lib/xtool/xtcore.cpp | 4 ++++ src/iscreen/iextern.cpp | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/lib/xtool/xtcore.cpp b/lib/xtool/xtcore.cpp index bf123211..6cff995e 100644 --- a/lib/xtool/xtcore.cpp +++ b/lib/xtool/xtcore.cpp @@ -106,7 +106,11 @@ int getCurRtoId() { return XObj == nullptr ? 0 : XObj->ID; } +#ifdef ANDROID +extern int vangers_main(int argc, char *argv[]) +#else int main(int argc, char *argv[]) +#endif { int id, prevID, clockDelta, clockCnt, clockNow, clockCntGlobal, clockNowGlobal; __internal_argc = argc; diff --git a/src/iscreen/iextern.cpp b/src/iscreen/iextern.cpp index d886ac80..66c13bf8 100644 --- a/src/iscreen/iextern.cpp +++ b/src/iscreen/iextern.cpp @@ -1079,6 +1079,11 @@ void iScreenOption::SetValueCHR(const char* p) int iGetOptionValue(int id) { +#ifdef ANDROID + if (id == iSCREEN_RESOLUTION) { + return 1; + } +#endif if(iScrOpt && iScrOpt[id]) return iScrOpt[id] -> GetValueINT(); else