diff --git a/core/deps/libelf/elf64.cpp b/core/deps/libelf/elf64.cpp index 7366f7845..f69f6ccfe 100644 --- a/core/deps/libelf/elf64.cpp +++ b/core/deps/libelf/elf64.cpp @@ -157,7 +157,7 @@ elf64_getSectionName(void *elfFile, int i) struct Elf64_Shdr *sections = elf64_getSectionTable((Elf64_Header*)elfFile); char *str_table = elf64_getSegmentStringTable((Elf64_Header*)elfFile); if (str_table == NULL) { - return ""; + return (char*)""; } else { return str_table + sections[i].sh_name; } diff --git a/core/hw/mem/_vmem.cpp b/core/hw/mem/_vmem.cpp index 43e050c11..c7957eb0f 100644 --- a/core/hw/mem/_vmem.cpp +++ b/core/hw/mem/_vmem.cpp @@ -761,7 +761,7 @@ bool _vmem_reserve() //[0x10000000,0x20000000) -> unused unused_buffer(0x10000000,0x20000000); - printf("vmem reserve: base: %08X, aram: %08x, vram: %08X, ram: %08X\n",virt_ram_base,aica_ram.data,vram.data,mem_b.data); + printf("vmem reserve: base: %8s, aram: %8s, vram: %8s, ram: %8s\n",virt_ram_base,aica_ram.data,vram.data,mem_b.data); printf("Resetting mem\n"); diff --git a/core/hw/naomi/naomi_cart.cpp b/core/hw/naomi/naomi_cart.cpp index f1310fa14..49e707d00 100644 --- a/core/hw/naomi/naomi_cart.cpp +++ b/core/hw/naomi/naomi_cart.cpp @@ -50,7 +50,7 @@ bool naomi_cart_LoadRom(char* file) char* eon = strstr(line, "\n"); if (!eon) - printf("+Loading naomi rom that has no name\n", line); + printf("+Loading naomi rom that has no name\n"); else *eon = 0; diff --git a/core/hw/pvr/Renderer_if.cpp b/core/hw/pvr/Renderer_if.cpp index 5af14df8c..ec13030e5 100644 --- a/core/hw/pvr/Renderer_if.cpp +++ b/core/hw/pvr/Renderer_if.cpp @@ -318,7 +318,6 @@ void rend_start_render() } if (fCheckFrames) { - u8 v; u8 digest2[16]; int ch = fgetc(fCheckFrames); @@ -420,11 +419,11 @@ void rend_end_wait() bool rend_init() { - if (fLogFrames = fopen(settings.pvr.HashLogFile.c_str(), "wb")) { + if ((fLogFrames = fopen(settings.pvr.HashLogFile.c_str(), "wb"))) { printf("Saving frame hashes to: '%s'\n", settings.pvr.HashLogFile.c_str()); } - if (fCheckFrames = fopen(settings.pvr.HashCheckFile.c_str(), "rb")) { + if ((fCheckFrames = fopen(settings.pvr.HashCheckFile.c_str(), "rb"))) { printf("Comparing frame hashes against: '%s'\n", settings.pvr.HashCheckFile.c_str()); } diff --git a/core/hw/pvr/drkPvr.cpp b/core/hw/pvr/drkPvr.cpp index 50c88c05a..d372c910c 100644 --- a/core/hw/pvr/drkPvr.cpp +++ b/core/hw/pvr/drkPvr.cpp @@ -16,7 +16,6 @@ #include "pvr_regs.h" #include "pvr_mem.h" #include "Renderer_if.h" -#include void libPvr_LockedBlockWrite (vram_block* block,u32 addr) diff --git a/core/hw/pvr/pvr_mem.cpp b/core/hw/pvr/pvr_mem.cpp index 9d44f1693..98aa79ddf 100644 --- a/core/hw/pvr/pvr_mem.cpp +++ b/core/hw/pvr/pvr_mem.cpp @@ -13,7 +13,6 @@ //TODO : move code later to a plugin //TODO : Fix registers arrays , they must be smaller now doe to the way SB registers are handled -#include "types.h" #include "hw/holly/holly_intc.h" @@ -237,7 +236,6 @@ void TAWrite(u32 address,u32* data,u32 count) } #include "hw/sh4/sh4_mmr.h" -#include "hw/pvr/ta.h" void NOINLINE MemWrite32(void* dst, void* src) { diff --git a/core/hw/pvr/pvr_sb_regs.cpp b/core/hw/pvr/pvr_sb_regs.cpp index bb7b1a59d..75965622a 100644 --- a/core/hw/pvr/pvr_sb_regs.cpp +++ b/core/hw/pvr/pvr_sb_regs.cpp @@ -9,7 +9,6 @@ #include "hw/sh4/modules/dmac.h" #include "hw/sh4/sh4_mem.h" #include "pvr_sb_regs.h" -#include "types.h" #include "hw/sh4/sh4_mmr.h" #include "ta.h" diff --git a/core/hw/sh4/dyna/blockmanager.cpp b/core/hw/sh4/dyna/blockmanager.cpp index 51f9f02fb..f64c3e4c7 100644 --- a/core/hw/sh4/dyna/blockmanager.cpp +++ b/core/hw/sh4/dyna/blockmanager.cpp @@ -122,7 +122,7 @@ RuntimeBlockInfo* bm_GetBlock(void* dynarec_code) } else { - printf("bm_GetBlock(%08X) failed ..\n",dynarec_code); + printf("bm_GetBlock(%8s) failed ..\n",dynarec_code); return 0; } } @@ -510,7 +510,7 @@ void bm_PrintTopBlocks() sel_hops+=all_blocks[i]->host_opcodes*all_blocks[i]->runs; } - printf(" >-< %.2f%% covered in top 1% blocks\n",sel_hops/total_hops); + printf(" >-< %.2f%% covered in top 1%% blocks\n",sel_hops/total_hops); size_t i; for (i=all_blocks.size()/100;sel_hops/total_hops<50;i++) diff --git a/core/hw/sh4/sh4_opcode_list.cpp b/core/hw/sh4/sh4_opcode_list.cpp index 02ad57709..811e69b09 100644 --- a/core/hw/sh4/sh4_opcode_list.cpp +++ b/core/hw/sh4/sh4_opcode_list.cpp @@ -2,7 +2,6 @@ #include "interpr/sh4_opcodes.h" #include "sh4_opcode_list.h" #include "dyna/decoder_opcodes.h" -#include "types.h" #include "hw/sh4/dyna/shil.h" #include "reios/reios.h" diff --git a/core/imgread/cdi.cpp b/core/imgread/cdi.cpp index 913259406..ab1433f31 100644 --- a/core/imgread/cdi.cpp +++ b/core/imgread/cdi.cpp @@ -68,7 +68,7 @@ Disc* cdi_parse(const wchar* file) case 2 : default: printf("Mode2/"); break; } - printf("%d ",track.sector_size); + printf("%lu ",track.sector_size); printf("Pregap: %-3ld ",track.pregap_length); printf("Size: %-6ld ",track.length); @@ -122,7 +122,7 @@ Disc* cdi_parse(const wchar* file) else { - printf("Track position: %d\n",track.position + track.pregap_length * track.sector_size); + printf("Track position: %lu\n",track.position + track.pregap_length * track.sector_size); core_fseek(fsource, track.position, SEEK_SET); // fseek(fsource, track->pregap_length * track->sector_size, SEEK_CUR); // fseek(fsource, track->length * track->sector_size, SEEK_CUR); @@ -198,4 +198,4 @@ Disc* cdi_parse(const wchar* file) pfctoc_mod=0; return rv; -#endif \ No newline at end of file +#endif diff --git a/core/linux/common.cpp b/core/linux/common.cpp index ab5591557..8830668af 100644 --- a/core/linux/common.cpp +++ b/core/linux/common.cpp @@ -95,7 +95,7 @@ void fault_handler (int sn, siginfo_t * si, void *segfault_ctx) #endif else { - printf("SIGSEGV @ %p (fault_handler+0x%p) ... %p -> was not in vram\n", ctx.pc, ctx.pc - (unat)fault_handler, si->si_addr); + printf("SIGSEGV @ %u (fault_handler+0x%u) ... %p -> was not in vram\n", ctx.pc, ctx.pc - (unat)fault_handler, si->si_addr); die("segfault"); signal(SIGSEGV, SIG_DFL); } @@ -196,7 +196,7 @@ void VArray2::LockRegion(u32 offset,u32 size) u32 rv=mprotect (data+offset-inpage, size+inpage, PROT_READ ); if (rv!=0) { - printf("mprotect(%08X,%08X,R) failed: %d | %d\n",data+offset-inpage,size+inpage,rv,errno); + printf("mprotect(%8s,%08X,R) failed: %d | %d\n",data+offset-inpage,size+inpage,rv,errno); die("mprotect failed ..\n"); } diff --git a/core/reios/gdrom_hle.cpp b/core/reios/gdrom_hle.cpp index 24009dfeb..a43fbeb9a 100644 --- a/core/reios/gdrom_hle.cpp +++ b/core/reios/gdrom_hle.cpp @@ -110,7 +110,7 @@ void GD_HLE_Command(u32 cc, u32 prm) switch(cc) { case GDCC_GETTOC: - printf("GDROM:\t*FIXME* CMD GETTOC PRM:%X\n",cc,prm); + printf("GDROM:\t*FIXME* CMD GETTOC CC:%X PRM:%X\n",cc,prm); break; case GDCC_GETTOC2: @@ -118,12 +118,12 @@ void GD_HLE_Command(u32 cc, u32 prm) break; case GDCC_GETSES: - debugf("GDROM:\tGETSES PRM:%X\n", cc, prm); + debugf("GDROM:\tGETSES CC:%X PRM:%X\n", cc, prm); GDROM_HLE_ReadSES(r[5]); break; case GDCC_INIT: - printf("GDROM:\tCMD INIT PRM:%X\n",cc,prm); + printf("GDROM:\tCMD INIT CC:%X PRM:%X\n",cc,prm); break; case GDCC_PIOREAD: @@ -131,30 +131,30 @@ void GD_HLE_Command(u32 cc, u32 prm) break; case GDCC_DMAREAD: - debugf("GDROM:\tCMD DMAREAD PRM:%X\n", cc, prm); + debugf("GDROM:\tCMD DMAREAD CC:%X PRM:%X\n", cc, prm); GDROM_HLE_ReadDMA(r[5]); break; case GDCC_PLAY_SECTOR: - printf("GDROM:\tCMD PLAYSEC? PRM:%X\n",cc,prm); + printf("GDROM:\tCMD PLAYSEC? CC:%X PRM:%X\n",cc,prm); break; case GDCC_RELEASE: - printf("GDROM:\tCMD RELEASE? PRM:%X\n",cc,prm); + printf("GDROM:\tCMD RELEASE? CC:%X PRM:%X\n",cc,prm); break; - case GDCC_STOP: printf("GDROM:\tCMD STOP PRM:%X\n",cc,prm); break; - case GDCC_SEEK: printf("GDROM:\tCMD SEEK PRM:%X\n",cc,prm); break; - case GDCC_PLAY: printf("GDROM:\tCMD PLAY PRM:%X\n",cc,prm); break; - case GDCC_PAUSE:printf("GDROM:\tCMD PAUSE PRM:%X\n",cc,prm); break; + case GDCC_STOP: printf("GDROM:\tCMD STOP CC:%X PRM:%X\n",cc,prm); break; + case GDCC_SEEK: printf("GDROM:\tCMD SEEK CC:%X PRM:%X\n",cc,prm); break; + case GDCC_PLAY: printf("GDROM:\tCMD PLAY CC:%X PRM:%X\n",cc,prm); break; + case GDCC_PAUSE:printf("GDROM:\tCMD PAUSE CC:%X PRM:%X\n",cc,prm); break; case GDCC_READ: - printf("GDROM:\tCMD READ PRM:%X\n",cc,prm); + printf("GDROM:\tCMD READ CC:%X PRM:%X\n",cc,prm); break; case GDCC_GETSCD: - debugf("GDROM:\tGETSCD PRM:%X\n",cc,prm); + debugf("GDROM:\tGETSCD CC:%X PRM:%X\n",cc,prm); GDCC_HLE_GETSCD(r[5]); break; diff --git a/core/rend/gles/gles.cpp b/core/rend/gles/gles.cpp index 64c8f406a..6c665bf4c 100755 --- a/core/rend/gles/gles.cpp +++ b/core/rend/gles/gles.cpp @@ -457,7 +457,7 @@ int screen_height; screen_width=w; screen_height=h; - printf("EGL config: %08X, %08X, %08X %dx%d\n",gl.setup.context,gl.setup.display,gl.setup.surface,w,h); + printf("EGL config: %p, %08X, %08X %dx%d\n",gl.setup.context,gl.setup.display,gl.setup.surface,w,h); return true; } diff --git a/shell/android-studio/reicast/build.gradle b/shell/android-studio/reicast/build.gradle index 77d9f5c4b..802a62da9 100644 --- a/shell/android-studio/reicast/build.gradle +++ b/shell/android-studio/reicast/build.gradle @@ -47,6 +47,7 @@ android { buildTypes { release { minifyEnabled false + zipAlignEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' signingConfig signingConfigs.release } diff --git a/shell/android-studio/reicast/src/main/java/com/android/util/DreamTime.java b/shell/android-studio/reicast/src/main/java/com/android/util/DreamTime.java index e25b1b3f3..d28ea0aeb 100644 --- a/shell/android-studio/reicast/src/main/java/com/android/util/DreamTime.java +++ b/shell/android-studio/reicast/src/main/java/com/android/util/DreamTime.java @@ -4,13 +4,10 @@ import java.util.Calendar; public class DreamTime { - private static long dreamRTC = ((20 * 365 + 5) * 86400) - 1; - public static long getDreamtime() { + long dreamRTC = ((20 * 365 + 5) * 86400) - 1; Calendar cal = Calendar.getInstance(); - int utcOffset = cal.get(Calendar.ZONE_OFFSET) - + cal.get(Calendar.DST_OFFSET); - return (System.currentTimeMillis() / 1000) + dreamRTC - + (utcOffset / 1000); + int utcOffset = cal.get(Calendar.ZONE_OFFSET) + cal.get(Calendar.DST_OFFSET); + return (System.currentTimeMillis() / 1000) + dreamRTC + (utcOffset / 1000); } } diff --git a/shell/android-studio/reicast/src/main/java/com/android/util/FileUtils.java b/shell/android-studio/reicast/src/main/java/com/android/util/FileUtils.java index d7a3305f5..110f06b87 100644 --- a/shell/android-studio/reicast/src/main/java/com/android/util/FileUtils.java +++ b/shell/android-studio/reicast/src/main/java/com/android/util/FileUtils.java @@ -24,6 +24,7 @@ import java.text.SimpleDateFormat; import java.util.Collection; import java.util.Date; import java.util.List; +import java.util.Locale; import java.util.Vector; import java.util.zip.GZIPInputStream; import java.util.zip.GZIPOutputStream; @@ -63,15 +64,14 @@ public class FileUtils { public Collection listFiles(File directory, FilenameFilter[] filter, int recurse) { - Vector files = new Vector(); + Vector files = new Vector<>(); File[] entries = directory.listFiles(); if (entries != null) { for (File entry : entries) { for (FilenameFilter filefilter : filter) { - if (filter == null - || filefilter.accept(directory, entry.getName())) { + if (filefilter.accept(directory, entry.getName())) { files.add(entry); } } @@ -90,7 +90,7 @@ public class FileUtils { SharedPreferences mPrefs = PreferenceManager.getDefaultSharedPreferences(c); File dir = new File(mPrefs.getString(Config.pref_home, Environment.getExternalStorageDirectory().getAbsolutePath())); - SimpleDateFormat s = new SimpleDateFormat("yyyyMMddHHmmss"); + SimpleDateFormat s = new SimpleDateFormat("yyyyMMddHHmmss", Locale.getDefault()); String timestamp = s.format(new Date()); File f = new File(dir.getAbsolutePath(), timestamp+".jpeg"); FileOutputStream out = new FileOutputStream(f); @@ -129,8 +129,6 @@ public class FileUtils { bt[(h-k-1)*w+j]=pix1; } } - - Bitmap sb=Bitmap.createBitmap(bt, w, h, Bitmap.Config.ARGB_8888); - return sb; + return Bitmap.createBitmap(bt, w, h, Bitmap.Config.ARGB_8888); } } \ No newline at end of file diff --git a/shell/android-studio/reicast/src/main/java/com/reicast/emulator/CloudFragment.java b/shell/android-studio/reicast/src/main/java/com/reicast/emulator/CloudFragment.java index 6918c7f24..6df27828f 100644 --- a/shell/android-studio/reicast/src/main/java/com/reicast/emulator/CloudFragment.java +++ b/shell/android-studio/reicast/src/main/java/com/reicast/emulator/CloudFragment.java @@ -212,13 +212,9 @@ class DropBoxClient { Editor edit = prefs.edit(); edit.putString("DBoxKey", key); edit.putString("DBoxSecret", secret); - edit.commit(); + edit.apply(); } - - - - private AndroidAuthSession buildSession() { AppKeyPair appKeyPair = new AppKeyPair(APP_KEY, APP_SECRET); AndroidAuthSession session; diff --git a/shell/android-studio/reicast/src/main/java/com/reicast/emulator/FileBrowser.java b/shell/android-studio/reicast/src/main/java/com/reicast/emulator/FileBrowser.java index fac533da5..20e69c811 100644 --- a/shell/android-studio/reicast/src/main/java/com/reicast/emulator/FileBrowser.java +++ b/shell/android-studio/reicast/src/main/java/com/reicast/emulator/FileBrowser.java @@ -416,7 +416,7 @@ public class FileBrowser extends Fragment { private String heading; private File parent; - public navigate(FileBrowser context) { + navigate(FileBrowser context) { browser = new WeakReference<>(context); } diff --git a/shell/android-studio/reicast/src/main/java/com/reicast/emulator/MainActivity.java b/shell/android-studio/reicast/src/main/java/com/reicast/emulator/MainActivity.java index eb71bcae7..659d28b4c 100644 --- a/shell/android-studio/reicast/src/main/java/com/reicast/emulator/MainActivity.java +++ b/shell/android-studio/reicast/src/main/java/com/reicast/emulator/MainActivity.java @@ -225,9 +225,6 @@ public class MainActivity extends AppCompatActivity implements } public void onGameSelected(Uri uri) { - if (Config.readOutput("uname -a").equals(getString(R.string.error_kernel))) { - showToastMessage(getString(R.string.unsupported), Snackbar.LENGTH_SHORT); - } String home_directory = mPrefs.getString(Config.pref_home, Environment.getExternalStorageDirectory().getAbsolutePath()); diff --git a/shell/android-studio/reicast/src/main/java/com/reicast/emulator/config/OptionsFragment.java b/shell/android-studio/reicast/src/main/java/com/reicast/emulator/config/OptionsFragment.java index ab72e5e0e..e2a5b9b71 100644 --- a/shell/android-studio/reicast/src/main/java/com/reicast/emulator/config/OptionsFragment.java +++ b/shell/android-studio/reicast/src/main/java/com/reicast/emulator/config/OptionsFragment.java @@ -50,6 +50,7 @@ import java.io.FilenameFilter; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; +import java.lang.ref.WeakReference; import java.util.Collection; import java.util.HashSet; import java.util.Iterator; @@ -132,7 +133,7 @@ public class OptionsFragment extends Fragment { Button mainBrowse = (Button) getView().findViewById(R.id.browse_main_path); mSpnrThemes = (Spinner) getView().findViewById(R.id.pick_button_theme); - new LocateThemes().execute(home_directory + "/themes"); + new LocateThemes(this).execute(home_directory + "/themes"); final EditText editBrowse = (EditText) getView().findViewById(R.id.main_path); editBrowse.setText(home_directory); @@ -156,7 +157,7 @@ public class OptionsFragment extends Fragment { } mPrefs.edit().putString(Config.pref_home, home_directory).apply(); JNIdc.config(home_directory); - new LocateThemes().execute(home_directory + "/themes"); + new LocateThemes(OptionsFragment.this).execute(home_directory + "/themes"); } } @@ -606,11 +607,17 @@ public class OptionsFragment extends Fragment { }); } - private final class LocateThemes extends AsyncTask> { + private static class LocateThemes extends AsyncTask> { + private WeakReference options; + + LocateThemes(OptionsFragment context) { + options = new WeakReference<>(context); + } + @Override protected List doInBackground(String... paths) { File storage = new File(paths[0]); - String[] mediaTypes = getResources().getStringArray(R.array.themes); + String[] mediaTypes = options.get().getResources().getStringArray(R.array.themes); FilenameFilter[] filter = new FilenameFilter[mediaTypes.length]; int i = 0; for (final String type : mediaTypes) { @@ -641,18 +648,18 @@ public class OptionsFragment extends Fragment { } themes[items.size()] = "None"; ArrayAdapter themeAdapter = new ArrayAdapter( - getActivity(), android.R.layout.simple_spinner_item, themes); + options.get().getActivity(), android.R.layout.simple_spinner_item, themes); themeAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); - mSpnrThemes.setAdapter(themeAdapter); - mSpnrThemes.setOnItemSelectedListener(new OnItemSelectedListener() { + options.get().mSpnrThemes.setAdapter(themeAdapter); + options.get().mSpnrThemes.setOnItemSelectedListener(new OnItemSelectedListener() { @Override public void onItemSelected(AdapterView parentView, View selectedItemView, int position, long id) { String theme = String.valueOf(parentView.getItemAtPosition(position)); if (theme.equals("None")) { - mPrefs.edit().remove(Config.pref_theme).apply(); + options.get().mPrefs.edit().remove(Config.pref_theme).apply(); } else { - String theme_path = home_directory + "/themes/" + theme; - mPrefs.edit().putString(Config.pref_theme, theme_path).apply(); + String theme_path = options.get().home_directory + "/themes/" + theme; + options.get().mPrefs.edit().putString(Config.pref_theme, theme_path).apply(); } } @Override @@ -661,7 +668,7 @@ public class OptionsFragment extends Fragment { } }); } else { - mSpnrThemes.setEnabled(false); + options.get().mSpnrThemes.setEnabled(false); } } } diff --git a/shell/android-studio/reicast/src/main/java/com/reicast/emulator/debug/GitAdapter.java b/shell/android-studio/reicast/src/main/java/com/reicast/emulator/debug/GitAdapter.java index 8808899b1..9103839ab 100644 --- a/shell/android-studio/reicast/src/main/java/com/reicast/emulator/debug/GitAdapter.java +++ b/shell/android-studio/reicast/src/main/java/com/reicast/emulator/debug/GitAdapter.java @@ -34,13 +34,11 @@ import java.util.HashMap; public class GitAdapter extends BaseAdapter { - private static Activity activity; private ArrayList> data; private LayoutInflater inflater = null; private DisplayImageOptions options; - public GitAdapter(Activity a, ArrayList> d) { - activity = a; + public GitAdapter(Activity activity, ArrayList> d) { this.data = d; this.inflater = (LayoutInflater) activity .getSystemService(Context.LAYOUT_INFLATER_SERVICE); @@ -141,16 +139,10 @@ public class GitAdapter extends BaseAdapter { WebView mWebView) { mWebView.getSettings().setSupportZoom(true); mWebView.getSettings().setBuiltInZoomControls(true); - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { - mWebView.getSettings().setDisplayZoomControls(false); - } + mWebView.getSettings().setDisplayZoomControls(false); mWebView.setInitialScale(1); - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ECLAIR) { - mWebView.getSettings().setUseWideViewPort(true); - } - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ECLAIR_MR1) { - mWebView.getSettings().setLoadWithOverviewMode(true); - } + mWebView.getSettings().setUseWideViewPort(true); + mWebView.getSettings().setLoadWithOverviewMode(true); mWebView.getSettings().setJavaScriptEnabled(true); mWebView.getSettings().setPluginState(PluginState.ON); mWebView.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE); diff --git a/shell/android-studio/reicast/src/main/java/com/reicast/emulator/emu/GLCFactory14.java b/shell/android-studio/reicast/src/main/java/com/reicast/emulator/emu/GLCFactory14.java index cc27b165f..18978e122 100644 --- a/shell/android-studio/reicast/src/main/java/com/reicast/emulator/emu/GLCFactory14.java +++ b/shell/android-studio/reicast/src/main/java/com/reicast/emulator/emu/GLCFactory14.java @@ -161,7 +161,7 @@ public class GLCFactory14 { if (r == mRedSize && g == mGreenSize && b == mBlueSize && a == mAlphaSize) if (GL2JNIView.DEBUG) { - LOGW(String.format("Configuration %d:", i)); + LOGW(String.format(Locale.ENGLISH, "Configuration %d:", i)); printConfig(display, configs[i]); } return config; diff --git a/shell/android-studio/reicast/src/main/jni/src/Android.cpp b/shell/android-studio/reicast/src/main/jni/src/Android.cpp index f14384394..c73b3844a 100644 --- a/shell/android-studio/reicast/src/main/jni/src/Android.cpp +++ b/shell/android-studio/reicast/src/main/jni/src/Android.cpp @@ -8,18 +8,14 @@ #include #include -#include #include "types.h" #include "profiler/profiler.h" -#include "cfg/cfg.h" #include "rend/TexCache.h" #include "hw/maple/maple_devs.h" #include "hw/maple/maple_if.h" #include "oslib/audiobackend_android.h" -#include "utils.h" - extern "C" { JNIEXPORT void JNICALL Java_com_reicast_emulator_emu_JNIdc_config(JNIEnv *env,jobject obj,jstring dirName) __attribute__((visibility("default"))); diff --git a/shell/android-studio/reicast/src/main/jni/src/utils.cpp b/shell/android-studio/reicast/src/main/jni/src/utils.cpp index 76182accb..d3a44885f 100644 --- a/shell/android-studio/reicast/src/main/jni/src/utils.cpp +++ b/shell/android-studio/reicast/src/main/jni/src/utils.cpp @@ -1,6 +1,5 @@ #include #include -#include extern "C" { #include "deps/libpng/png.h" } diff --git a/shell/android-studio/reicast/src/main/res/drawable/background.xml b/shell/android-studio/reicast/src/main/res/drawable/background.xml index 03ea5be22..ae833c037 100644 --- a/shell/android-studio/reicast/src/main/res/drawable/background.xml +++ b/shell/android-studio/reicast/src/main/res/drawable/background.xml @@ -1,6 +1,5 @@ - + @@ -9,7 +8,7 @@ \ No newline at end of file diff --git a/shell/android-studio/reicast/src/main/res/layout-v14/configure_fragment.xml b/shell/android-studio/reicast/src/main/res/layout-v14/configure_fragment.xml index 13495f88b..3ddbcdee5 100644 --- a/shell/android-studio/reicast/src/main/res/layout-v14/configure_fragment.xml +++ b/shell/android-studio/reicast/src/main/res/layout-v14/configure_fragment.xml @@ -523,7 +523,7 @@ @@ -599,7 +599,7 @@ @@ -628,7 +628,7 @@ @@ -657,7 +657,7 @@ diff --git a/shell/android-studio/reicast/src/main/res/layout-v14/input_fragment.xml b/shell/android-studio/reicast/src/main/res/layout-v14/input_fragment.xml index 263add193..62b5a2a8d 100644 --- a/shell/android-studio/reicast/src/main/res/layout-v14/input_fragment.xml +++ b/shell/android-studio/reicast/src/main/res/layout-v14/input_fragment.xml @@ -34,7 +34,7 @@