mirror of
https://github.com/Tinob/Ishiiruka.git
synced 2024-06-16 03:17:27 -04:00
Merge latest master changes
This commit is contained in:
parent
50e8eb90ad
commit
138ac7f7c0
|
@ -188,7 +188,7 @@ else()
|
|||
add_definitions(-D_ARCH_32=1)
|
||||
endif()
|
||||
|
||||
|
||||
include(CheckCCompilerFlag)
|
||||
if(ENABLE_GENERIC)
|
||||
message("Warning! Building generic build!")
|
||||
set(_M_GENERIC 1)
|
||||
|
@ -203,6 +203,16 @@ elseif(_ARCH_64 AND (
|
|||
set(_M_X86_64 1)
|
||||
add_definitions(-D_M_X86=1 -D_M_X86_64=1 -msse2)
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fno-pie")
|
||||
if(CMAKE_CXX_COMPILER_ID STREQUAL GNU)
|
||||
CHECK_C_COMPILER_FLAG("-no-pie" NO_PIE_UPSTREAM)
|
||||
if(NO_PIE_UPSTREAM)
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -no-pie")
|
||||
endif()
|
||||
CHECK_C_COMPILER_FLAG("-nopie" NO_PIE_PATCHED)
|
||||
if(NO_PIE_PATCHED)
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -nopie")
|
||||
endif()
|
||||
endif()
|
||||
elseif(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "aarch64")
|
||||
set(_M_ARM 1)
|
||||
set(_M_ARM_64 1)
|
||||
|
@ -559,9 +569,11 @@ if(NOT ANDROID)
|
|||
endif()
|
||||
if(SYSTEM_PORTAUDIO AND NOT APPLE)
|
||||
message("Using shared PortAudio for mic support")
|
||||
set(PORTAUDIO_LIBRARIES portaudio)
|
||||
else()
|
||||
message("Using static PortAudio from Externals for mic support")
|
||||
add_subdirectory(Externals/portaudio)
|
||||
set(PORTAUDIO_LIBRARIES portaudio_static)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
|
||||
[EmuState]
|
||||
# The Emulation State. 1 is worst, 5 is best, 0 is not set.
|
||||
EmulationStateId = 1
|
||||
EmulationIssues = Freezes at boot, refer issue 6701
|
||||
EmulationStateId = 4
|
||||
EmulationIssues = Missing microphone emulation
|
||||
|
||||
[OnLoad]
|
||||
# Add memory patches to be loaded once on boot here.
|
||||
|
@ -16,6 +16,3 @@ EmulationIssues = Freezes at boot, refer issue 6701
|
|||
|
||||
[ActionReplay]
|
||||
# Add action replay cheats here.
|
||||
|
||||
[Video_Hacks]
|
||||
EFBToTextureEnable = False
|
||||
|
|
18
Data/Sys/GameSettings/SJN.ini
Normal file
18
Data/Sys/GameSettings/SJN.ini
Normal file
|
@ -0,0 +1,18 @@
|
|||
# SJNE41, SJNP41 - Just Dance 2016
|
||||
|
||||
[Core]
|
||||
# Values set here will override the main Dolphin settings.
|
||||
|
||||
[EmuState]
|
||||
# The Emulation State. 1 is worst, 5 is best, 0 is not set.
|
||||
EmulationStateId = 4
|
||||
EmulationIssues = Missing microphone emulation
|
||||
|
||||
[OnLoad]
|
||||
# Add memory patches to be loaded once on boot here.
|
||||
|
||||
[OnFrame]
|
||||
# Add memory patches to be applied every frame here.
|
||||
|
||||
[ActionReplay]
|
||||
# Add action replay cheats here.
|
|
@ -5,8 +5,8 @@
|
|||
|
||||
[EmuState]
|
||||
# The Emulation State. 1 is worst, 5 is best, 0 is not set.
|
||||
EmulationStateId = 1
|
||||
EmulationIssues = Freezes at boot, refer issue 6701
|
||||
EmulationStateId = 4
|
||||
EmulationIssues = Missing microphone emulation
|
||||
|
||||
[OnLoad]
|
||||
# Add memory patches to be loaded once on boot here.
|
||||
|
@ -16,6 +16,3 @@ EmulationIssues = Freezes at boot, refer issue 6701
|
|||
|
||||
[ActionReplay]
|
||||
# Add action replay cheats here.
|
||||
|
||||
[Video_Hacks]
|
||||
EFBToTextureEnable = False
|
||||
|
|
18
Data/Sys/GameSettings/SZ7.ini
Normal file
18
Data/Sys/GameSettings/SZ7.ini
Normal file
|
@ -0,0 +1,18 @@
|
|||
# SZ7E41, SZ7P41 - Just Dance 2017
|
||||
|
||||
[Core]
|
||||
# Values set here will override the main Dolphin settings.
|
||||
|
||||
[EmuState]
|
||||
# The Emulation State. 1 is worst, 5 is best, 0 is not set.
|
||||
EmulationStateId = 4
|
||||
EmulationIssues = Missing microphone emulation
|
||||
|
||||
[OnLoad]
|
||||
# Add memory patches to be loaded once on boot here.
|
||||
|
||||
[OnFrame]
|
||||
# Add memory patches to be applied every frame here.
|
||||
|
||||
[ActionReplay]
|
||||
# Add action replay cheats here.
|
31
Externals/wxWidgets3/src/gtk/toolbar.cpp
vendored
31
Externals/wxWidgets3/src/gtk/toolbar.cpp
vendored
|
@ -56,6 +56,7 @@ public:
|
|||
void SetImage();
|
||||
void CreateDropDown();
|
||||
void ShowDropdown(GtkToggleButton* button);
|
||||
virtual void SetLabel(const wxString& label) wxOVERRIDE;
|
||||
|
||||
GtkToolItem* m_item;
|
||||
};
|
||||
|
@ -318,6 +319,36 @@ void wxToolBarTool::ShowDropdown(GtkToggleButton* button)
|
|||
}
|
||||
}
|
||||
|
||||
void wxToolBarTool::SetLabel(const wxString& label)
|
||||
{
|
||||
wxASSERT_MSG( IsButton(),
|
||||
wxS("Label can be set for button tool only") );
|
||||
|
||||
if ( label == m_label )
|
||||
return;
|
||||
|
||||
wxToolBarToolBase::SetLabel(label);
|
||||
if ( IsButton() )
|
||||
{
|
||||
if ( !label.empty() )
|
||||
{
|
||||
wxString newLabel = wxControl::RemoveMnemonics(label);
|
||||
gtk_tool_button_set_label(GTK_TOOL_BUTTON(m_item),
|
||||
wxGTK_CONV(newLabel));
|
||||
// To show the label for toolbar with wxTB_HORZ_LAYOUT.
|
||||
gtk_tool_item_set_is_important(m_item, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
gtk_tool_button_set_label(GTK_TOOL_BUTTON(m_item), NULL);
|
||||
// To hide the label for toolbar with wxTB_HORZ_LAYOUT.
|
||||
gtk_tool_item_set_is_important(m_item, false);
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: Set label for control tool, if it's possible.
|
||||
}
|
||||
|
||||
wxToolBarToolBase *wxToolBar::CreateTool(int id,
|
||||
const wxString& text,
|
||||
const wxBitmap& bitmap1,
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
cd ${0/gettextize/}/..
|
||||
SRCDIR=Source
|
||||
find $SRCDIR \( -name '*.cpp' -o -name '*.h' -o -name '*.c' \) -a ! -path '*Debug*' | \
|
||||
find $SRCDIR -name '*.cpp' -o -name '*.h' -o -name '*.c' | \
|
||||
xgettext -d dolphin-emu -s --keyword=_ --keyword=wxTRANSLATE --keyword=SuccessAlertT \
|
||||
--keyword=PanicAlertT --keyword=PanicYesNoT --keyword=AskYesNoT --keyword=CriticalAlertT \
|
||||
--keyword=GetStringT --keyword=_trans --add-comments=i18n -p ./Languages/po \
|
||||
|
|
1333
Languages/po/ar.po
1333
Languages/po/ar.po
File diff suppressed because it is too large
Load diff
1278
Languages/po/ca.po
1278
Languages/po/ca.po
File diff suppressed because it is too large
Load diff
1282
Languages/po/cs.po
1282
Languages/po/cs.po
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
1351
Languages/po/de.po
1351
Languages/po/de.po
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
1278
Languages/po/el.po
1278
Languages/po/el.po
File diff suppressed because it is too large
Load diff
1248
Languages/po/en.po
1248
Languages/po/en.po
File diff suppressed because it is too large
Load diff
1304
Languages/po/es.po
1304
Languages/po/es.po
File diff suppressed because it is too large
Load diff
1294
Languages/po/fa.po
1294
Languages/po/fa.po
File diff suppressed because it is too large
Load diff
1294
Languages/po/fr.po
1294
Languages/po/fr.po
File diff suppressed because it is too large
Load diff
1294
Languages/po/hr.po
1294
Languages/po/hr.po
File diff suppressed because it is too large
Load diff
1294
Languages/po/hu.po
1294
Languages/po/hu.po
File diff suppressed because it is too large
Load diff
1336
Languages/po/it.po
1336
Languages/po/it.po
File diff suppressed because it is too large
Load diff
1304
Languages/po/ja.po
1304
Languages/po/ja.po
File diff suppressed because it is too large
Load diff
1332
Languages/po/ko.po
1332
Languages/po/ko.po
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
1282
Languages/po/nb.po
1282
Languages/po/nb.po
File diff suppressed because it is too large
Load diff
1293
Languages/po/nl.po
1293
Languages/po/nl.po
File diff suppressed because it is too large
Load diff
1333
Languages/po/pl.po
1333
Languages/po/pl.po
File diff suppressed because it is too large
Load diff
1294
Languages/po/pt.po
1294
Languages/po/pt.po
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
1314
Languages/po/ru.po
1314
Languages/po/ru.po
File diff suppressed because it is too large
Load diff
1250
Languages/po/sr.po
1250
Languages/po/sr.po
File diff suppressed because it is too large
Load diff
1479
Languages/po/sv.po
1479
Languages/po/sv.po
File diff suppressed because it is too large
Load diff
1278
Languages/po/tr.po
1278
Languages/po/tr.po
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -1,18 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!-- All lists for ListPreference keys/values are placed here -->
|
||||
<resources>
|
||||
|
||||
<!-- New UI CPU Core selection - ARM64 -->
|
||||
<string-array name="string_emu_cores" translatable="false">
|
||||
<item>@string/interpreter</item>
|
||||
<item>@string/cached_interpreter</item>
|
||||
<item>@string/jit_arm64_recompiler</item>
|
||||
</string-array>
|
||||
<integer-array name="int_emu_cores" translatable="false">
|
||||
<item>0</item>
|
||||
<item>5</item>
|
||||
<item>4</item>
|
||||
</integer-array>
|
||||
|
||||
</resources>
|
|
@ -1,5 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<!-- Title of the app -->
|
||||
<string name="title_new_ui">Dolphin ARM64</string>
|
||||
</resources>
|
|
@ -64,10 +64,6 @@
|
|||
android:name=".activities.EmulationActivity"
|
||||
android:theme="@style/DolphinEmulationGamecube"/>
|
||||
|
||||
<activity
|
||||
android:name=".activities.OverlayConfigActivity"
|
||||
android:theme="@style/DolphinSettingsGamecube"/>
|
||||
|
||||
|
||||
<service android:name=".services.AssetCopyService"/>
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@ import android.app.Application;
|
|||
|
||||
import org.dolphinemu.dolphinemu.model.GameDatabase;
|
||||
|
||||
|
||||
public class DolphinApplication extends Application
|
||||
{
|
||||
public static GameDatabase databaseHelper;
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
|
||||
package org.dolphinemu.dolphinemu;
|
||||
|
||||
|
||||
import android.view.Surface;
|
||||
import android.widget.Toast;
|
||||
|
||||
|
@ -289,16 +288,8 @@ public final class NativeLibrary
|
|||
*/
|
||||
public static native String GetVersionString();
|
||||
|
||||
/**
|
||||
* Returns if the phone supports NEON or not
|
||||
*
|
||||
* @return true if it supports NEON, false otherwise.
|
||||
*/
|
||||
public static native boolean SupportsNEON();
|
||||
|
||||
/**
|
||||
* Saves a screen capture of the game
|
||||
*
|
||||
*/
|
||||
public static native void SaveScreenShot();
|
||||
|
||||
|
@ -361,21 +352,6 @@ public final class NativeLibrary
|
|||
*/
|
||||
public static native void WriteProfileResults();
|
||||
|
||||
/**
|
||||
* @return If we have an alert
|
||||
*/
|
||||
public static native boolean HasAlertMsg();
|
||||
|
||||
/**
|
||||
* @return The alert string
|
||||
*/
|
||||
public static native String GetAlertMsg();
|
||||
|
||||
/**
|
||||
* Clears event in the JNI so we can continue onward
|
||||
*/
|
||||
public static native void ClearAlertMsg();
|
||||
|
||||
/** Native EGL functions not exposed by Java bindings **/
|
||||
public static native void eglBindAPI(int api);
|
||||
|
||||
|
|
|
@ -10,10 +10,10 @@ import android.os.Environment;
|
|||
import android.support.v7.app.AppCompatActivity;
|
||||
import android.support.v7.widget.LinearLayoutManager;
|
||||
import android.support.v7.widget.RecyclerView;
|
||||
import android.support.v7.widget.Toolbar;
|
||||
import android.view.Menu;
|
||||
import android.view.MenuInflater;
|
||||
import android.view.MenuItem;
|
||||
import android.widget.Toolbar;
|
||||
|
||||
import org.dolphinemu.dolphinemu.BuildConfig;
|
||||
import org.dolphinemu.dolphinemu.R;
|
||||
|
@ -41,7 +41,7 @@ public class AddDirectoryActivity extends AppCompatActivity implements FileAdapt
|
|||
setContentView(R.layout.activity_add_directory);
|
||||
|
||||
mToolbar = (Toolbar) findViewById(R.id.toolbar_folder_list);
|
||||
setActionBar(mToolbar);
|
||||
setSupportActionBar(mToolbar);
|
||||
|
||||
RecyclerView recyclerView = (RecyclerView) findViewById(R.id.list_files);
|
||||
|
||||
|
|
|
@ -121,8 +121,7 @@ public final class EmulationActivity extends AppCompatActivity
|
|||
getSupportActionBar().hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -408,7 +407,8 @@ public final class EmulationActivity extends AppCompatActivity
|
|||
{
|
||||
// Edit the placement of the controls
|
||||
case R.id.menu_emulation_edit_layout:
|
||||
EmulationFragment emulationFragment = (EmulationFragment) getFragmentManager().findFragmentById(R.id.frame_emulation_fragment);
|
||||
EmulationFragment emulationFragment = (EmulationFragment) getFragmentManager()
|
||||
.findFragmentById(R.id.frame_emulation_fragment);
|
||||
if (emulationFragment.isConfiguringControls())
|
||||
{
|
||||
emulationFragment.stopConfiguringControls();
|
||||
|
@ -434,13 +434,13 @@ public final class EmulationActivity extends AppCompatActivity
|
|||
}
|
||||
builder.setMultiChoiceItems(R.array.gcpadButtons, enabledButtons,
|
||||
new DialogInterface.OnMultiChoiceClickListener()
|
||||
{
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int indexSelected, boolean isChecked)
|
||||
{
|
||||
editor.putBoolean("buttonToggleGc" + indexSelected, isChecked);
|
||||
}
|
||||
});
|
||||
{
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int indexSelected, boolean isChecked)
|
||||
{
|
||||
editor.putBoolean("buttonToggleGc" + indexSelected, isChecked);
|
||||
}
|
||||
});
|
||||
}
|
||||
else if (mPreferences.getInt("wiiController", 3) == 4)
|
||||
{
|
||||
|
@ -450,13 +450,13 @@ public final class EmulationActivity extends AppCompatActivity
|
|||
}
|
||||
builder.setMultiChoiceItems(R.array.classicButtons, enabledButtons,
|
||||
new DialogInterface.OnMultiChoiceClickListener()
|
||||
{
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int indexSelected, boolean isChecked)
|
||||
{
|
||||
editor.putBoolean("buttonToggleClassic" + indexSelected, isChecked);
|
||||
}
|
||||
});
|
||||
{
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int indexSelected, boolean isChecked)
|
||||
{
|
||||
editor.putBoolean("buttonToggleClassic" + indexSelected, isChecked);
|
||||
}
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -468,25 +468,25 @@ public final class EmulationActivity extends AppCompatActivity
|
|||
{
|
||||
builder.setMultiChoiceItems(R.array.nunchukButtons, enabledButtons,
|
||||
new DialogInterface.OnMultiChoiceClickListener()
|
||||
{
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int indexSelected, boolean isChecked)
|
||||
{
|
||||
editor.putBoolean("buttonToggleWii" + indexSelected, isChecked);
|
||||
}
|
||||
});
|
||||
{
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int indexSelected, boolean isChecked)
|
||||
{
|
||||
editor.putBoolean("buttonToggleWii" + indexSelected, isChecked);
|
||||
}
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
builder.setMultiChoiceItems(R.array.wiimoteButtons, enabledButtons,
|
||||
new DialogInterface.OnMultiChoiceClickListener()
|
||||
{
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int indexSelected, boolean isChecked)
|
||||
{
|
||||
editor.putBoolean("buttonToggleWii" + indexSelected, isChecked);
|
||||
}
|
||||
});
|
||||
{
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int indexSelected, boolean isChecked)
|
||||
{
|
||||
editor.putBoolean("buttonToggleWii" + indexSelected, isChecked);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
builder.setNeutralButton(getString(R.string.emulation_toggle_all), new DialogInterface.OnClickListener()
|
||||
|
@ -499,7 +499,7 @@ public final class EmulationActivity extends AppCompatActivity
|
|||
emulationFragment.toggleInputOverlayVisibility();
|
||||
}
|
||||
});
|
||||
builder.setPositiveButton(getString(R.string.emulation_done), new DialogInterface.OnClickListener()
|
||||
builder.setPositiveButton(getString(R.string.ok), new DialogInterface.OnClickListener()
|
||||
{
|
||||
@Override
|
||||
public void onClick(DialogInterface dialogInterface, int i)
|
||||
|
@ -552,7 +552,7 @@ public final class EmulationActivity extends AppCompatActivity
|
|||
AlertDialog.Builder builder = new AlertDialog.Builder(this);
|
||||
builder.setTitle(R.string.emulation_control_scale);
|
||||
builder.setView(view);
|
||||
builder.setPositiveButton(getString(R.string.emulation_done), new DialogInterface.OnClickListener()
|
||||
builder.setPositiveButton(getString(R.string.ok), new DialogInterface.OnClickListener()
|
||||
{
|
||||
@Override
|
||||
public void onClick(DialogInterface dialogInterface, int i)
|
||||
|
@ -580,17 +580,17 @@ public final class EmulationActivity extends AppCompatActivity
|
|||
builder.setTitle(R.string.emulation_choose_controller);
|
||||
builder.setSingleChoiceItems(R.array.controllersEntries, mPreferences.getInt("wiiController", 3),
|
||||
new DialogInterface.OnClickListener()
|
||||
{
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int indexSelected)
|
||||
{
|
||||
editor.putInt("wiiController", indexSelected);
|
||||
{
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int indexSelected)
|
||||
{
|
||||
editor.putInt("wiiController", indexSelected);
|
||||
|
||||
NativeLibrary.SetConfig("WiimoteNew.ini", "Wiimote1", "Extension",
|
||||
getResources().getStringArray(R.array.controllersValues)[indexSelected]);
|
||||
}
|
||||
});
|
||||
builder.setPositiveButton(getString(R.string.emulation_done), new DialogInterface.OnClickListener()
|
||||
NativeLibrary.SetConfig("WiimoteNew.ini", "Wiimote1", "Extension",
|
||||
getResources().getStringArray(R.array.controllersValues)[indexSelected]);
|
||||
}
|
||||
});
|
||||
builder.setPositiveButton(getString(R.string.ok), new DialogInterface.OnClickListener()
|
||||
{
|
||||
@Override
|
||||
public void onClick(DialogInterface dialogInterface, int i)
|
||||
|
@ -619,7 +619,7 @@ public final class EmulationActivity extends AppCompatActivity
|
|||
NativeLibrary.SaveScreenShot();
|
||||
return;
|
||||
|
||||
// Quicksave / Load
|
||||
// Quick save / load
|
||||
case R.id.menu_quicksave:
|
||||
NativeLibrary.SaveState(9);
|
||||
return;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package org.dolphinemu.dolphinemu.adapters;
|
||||
|
||||
import android.os.Environment;
|
||||
import android.support.v7.widget.RecyclerView;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
|
@ -197,12 +198,15 @@ public final class FileAdapter extends RecyclerView.Adapter<FileViewHolder> impl
|
|||
|
||||
public void upOneLevel()
|
||||
{
|
||||
File currentDirectory = new File(mPath);
|
||||
File parentDirectory = currentDirectory.getParentFile();
|
||||
if (!mPath.equals("/"))
|
||||
{
|
||||
File currentDirectory = new File(mPath);
|
||||
File parentDirectory = currentDirectory.getParentFile();
|
||||
|
||||
mFileList = generateFileList(parentDirectory);
|
||||
notifyDataSetChanged();
|
||||
mListener.updateSubtitle(mPath);
|
||||
mFileList = generateFileList(parentDirectory);
|
||||
notifyDataSetChanged();
|
||||
mListener.updateSubtitle(mPath);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -51,6 +51,8 @@ public final class GameRowPresenter extends Presenter
|
|||
|
||||
String screenPath = game.getScreenshotPath();
|
||||
|
||||
holder.imageScreenshot.setImageDrawable(null);
|
||||
|
||||
// Fill in the view contents.
|
||||
Picasso.with(holder.imageScreenshot.getContext())
|
||||
.load(screenPath)
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package org.dolphinemu.dolphinemu.adapters;
|
||||
|
||||
|
||||
import android.app.Fragment;
|
||||
import android.app.FragmentManager;
|
||||
import android.content.Context;
|
||||
|
@ -17,10 +16,11 @@ public class PlatformPagerAdapter extends FragmentPagerAdapter
|
|||
{
|
||||
private Context mContext;
|
||||
|
||||
private final static int[] TAB_ICONS = {
|
||||
private final static int[] TAB_ICONS =
|
||||
{
|
||||
R.drawable.ic_gamecube,
|
||||
R.drawable.ic_wii,
|
||||
R.drawable.ic_folder// wiiware TODO Have an icon here.
|
||||
R.drawable.ic_folder // WiiWare TODO Have an icon here.
|
||||
};
|
||||
|
||||
public PlatformPagerAdapter(FragmentManager fm, Context context)
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package org.dolphinemu.dolphinemu.adapters;
|
||||
|
||||
|
||||
import android.content.res.Resources;
|
||||
import android.support.v17.leanback.widget.ImageCardView;
|
||||
import android.support.v17.leanback.widget.Presenter;
|
||||
|
@ -44,4 +43,4 @@ public final class SettingsRowPresenter extends Presenter
|
|||
{
|
||||
// no op
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package org.dolphinemu.dolphinemu.dialogs;
|
||||
|
||||
|
||||
import android.app.AlertDialog;
|
||||
import android.app.Dialog;
|
||||
import android.app.DialogFragment;
|
||||
|
@ -63,7 +62,7 @@ public final class GameDetailsDialog extends DialogFragment
|
|||
FloatingActionButton buttonLaunch = (FloatingActionButton) contents.findViewById(R.id.button_launch);
|
||||
|
||||
int countryIndex = getArguments().getInt(ARGUMENT_GAME_COUNTRY);
|
||||
String country = getResources().getStringArray(R.array.country_names)[countryIndex];
|
||||
String country = getResources().getStringArray(R.array.countryNames)[countryIndex];
|
||||
|
||||
textTitle.setText(getArguments().getString(ARGUMENT_GAME_TITLE));
|
||||
textDescription.setText(getArguments().getString(ARGUMENT_GAME_DESCRIPTION));
|
||||
|
|
|
@ -175,4 +175,4 @@ public final class MotionAlertDialog extends AlertDialog
|
|||
|
||||
dismiss();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,7 +18,6 @@ import org.dolphinemu.dolphinemu.R;
|
|||
import org.dolphinemu.dolphinemu.overlay.InputOverlay;
|
||||
import org.dolphinemu.dolphinemu.utils.Log;
|
||||
|
||||
|
||||
public final class EmulationFragment extends Fragment implements SurfaceHolder.Callback
|
||||
{
|
||||
public static final String FRAGMENT_TAG = BuildConfig.APPLICATION_ID + ".emulation_fragment";
|
||||
|
@ -36,7 +35,6 @@ public final class EmulationFragment extends Fragment implements SurfaceHolder.C
|
|||
private boolean mEmulationStarted;
|
||||
private boolean mEmulationRunning;
|
||||
|
||||
|
||||
public static EmulationFragment newInstance(String path)
|
||||
{
|
||||
EmulationFragment fragment = new EmulationFragment();
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package org.dolphinemu.dolphinemu.model;
|
||||
|
||||
|
||||
import org.dolphinemu.dolphinemu.NativeLibrary;
|
||||
|
||||
import java.io.File;
|
||||
|
|
|
@ -27,7 +27,7 @@ public final class Game
|
|||
public static final int COUNTRY_WORLD = 12;
|
||||
public static final int COUNTRY_UNKNOWN = 13;
|
||||
|
||||
private static final String PATH_SCREENSHOT_FOLDER = Environment.getExternalStorageDirectory().getPath() + "dolphin-emu/ScreenShots/";
|
||||
private static final String PATH_SCREENSHOT_FOLDER = "file://" + Environment.getExternalStorageDirectory().getPath() + "/dolphin-emu/ScreenShots/";
|
||||
|
||||
private String mTitle;
|
||||
private String mDescription;
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package org.dolphinemu.dolphinemu.model;
|
||||
|
||||
|
||||
public final class TvSettingsItem
|
||||
{
|
||||
private final int mItemId;
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package org.dolphinemu.dolphinemu.model.settings.view;
|
||||
|
||||
|
||||
import org.dolphinemu.dolphinemu.model.settings.BooleanSetting;
|
||||
import org.dolphinemu.dolphinemu.model.settings.Setting;
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package org.dolphinemu.dolphinemu.model.settings.view;
|
||||
|
||||
|
||||
import org.dolphinemu.dolphinemu.model.settings.Setting;
|
||||
|
||||
public final class HeaderSetting extends SettingsItem
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package org.dolphinemu.dolphinemu.model.settings.view;
|
||||
|
||||
|
||||
import org.dolphinemu.dolphinemu.model.settings.IntSetting;
|
||||
import org.dolphinemu.dolphinemu.model.settings.Setting;
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ import java.util.Set;
|
|||
|
||||
/**
|
||||
* Draws the interactive input overlay on top of the
|
||||
* {@link NativeGLSurfaceView} that is rendering emulation.
|
||||
* {@link SurfaceView} that is rendering emulation.
|
||||
*/
|
||||
public final class InputOverlay extends SurfaceView implements OnTouchListener
|
||||
{
|
||||
|
@ -121,7 +121,7 @@ public final class InputOverlay extends SurfaceView implements OnTouchListener
|
|||
{
|
||||
if (isInEditMode())
|
||||
{
|
||||
return onTouchWhileEditing(v, event);
|
||||
return onTouchWhileEditing(event);
|
||||
}
|
||||
|
||||
int pointerIndex = event.getActionIndex();
|
||||
|
@ -209,14 +209,14 @@ public final class InputOverlay extends SurfaceView implements OnTouchListener
|
|||
return true;
|
||||
}
|
||||
|
||||
public boolean onTouchWhileEditing(View v, MotionEvent event)
|
||||
public boolean onTouchWhileEditing(MotionEvent event)
|
||||
{
|
||||
int pointerIndex = event.getActionIndex();
|
||||
int fingerPositionX = (int)event.getX(pointerIndex);
|
||||
int fingerPositionY = (int)event.getY(pointerIndex);
|
||||
|
||||
//Maybe combine Button and Joystick as subclasses of the same parent?
|
||||
//Or maybe create an interface like IMoveableHUDControl?
|
||||
// Maybe combine Button and Joystick as subclasses of the same parent?
|
||||
// Or maybe create an interface like IMoveableHUDControl?
|
||||
|
||||
for (InputOverlayDrawableButton button : overlayButtons)
|
||||
{
|
||||
|
@ -229,13 +229,13 @@ public final class InputOverlay extends SurfaceView implements OnTouchListener
|
|||
if (mButtonBeingConfigured == null && button.getBounds().contains(fingerPositionX, fingerPositionY))
|
||||
{
|
||||
mButtonBeingConfigured = button;
|
||||
mButtonBeingConfigured.onConfigureTouch(v, event);
|
||||
mButtonBeingConfigured.onConfigureTouch(event);
|
||||
}
|
||||
break;
|
||||
case MotionEvent.ACTION_MOVE:
|
||||
if (mButtonBeingConfigured != null)
|
||||
{
|
||||
mButtonBeingConfigured.onConfigureTouch(v, event);
|
||||
mButtonBeingConfigured.onConfigureTouch(event);
|
||||
invalidate();
|
||||
return true;
|
||||
}
|
||||
|
@ -245,7 +245,7 @@ public final class InputOverlay extends SurfaceView implements OnTouchListener
|
|||
case MotionEvent.ACTION_POINTER_UP:
|
||||
if (mButtonBeingConfigured == button)
|
||||
{
|
||||
//Persist button position by saving new place.
|
||||
// Persist button position by saving new place.
|
||||
saveControlPosition(mButtonBeingConfigured.getId(), mButtonBeingConfigured.getBounds().left, mButtonBeingConfigured.getBounds().top);
|
||||
mButtonBeingConfigured = null;
|
||||
}
|
||||
|
@ -264,13 +264,13 @@ public final class InputOverlay extends SurfaceView implements OnTouchListener
|
|||
if (mButtonBeingConfigured == null && dpad.getBounds().contains(fingerPositionX, fingerPositionY))
|
||||
{
|
||||
mDpadBeingConfigured = dpad;
|
||||
mDpadBeingConfigured.onConfigureTouch(v, event);
|
||||
mDpadBeingConfigured.onConfigureTouch(event);
|
||||
}
|
||||
break;
|
||||
case MotionEvent.ACTION_MOVE:
|
||||
if (mDpadBeingConfigured != null)
|
||||
{
|
||||
mDpadBeingConfigured.onConfigureTouch(v, event);
|
||||
mDpadBeingConfigured.onConfigureTouch(event);
|
||||
invalidate();
|
||||
return true;
|
||||
}
|
||||
|
@ -280,7 +280,7 @@ public final class InputOverlay extends SurfaceView implements OnTouchListener
|
|||
case MotionEvent.ACTION_POINTER_UP:
|
||||
if (mDpadBeingConfigured == dpad)
|
||||
{
|
||||
//Persist button position by saving new place.
|
||||
// Persist button position by saving new place.
|
||||
saveControlPosition(mDpadBeingConfigured.getId(0), mDpadBeingConfigured.getBounds().left, mDpadBeingConfigured.getBounds().top);
|
||||
mDpadBeingConfigured = null;
|
||||
}
|
||||
|
@ -297,13 +297,13 @@ public final class InputOverlay extends SurfaceView implements OnTouchListener
|
|||
if (mJoystickBeingConfigured == null && joystick.getBounds().contains(fingerPositionX, fingerPositionY))
|
||||
{
|
||||
mJoystickBeingConfigured = joystick;
|
||||
mJoystickBeingConfigured.onConfigureTouch(v, event);
|
||||
mJoystickBeingConfigured.onConfigureTouch(event);
|
||||
}
|
||||
break;
|
||||
case MotionEvent.ACTION_MOVE:
|
||||
if (mJoystickBeingConfigured != null)
|
||||
{
|
||||
mJoystickBeingConfigured.onConfigureTouch(v, event);
|
||||
mJoystickBeingConfigured.onConfigureTouch(event);
|
||||
invalidate();
|
||||
}
|
||||
break;
|
||||
|
@ -638,8 +638,8 @@ public final class InputOverlay extends SurfaceView implements OnTouchListener
|
|||
|
||||
// The X and Y coordinates of the InputOverlayDrawableButton on the InputOverlay.
|
||||
// These were set in the input overlay configuration menu.
|
||||
int drawableX = (int) sPrefs.getFloat(buttonId+"-X", 0f);
|
||||
int drawableY = (int) sPrefs.getFloat(buttonId+"-Y", 0f);
|
||||
int drawableX = (int) sPrefs.getFloat(buttonId + "-X", 0f);
|
||||
int drawableY = (int) sPrefs.getFloat(buttonId + "-Y", 0f);
|
||||
|
||||
// Intrinsic width and height of the InputOverlayDrawableButton.
|
||||
// For any who may not know, intrinsic width/height
|
||||
|
@ -649,7 +649,7 @@ public final class InputOverlay extends SurfaceView implements OnTouchListener
|
|||
|
||||
// Now set the bounds for the InputOverlayDrawableButton.
|
||||
// This will dictate where on the screen (and the what the size) the InputOverlayDrawableButton will be.
|
||||
overlayDrawable.setBounds(drawableX, drawableY, drawableX+intrinWidth, drawableY+intrinHeight);
|
||||
overlayDrawable.setBounds(drawableX, drawableY, drawableX + intrinWidth, drawableY + intrinHeight);
|
||||
|
||||
// Need to set the image's position
|
||||
overlayDrawable.setPosition(drawableX, drawableY);
|
||||
|
@ -660,12 +660,12 @@ public final class InputOverlay extends SurfaceView implements OnTouchListener
|
|||
/**
|
||||
* Initializes an {@link InputOverlayDrawableDpad}
|
||||
*
|
||||
* @param context The current {@link Context}.
|
||||
* @param resId The resource ID of the {@link Drawable} to get the {@link Bitmap} of.
|
||||
* @param buttonUp Identifier for the up button.
|
||||
* @param context The current {@link Context}.
|
||||
* @param resId The resource ID of the {@link Drawable} to get the {@link Bitmap} of.
|
||||
* @param buttonUp Identifier for the up button.
|
||||
* @param buttonDown Identifier for the down button.
|
||||
* @param buttonLeft Identifier for the left button.
|
||||
* @param buttonRight Identifier for the right button.
|
||||
* @param buttonRight Identifier for the right button.
|
||||
*
|
||||
* @return the initialized {@link InputOverlayDrawableDpad}
|
||||
*/
|
||||
|
@ -705,8 +705,8 @@ public final class InputOverlay extends SurfaceView implements OnTouchListener
|
|||
|
||||
// The X and Y coordinates of the InputOverlayDrawableDpad on the InputOverlay.
|
||||
// These were set in the input overlay configuration menu.
|
||||
int drawableX = (int) sPrefs.getFloat(buttonUp+"-X", 0f);
|
||||
int drawableY = (int) sPrefs.getFloat(buttonUp+"-Y", 0f);
|
||||
int drawableX = (int) sPrefs.getFloat(buttonUp + "-X", 0f);
|
||||
int drawableY = (int) sPrefs.getFloat(buttonUp + "-Y", 0f);
|
||||
|
||||
// Intrinsic width and height of the InputOverlayDrawableDpad.
|
||||
// For any who may not know, intrinsic width/height
|
||||
|
@ -716,7 +716,7 @@ public final class InputOverlay extends SurfaceView implements OnTouchListener
|
|||
|
||||
// Now set the bounds for the InputOverlayDrawableDpad.
|
||||
// This will dictate where on the screen (and the what the size) the InputOverlayDrawableDpad will be.
|
||||
overlayDrawable.setBounds(drawableX, drawableY, drawableX+intrinWidth, drawableY+intrinHeight);
|
||||
overlayDrawable.setBounds(drawableX, drawableY, drawableX + intrinWidth, drawableY + intrinHeight);
|
||||
|
||||
// Need to set the image's position
|
||||
overlayDrawable.setPosition(drawableX, drawableY);
|
||||
|
@ -730,7 +730,7 @@ public final class InputOverlay extends SurfaceView implements OnTouchListener
|
|||
* @param context The current {@link Context}
|
||||
* @param resOuter Resource ID for the outer image of the joystick (the static image that shows the circular bounds).
|
||||
* @param resInner Resource ID for the inner image of the joystick (the one you actually move around).
|
||||
* @param joystick Identifier for which joystick this is.
|
||||
* @param joystick Identifier for which joystick this is.
|
||||
*
|
||||
* @return the initialized {@link InputOverlayDrawableJoystick}.
|
||||
*/
|
||||
|
@ -753,8 +753,8 @@ public final class InputOverlay extends SurfaceView implements OnTouchListener
|
|||
|
||||
// The X and Y coordinates of the InputOverlayDrawableButton on the InputOverlay.
|
||||
// These were set in the input overlay configuration menu.
|
||||
int drawableX = (int) sPrefs.getFloat(joystick+"-X", 0f);
|
||||
int drawableY = (int) sPrefs.getFloat(joystick+"-Y", 0f);
|
||||
int drawableX = (int) sPrefs.getFloat(joystick + "-X", 0f);
|
||||
int drawableY = (int) sPrefs.getFloat(joystick + "-Y", 0f);
|
||||
|
||||
// Decide inner scale based on joystick ID
|
||||
float innerScale;
|
||||
|
@ -797,5 +797,4 @@ public final class InputOverlay extends SurfaceView implements OnTouchListener
|
|||
{
|
||||
return mIsInEditMode;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -47,7 +47,7 @@ public final class InputOverlayDrawableButton extends BitmapDrawable
|
|||
return mButtonType;
|
||||
}
|
||||
|
||||
public boolean onConfigureTouch(View v, MotionEvent event)
|
||||
public boolean onConfigureTouch(MotionEvent event)
|
||||
{
|
||||
int pointerIndex = event.getActionIndex();
|
||||
int fingerPositionX = (int)event.getX(pointerIndex);
|
||||
|
|
|
@ -29,10 +29,10 @@ public final class InputOverlayDrawableDpad extends BitmapDrawable
|
|||
*
|
||||
* @param res {@link Resources} instance.
|
||||
* @param bitmap {@link Bitmap} to use with this Drawable.
|
||||
* @param buttonUp Identifier for the up button.
|
||||
* @param buttonUp Identifier for the up button.
|
||||
* @param buttonDown Identifier for the down button.
|
||||
* @param buttonLeft Identifier for the left button.
|
||||
* @param buttonRight Identifier for the right button.
|
||||
* @param buttonRight Identifier for the right button.
|
||||
*/
|
||||
public InputOverlayDrawableDpad(Resources res, Bitmap bitmap,
|
||||
int buttonUp, int buttonDown,
|
||||
|
@ -55,7 +55,7 @@ public final class InputOverlayDrawableDpad extends BitmapDrawable
|
|||
return mButtonType[direction];
|
||||
}
|
||||
|
||||
public boolean onConfigureTouch(View v, MotionEvent event)
|
||||
public boolean onConfigureTouch(MotionEvent event)
|
||||
{
|
||||
int pointerIndex = event.getActionIndex();
|
||||
int fingerPositionX = (int)event.getX(pointerIndex);
|
||||
|
|
|
@ -120,7 +120,7 @@ public final class InputOverlayDrawableJoystick extends BitmapDrawable
|
|||
}
|
||||
}
|
||||
|
||||
public boolean onConfigureTouch(View v, MotionEvent event)
|
||||
public boolean onConfigureTouch(MotionEvent event)
|
||||
{
|
||||
int pointerIndex = event.getActionIndex();
|
||||
int fingerPositionX = (int)event.getX(pointerIndex);
|
||||
|
|
|
@ -154,4 +154,4 @@ public final class DividerItemDecoration extends RecyclerView.ItemDecoration
|
|||
"DividerItemDecoration can only be used with a LinearLayoutManager.");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package org.dolphinemu.dolphinemu.ui.main;
|
||||
|
||||
|
||||
import android.database.Cursor;
|
||||
|
||||
/**
|
||||
|
|
|
@ -250,7 +250,7 @@ public final class TvMainActivity extends Activity implements MainView
|
|||
R.string.grid_menu_refresh));
|
||||
|
||||
// Create a header for this row.
|
||||
HeaderItem header = new HeaderItem(R.string.settings, getString(R.string.settings));
|
||||
HeaderItem header = new HeaderItem(R.string.preferences_settings, getString(R.string.preferences_settings));
|
||||
|
||||
return new ListRow(header, rowItems);
|
||||
}
|
||||
|
|
|
@ -48,15 +48,14 @@ public final class PlatformGamesPresenter
|
|||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(new Action1<Cursor>()
|
||||
{
|
||||
@Override
|
||||
public void call(Cursor games)
|
||||
{
|
||||
Log.debug("[PlatformGamesPresenter] " + mPlatform + ": Load finished, swapping cursor...");
|
||||
{
|
||||
@Override
|
||||
public void call(Cursor games)
|
||||
{
|
||||
Log.debug("[PlatformGamesPresenter] " + mPlatform + ": Load finished, swapping cursor...");
|
||||
|
||||
mView.showGames(games);
|
||||
}
|
||||
}
|
||||
);
|
||||
mView.showGames(games);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package org.dolphinemu.dolphinemu.ui.platform;
|
||||
|
||||
|
||||
import android.database.Cursor;
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package org.dolphinemu.dolphinemu.ui.settings;
|
||||
|
||||
|
||||
import android.app.FragmentTransaction;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package org.dolphinemu.dolphinemu.ui.settings;
|
||||
|
||||
|
||||
import android.os.Bundle;
|
||||
|
||||
import org.dolphinemu.dolphinemu.BuildConfig;
|
||||
|
@ -58,23 +57,23 @@ public final class SettingsActivityPresenter
|
|||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(new Action1<HashMap<String, SettingSection>>()
|
||||
{
|
||||
@Override
|
||||
public void call(HashMap<String, SettingSection> settingsBySection)
|
||||
{
|
||||
mSettingsBySection = settingsBySection;
|
||||
mView.onSettingsFileLoaded(settingsBySection);
|
||||
}
|
||||
},
|
||||
new Action1<Throwable>()
|
||||
{
|
||||
@Override
|
||||
public void call(Throwable throwable)
|
||||
{
|
||||
Log.error("[SettingsActivityPresenter] Error reading file " + filename + ".ini: "+ throwable.getMessage());
|
||||
mView.onSettingsFileNotFound();
|
||||
}
|
||||
});
|
||||
{
|
||||
@Override
|
||||
public void call(HashMap<String, SettingSection> settingsBySection)
|
||||
{
|
||||
mSettingsBySection = settingsBySection;
|
||||
mView.onSettingsFileLoaded(settingsBySection);
|
||||
}
|
||||
},
|
||||
new Action1<Throwable>()
|
||||
{
|
||||
@Override
|
||||
public void call(Throwable throwable)
|
||||
{
|
||||
Log.error("[SettingsActivityPresenter] Error reading file " + filename + ".ini: "+ throwable.getMessage());
|
||||
mView.onSettingsFileNotFound();
|
||||
}
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -100,23 +99,22 @@ public final class SettingsActivityPresenter
|
|||
SettingsFile.saveFile(mFileName, mSettingsBySection)
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(
|
||||
new Action1<Boolean>()
|
||||
{
|
||||
@Override
|
||||
public void call(Boolean aBoolean)
|
||||
{
|
||||
mView.showToastMessage("Saved successfully to " + mFileName + ".ini");
|
||||
}
|
||||
},
|
||||
new Action1<Throwable>()
|
||||
{
|
||||
@Override
|
||||
public void call(Throwable throwable)
|
||||
{
|
||||
mView.showToastMessage("Error saving " + mFileName + ".ini: " + throwable.getMessage());
|
||||
}
|
||||
});
|
||||
.subscribe(new Action1<Boolean>()
|
||||
{
|
||||
@Override
|
||||
public void call(Boolean aBoolean)
|
||||
{
|
||||
mView.showToastMessage("Saved successfully to " + mFileName + ".ini");
|
||||
}
|
||||
},
|
||||
new Action1<Throwable>()
|
||||
{
|
||||
@Override
|
||||
public void call(Throwable throwable)
|
||||
{
|
||||
mView.showToastMessage("Error saving " + mFileName + ".ini: " + throwable.getMessage());
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -158,8 +158,8 @@ public final class SettingsAdapter extends RecyclerView.Adapter<SettingViewHolde
|
|||
|
||||
builder.setTitle(item.getNameId());
|
||||
builder.setView(view);
|
||||
builder.setPositiveButton(R.string.dialog_seekbar_pos, this);
|
||||
builder.setNegativeButton(R.string.dialog_seekbar_neg, this);
|
||||
builder.setPositiveButton(R.string.ok, this);
|
||||
builder.setNegativeButton(R.string.cancel, this);
|
||||
mDialog = builder.show();
|
||||
|
||||
mTextSliderValue = (TextView) view.findViewById(R.id.text_value);
|
||||
|
|
|
@ -160,7 +160,7 @@ public final class SettingsFragmentPresenter
|
|||
}
|
||||
|
||||
// TODO Set default value for cpuCore based on arch.
|
||||
sl.add(new SingleChoiceSetting(SettingsFile.KEY_CPU_CORE, SettingsFile.SECTION_CORE, R.string.cpu_core, 0, R.array.string_emu_cores, R.array.int_emu_cores, 4, cpuCore));
|
||||
sl.add(new SingleChoiceSetting(SettingsFile.KEY_CPU_CORE, SettingsFile.SECTION_CORE, R.string.cpu_core, 0, R.array.emuCoresEntries, R.array.emuCoresValues, 4, cpuCore));
|
||||
sl.add(new CheckBoxSetting(SettingsFile.KEY_DUAL_CORE, SettingsFile.SECTION_CORE, R.string.dual_core, R.string.dual_core_descrip, true, dualCore));
|
||||
sl.add(new CheckBoxSetting(SettingsFile.KEY_OVERCLOCK_ENABLE, SettingsFile.SECTION_CORE, R.string.overclock_enable, R.string.overclock_enable_description, false, overclockEnable));
|
||||
sl.add(new SliderSetting(SettingsFile.KEY_OVERCLOCK_PERCENT, SettingsFile.SECTION_CORE, R.string.overclock_title, 0, 400, "%", 100, overclock));
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package org.dolphinemu.dolphinemu.ui.settings.viewholder;
|
||||
|
||||
|
||||
import android.view.View;
|
||||
import android.widget.CheckBox;
|
||||
import android.widget.TextView;
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package org.dolphinemu.dolphinemu.ui.settings.viewholder;
|
||||
|
||||
|
||||
import android.view.View;
|
||||
import android.widget.TextView;
|
||||
|
||||
|
|
|
@ -61,6 +61,4 @@ public final class InputBindingPreference extends EditTextPreference
|
|||
String summary = super.getSummary().toString();
|
||||
return String.format(summary, getText());
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package org.dolphinemu.dolphinemu.utils;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.PendingIntent;
|
||||
import android.content.Intent;
|
||||
import android.hardware.usb.UsbConfiguration;
|
||||
|
@ -15,7 +14,6 @@ import org.dolphinemu.dolphinemu.services.USBPermService;
|
|||
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.Map;
|
||||
|
||||
public class Java_WiimoteAdapter
|
||||
|
@ -43,7 +41,7 @@ public class Java_WiimoteAdapter
|
|||
{
|
||||
if (!manager.hasPermission(dev))
|
||||
{
|
||||
Log.warning("Requesting permission for Wiimote adapter");
|
||||
Log.warning("Requesting permission for Wii Remote adapter");
|
||||
Intent intent = new Intent();
|
||||
PendingIntent pend_intent;
|
||||
intent.setClass(NativeLibrary.sEmulationActivity, USBPermService.class);
|
||||
|
@ -132,11 +130,11 @@ public class Java_WiimoteAdapter
|
|||
{
|
||||
for (int i = 0; i < MAX_WIIMOTES; ++i)
|
||||
{
|
||||
// One interface per Wiimote
|
||||
// One interface per Wii Remote
|
||||
usb_intf[i] = dev.getInterface(i);
|
||||
usb_con.claimInterface(usb_intf[i], true);
|
||||
|
||||
// One endpoint per Wiimote. Input only
|
||||
// One endpoint per Wii Remote. Input only
|
||||
// Output reports go through the control channel.
|
||||
usb_in[i] = usb_intf[i].getEndpoint(0);
|
||||
Log.info("Interface " + i + " endpoint count:" + usb_intf[i].getEndpointCount());
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package org.dolphinemu.dolphinemu.utils;
|
||||
|
||||
|
||||
import org.dolphinemu.dolphinemu.BuildConfig;
|
||||
|
||||
/**
|
||||
|
|
|
@ -66,9 +66,7 @@ public final class SettingsFile
|
|||
|
||||
public static final String KEY_SKIP_EFB = "EFBAccessEnable";
|
||||
public static final String KEY_IGNORE_FORMAT = "EFBEmulateFormatChanges";
|
||||
public static final String KEY_EFB_COPY = "EFBCopyEnable";
|
||||
public static final String KEY_EFB_TEXTURE = "EFBToTextureEnable";
|
||||
public static final String KEY_EFB_CACHE = "EFBCopyCacheEnable";
|
||||
public static final String KEY_TEXCACHE_ACCURACY = "SafeTextureCacheColorSamples";
|
||||
public static final String KEY_XFB = "UseXFB";
|
||||
public static final String KEY_XFB_REAL = "UseRealXFB";
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package org.dolphinemu.dolphinemu.viewholders;
|
||||
|
||||
|
||||
import android.support.v17.leanback.widget.ImageCardView;
|
||||
import android.support.v17.leanback.widget.Presenter;
|
||||
import android.view.View;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<!-- res/anim/button_elevation.xml -->
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item android:state_pressed="true">
|
||||
<objectAnimator
|
||||
android:propertyName="translationZ"
|
||||
|
@ -8,6 +9,7 @@
|
|||
android:valueTo="@dimen/elevation_high"
|
||||
android:valueType="floatType"/>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<objectAnimator
|
||||
android:propertyName="translationZ"
|
||||
|
@ -16,4 +18,5 @@
|
|||
android:valueTo="@dimen/elevation_low"
|
||||
android:valueType="floatType"/>
|
||||
</item>
|
||||
</selector>
|
||||
|
||||
</set>
|
|
@ -1,5 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<objectAnimator
|
||||
android:propertyName="translationX"
|
||||
android:valueType="floatType"
|
||||
|
@ -7,6 +8,7 @@
|
|||
android:valueTo="0"
|
||||
android:interpolator="@android:interpolator/decelerate_quad"
|
||||
android:duration="300"/>
|
||||
|
||||
<objectAnimator
|
||||
android:propertyName="alpha"
|
||||
android:valueType="floatType"
|
||||
|
@ -14,4 +16,5 @@
|
|||
android:valueTo="1"
|
||||
android:interpolator="@android:interpolator/accelerate_quad"
|
||||
android:duration="300"/>
|
||||
|
||||
</set>
|
|
@ -1,18 +1,21 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<!-- This animation is used ONLY when a submenu is replaced. -->
|
||||
<objectAnimator xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:propertyName="translationX"
|
||||
android:valueType="floatType"
|
||||
android:valueFrom="0"
|
||||
android:valueTo="1280"
|
||||
android:interpolator="@android:interpolator/decelerate_quad"
|
||||
android:duration="300"/>
|
||||
android:propertyName="translationX"
|
||||
android:valueType="floatType"
|
||||
android:valueFrom="0"
|
||||
android:valueTo="1280"
|
||||
android:interpolator="@android:interpolator/decelerate_quad"
|
||||
android:duration="300"/>
|
||||
|
||||
<objectAnimator xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:propertyName="alpha"
|
||||
android:valueType="floatType"
|
||||
android:valueFrom="1"
|
||||
android:valueTo="0"
|
||||
android:interpolator="@android:interpolator/decelerate_quad"
|
||||
android:duration="300"/>
|
||||
android:propertyName="alpha"
|
||||
android:valueType="floatType"
|
||||
android:valueFrom="1"
|
||||
android:valueTo="0"
|
||||
android:interpolator="@android:interpolator/decelerate_quad"
|
||||
android:duration="300"/>
|
||||
|
||||
</set>
|
|
@ -24,4 +24,5 @@
|
|||
android:startOffset="@android:integer/config_shortAnimTime"
|
||||
android:valueFrom="100.0"
|
||||
android:valueTo="0"/>
|
||||
|
||||
</set>
|
|
@ -24,4 +24,5 @@
|
|||
android:startOffset="@android:integer/config_shortAnimTime"
|
||||
android:valueFrom="0"
|
||||
android:valueTo="-100.0"/>
|
||||
|
||||
</set>
|
|
@ -1,5 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<objectAnimator
|
||||
android:duration="@android:integer/config_mediumAnimTime"
|
||||
android:interpolator="@android:interpolator/decelerate_cubic"
|
||||
|
|
|
@ -23,4 +23,5 @@
|
|||
android:startOffset="@android:integer/config_shortAnimTime"
|
||||
android:valueFrom="0.0"
|
||||
android:valueTo="100"/>
|
||||
|
||||
</set>
|
|
@ -11,4 +11,5 @@
|
|||
android:layout_width="match_parent"
|
||||
android:focusable="false"
|
||||
android:focusableInTouchMode="false"/>
|
||||
</FrameLayout>
|
||||
|
||||
</FrameLayout>
|
|
@ -5,7 +5,7 @@
|
|||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<Toolbar
|
||||
<android.support.v7.widget.Toolbar
|
||||
android:id="@+id/toolbar_folder_list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
@ -14,7 +14,6 @@
|
|||
android:theme="@android:style/ThemeOverlay.Material.Dark.ActionBar"
|
||||
android:elevation="6dp"/>
|
||||
|
||||
|
||||
<android.support.v7.widget.RecyclerView
|
||||
android:id="@+id/list_files"
|
||||
android:layout_width="match_parent"
|
||||
|
@ -25,5 +24,4 @@
|
|||
android:elevation="4dp"
|
||||
android:background="@android:color/white"/>
|
||||
|
||||
|
||||
</LinearLayout>
|
|
@ -1,8 +1,7 @@
|
|||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:id="@+id/frame_content"
|
||||
>
|
||||
android:id="@+id/frame_content">
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/frame_emulation_fragment"
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
app:tabMode="fixed"
|
||||
app:tabGravity="fill"/>
|
||||
|
||||
|
||||
</android.support.design.widget.AppBarLayout>
|
||||
|
||||
<android.support.v4.view.ViewPager
|
||||
|
@ -45,4 +44,5 @@
|
|||
app:rippleColor="?android:colorPrimaryDark"
|
||||
app:layout_anchor="@+id/pager_platforms"
|
||||
app:layout_anchorGravity="bottom|right|end"/>
|
||||
|
||||
</android.support.design.widget.CoordinatorLayout>
|
|
@ -7,7 +7,6 @@
|
|||
android:name="android.support.v17.leanback.app.BrowseFragment"
|
||||
android:id="@+id/fragment_game_list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
/>
|
||||
android:layout_height="match_parent"/>
|
||||
|
||||
</FrameLayout>
|
|
@ -1,5 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
|
@ -8,8 +7,7 @@
|
|||
android:transitionName="card_game"
|
||||
android:focusable="true"
|
||||
android:clickable="true"
|
||||
android:foreground="?android:attr/selectableItemBackground"
|
||||
>
|
||||
android:foreground="?android:attr/selectableItemBackground">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
|
|
|
@ -20,8 +20,7 @@
|
|||
android:layout_marginTop="24dp"
|
||||
tools:src="@drawable/placeholder_banner"
|
||||
app:civ_border_color="?android:colorAccent"
|
||||
app:civ_border_width="2dp"
|
||||
/>
|
||||
app:civ_border_width="2dp"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/image_game_screen"
|
||||
|
@ -59,8 +58,7 @@
|
|||
android:layout_alignStart="@+id/text_game_title"
|
||||
android:layout_below="@+id/text_game_title"
|
||||
android:layout_marginTop="8dp"
|
||||
tools:text="Zany rhythm action!"
|
||||
/>
|
||||
tools:text="Zany rhythm action!"/>
|
||||
|
||||
<View
|
||||
android:id="@+id/divider"
|
||||
|
@ -70,7 +68,6 @@
|
|||
android:layout_alignParentRight="true"
|
||||
android:layout_below="@+id/text_company"
|
||||
android:layout_marginTop="16dp"
|
||||
|
||||
android:background="#1F000000"/>
|
||||
|
||||
<ImageView
|
||||
|
@ -122,13 +119,12 @@
|
|||
android:layout_alignEnd="@+id/text_game_title"
|
||||
android:layout_marginBottom="-28dp"
|
||||
android:src="@drawable/ic_play"
|
||||
android:stateListAnimator="@anim/button_elevation"
|
||||
android:stateListAnimator="@animator/button_elevation"
|
||||
app:rippleColor="?android:colorPrimaryDark"
|
||||
app:borderWidth="0dp"
|
||||
app:elevation="6dp"
|
||||
app:pressedTranslationZ="12dp"
|
||||
/>
|
||||
app:pressedTranslationZ="12dp"/>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
</FrameLayout>
|
||||
|
|
|
@ -2,8 +2,7 @@
|
|||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
>
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<android.support.v7.widget.RecyclerView
|
||||
android:id="@+id/grid_games"
|
||||
|
@ -12,4 +11,5 @@
|
|||
android:layout_marginLeft="@dimen/activity_horizontal_margin"
|
||||
android:layout_marginRight="@dimen/activity_horizontal_margin"
|
||||
tools:listitem="@layout/card_game"/>
|
||||
|
||||
</FrameLayout>
|
|
@ -5,8 +5,7 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/dolphin_blue_dark"
|
||||
tools:layout_width="250dp"
|
||||
>
|
||||
tools:layout_width="250dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/text_game_title"
|
||||
|
@ -20,8 +19,7 @@
|
|||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
>
|
||||
android:layout_weight="1">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/layout_options"
|
||||
|
@ -31,7 +29,7 @@
|
|||
|
||||
<Button
|
||||
android:id="@+id/menu_take_screenshot"
|
||||
android:text="@string/overlay_screenshot"
|
||||
android:text="@string/emulation_screenshot"
|
||||
style="@style/InGameMenuOption"/>
|
||||
|
||||
<Button
|
||||
|
@ -46,17 +44,17 @@
|
|||
|
||||
<Button
|
||||
android:id="@+id/menu_emulation_save_root"
|
||||
android:text="@string/overlay_savestate"
|
||||
android:text="@string/emulation_savestate"
|
||||
style="@style/InGameMenuOption"/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/menu_emulation_load_root"
|
||||
android:text="@string/overlay_loadstate"
|
||||
android:text="@string/emulation_loadstate"
|
||||
style="@style/InGameMenuOption"/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/menu_ingame_settings"
|
||||
android:text="@string/settings"
|
||||
android:text="@string/preferences_settings"
|
||||
style="@style/InGameMenuOption"/>
|
||||
|
||||
<Button
|
||||
|
@ -66,9 +64,11 @@
|
|||
|
||||
<Button
|
||||
android:id="@+id/menu_exit"
|
||||
android:text="@string/overlay_exit_emulation"
|
||||
android:text="@string/emulation_exit"
|
||||
style="@style/InGameMenuOption"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</ScrollView>
|
||||
|
||||
</LinearLayout>
|
|
@ -14,23 +14,20 @@
|
|||
|
||||
<include
|
||||
android:id="@+id/list_item_controller_one"
|
||||
layout="@layout/list_item_setting"
|
||||
/>
|
||||
layout="@layout/list_item_setting"/>
|
||||
|
||||
<include
|
||||
android:id="@+id/list_item_controller_two"
|
||||
layout="@layout/list_item_setting"
|
||||
/>
|
||||
layout="@layout/list_item_setting"/>
|
||||
|
||||
<include
|
||||
android:id="@+id/list_item_controller_two"
|
||||
layout="@layout/list_item_setting"
|
||||
/>
|
||||
layout="@layout/list_item_setting"/>
|
||||
|
||||
<include
|
||||
android:id="@+id/list_item_controller_two"
|
||||
layout="@layout/list_item_setting"
|
||||
/>
|
||||
layout="@layout/list_item_setting"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</org.dolphinemu.dolphinemu.ui.settings.SettingsFrameLayout>
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<org.dolphinemu.dolphinemu.ui.settings.SettingsFrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<android.support.v7.widget.RecyclerView
|
||||
android:id="@+id/list_settings"
|
||||
|
|
|
@ -3,8 +3,7 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#af000000"
|
||||
android:orientation="vertical"
|
||||
>
|
||||
android:orientation="vertical">
|
||||
|
||||
<GridLayout
|
||||
android:id="@+id/grid_state_slots"
|
||||
|
@ -18,48 +17,44 @@
|
|||
android:id="@+id/menu_emulation_load_1"
|
||||
android:layout_width="128dp"
|
||||
android:layout_height="128dp"
|
||||
android:text="@string/overlay_slot1"
|
||||
style="@style/InGameMenuOption"
|
||||
/>
|
||||
android:text="@string/emulation_slot1"
|
||||
style="@style/InGameMenuOption"/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/menu_emulation_load_2"
|
||||
android:layout_width="128dp"
|
||||
android:layout_height="128dp"
|
||||
android:text="@string/overlay_slot2"
|
||||
style="@style/InGameMenuOption"
|
||||
/>
|
||||
android:text="@string/emulation_slot2"
|
||||
style="@style/InGameMenuOption"/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/menu_emulation_load_3"
|
||||
android:layout_width="128dp"
|
||||
android:layout_height="128dp"
|
||||
android:text="@string/overlay_slot3"
|
||||
style="@style/InGameMenuOption"
|
||||
/>
|
||||
android:text="@string/emulation_slot3"
|
||||
style="@style/InGameMenuOption"/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/menu_emulation_load_4"
|
||||
android:layout_width="128dp"
|
||||
android:layout_height="128dp"
|
||||
android:text="@string/overlay_slot4"
|
||||
style="@style/InGameMenuOption"
|
||||
/>
|
||||
android:text="@string/emulation_slot4"
|
||||
style="@style/InGameMenuOption"/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/menu_emulation_load_5"
|
||||
android:layout_width="128dp"
|
||||
android:layout_height="128dp"
|
||||
android:text="@string/overlay_slot5"
|
||||
style="@style/InGameMenuOption"
|
||||
/>
|
||||
android:text="@string/emulation_slot5"
|
||||
style="@style/InGameMenuOption"/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/menu_emulation_load_6"
|
||||
android:layout_width="128dp"
|
||||
android:layout_height="128dp"
|
||||
android:text="@string/overlay_slot6"
|
||||
style="@style/InGameMenuOption"
|
||||
/>
|
||||
android:text="@string/emulation_slot6"
|
||||
style="@style/InGameMenuOption"/>
|
||||
|
||||
</GridLayout>
|
||||
|
||||
</FrameLayout>
|
|
@ -3,8 +3,7 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#af000000"
|
||||
android:orientation="vertical"
|
||||
>
|
||||
android:orientation="vertical">
|
||||
|
||||
<GridLayout
|
||||
android:id="@+id/grid_state_slots"
|
||||
|
@ -18,48 +17,44 @@
|
|||
android:id="@+id/menu_emulation_save_1"
|
||||
android:layout_width="128dp"
|
||||
android:layout_height="128dp"
|
||||
android:text="@string/overlay_slot1"
|
||||
style="@style/InGameMenuOption"
|
||||
/>
|
||||
android:text="@string/emulation_slot1"
|
||||
style="@style/InGameMenuOption"/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/menu_emulation_save_2"
|
||||
android:layout_width="128dp"
|
||||
android:layout_height="128dp"
|
||||
android:text="@string/overlay_slot2"
|
||||
style="@style/InGameMenuOption"
|
||||
/>
|
||||
android:text="@string/emulation_slot2"
|
||||
style="@style/InGameMenuOption"/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/menu_emulation_save_3"
|
||||
android:layout_width="128dp"
|
||||
android:layout_height="128dp"
|
||||
android:text="@string/overlay_slot3"
|
||||
style="@style/InGameMenuOption"
|
||||
/>
|
||||
android:text="@string/emulation_slot3"
|
||||
style="@style/InGameMenuOption"/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/menu_emulation_save_4"
|
||||
android:layout_width="128dp"
|
||||
android:layout_height="128dp"
|
||||
android:text="@string/overlay_slot4"
|
||||
style="@style/InGameMenuOption"
|
||||
/>
|
||||
android:text="@string/emulation_slot4"
|
||||
style="@style/InGameMenuOption"/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/menu_emulation_save_5"
|
||||
android:layout_width="128dp"
|
||||
android:layout_height="128dp"
|
||||
android:text="@string/overlay_slot5"
|
||||
style="@style/InGameMenuOption"
|
||||
/>
|
||||
android:text="@string/emulation_slot5"
|
||||
style="@style/InGameMenuOption"/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/menu_emulation_save_6"
|
||||
android:layout_width="128dp"
|
||||
android:layout_height="128dp"
|
||||
android:text="@string/overlay_slot6"
|
||||
style="@style/InGameMenuOption"
|
||||
/>
|
||||
android:text="@string/emulation_slot6"
|
||||
style="@style/InGameMenuOption"/>
|
||||
|
||||
</GridLayout>
|
||||
|
||||
</FrameLayout>
|
|
@ -1,9 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<!-- TODO Please give me an icon! -->
|
||||
<item
|
||||
android:id="@+id/menu_up_one_level"
|
||||
android:title="@string/add_directory_up_one_level"
|
||||
app:showAsAction="ifRoom|withText"/>
|
||||
|
||||
</menu>
|
|
@ -6,47 +6,45 @@
|
|||
android:id="@+id/menu_emulation_screenshot"
|
||||
android:showAsAction="ifRoom"
|
||||
android:icon="@drawable/ic_screenshot"
|
||||
android:title="@string/overlay_screenshot"/>
|
||||
android:title="@string/emulation_screenshot"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_quicksave"
|
||||
android:showAsAction="ifRoom"
|
||||
android:icon="@drawable/ic_quicksave"
|
||||
android:title="@string/emulation_quicksave"
|
||||
/>
|
||||
android:title="@string/emulation_quicksave"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_quickload"
|
||||
android:showAsAction="ifRoom"
|
||||
android:icon="@drawable/ic_quickload"
|
||||
android:title="@string/emulation_quickload"
|
||||
/>
|
||||
android:title="@string/emulation_quickload"/>
|
||||
|
||||
<!-- Save State Slots -->
|
||||
<item
|
||||
android:id="@+id/menu_emulation_save_root"
|
||||
android:showAsAction="never"
|
||||
android:title="@string/overlay_savestate">
|
||||
android:title="@string/emulation_savestate">
|
||||
<menu>
|
||||
<item
|
||||
android:id="@+id/menu_emulation_save_1"
|
||||
android:title="@string/overlay_slot1"/>
|
||||
android:title="@string/emulation_slot1"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_emulation_save_2"
|
||||
android:title="@string/overlay_slot2"/>
|
||||
android:title="@string/emulation_slot2"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_emulation_save_3"
|
||||
android:title="@string/overlay_slot3"/>
|
||||
android:title="@string/emulation_slot3"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_emulation_save_4"
|
||||
android:title="@string/overlay_slot4"/>
|
||||
android:title="@string/emulation_slot4"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_emulation_save_5"
|
||||
android:title="@string/overlay_slot5"/>
|
||||
android:title="@string/emulation_slot5"/>
|
||||
</menu>
|
||||
</item>
|
||||
|
||||
|
@ -54,27 +52,27 @@
|
|||
<item
|
||||
android:id="@+id/menu_emulation_load_root"
|
||||
android:showAsAction="never"
|
||||
android:title="@string/overlay_loadstate">
|
||||
android:title="@string/emulation_loadstate">
|
||||
<menu>
|
||||
<item
|
||||
android:id="@+id/menu_emulation_load_1"
|
||||
android:title="@string/overlay_slot1"/>
|
||||
android:title="@string/emulation_slot1"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_emulation_load_2"
|
||||
android:title="@string/overlay_slot2"/>
|
||||
android:title="@string/emulation_slot2"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_emulation_load_3"
|
||||
android:title="@string/overlay_slot3"/>
|
||||
android:title="@string/emulation_slot3"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_emulation_load_4"
|
||||
android:title="@string/overlay_slot4"/>
|
||||
android:title="@string/emulation_slot4"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_emulation_load_5"
|
||||
android:title="@string/overlay_slot5"/>
|
||||
android:title="@string/emulation_slot5"/>
|
||||
</menu>
|
||||
</item>
|
||||
|
||||
|
@ -96,4 +94,5 @@
|
|||
android:title="@string/emulation_control_scale"/>
|
||||
</menu>
|
||||
</item>
|
||||
</menu>
|
||||
|
||||
</menu>
|
|
@ -6,47 +6,45 @@
|
|||
android:id="@+id/menu_emulation_screenshot"
|
||||
android:showAsAction="ifRoom"
|
||||
android:icon="@drawable/ic_screenshot"
|
||||
android:title="@string/overlay_screenshot"/>
|
||||
android:title="@string/emulation_screenshot"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_quicksave"
|
||||
android:showAsAction="ifRoom"
|
||||
android:icon="@drawable/ic_quicksave"
|
||||
android:title="@string/emulation_quicksave"
|
||||
/>
|
||||
android:title="@string/emulation_quicksave"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_quickload"
|
||||
android:showAsAction="ifRoom"
|
||||
android:icon="@drawable/ic_quickload"
|
||||
android:title="@string/emulation_quickload"
|
||||
/>
|
||||
android:title="@string/emulation_quickload"/>
|
||||
|
||||
<!-- Save State Slots -->
|
||||
<item
|
||||
android:id="@+id/menu_emulation_save_root"
|
||||
android:showAsAction="never"
|
||||
android:title="@string/overlay_savestate">
|
||||
android:title="@string/emulation_savestate">
|
||||
<menu>
|
||||
<item
|
||||
android:id="@+id/menu_emulation_save_1"
|
||||
android:title="@string/overlay_slot1"/>
|
||||
android:title="@string/emulation_slot1"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_emulation_save_2"
|
||||
android:title="@string/overlay_slot2"/>
|
||||
android:title="@string/emulation_slot2"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_emulation_save_3"
|
||||
android:title="@string/overlay_slot3"/>
|
||||
android:title="@string/emulation_slot3"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_emulation_save_4"
|
||||
android:title="@string/overlay_slot4"/>
|
||||
android:title="@string/emulation_slot4"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_emulation_save_5"
|
||||
android:title="@string/overlay_slot5"/>
|
||||
android:title="@string/emulation_slot5"/>
|
||||
</menu>
|
||||
</item>
|
||||
|
||||
|
@ -54,27 +52,27 @@
|
|||
<item
|
||||
android:id="@+id/menu_emulation_load_root"
|
||||
android:showAsAction="never"
|
||||
android:title="@string/overlay_loadstate">
|
||||
android:title="@string/emulation_loadstate">
|
||||
<menu>
|
||||
<item
|
||||
android:id="@+id/menu_emulation_load_1"
|
||||
android:title="@string/overlay_slot1"/>
|
||||
android:title="@string/emulation_slot1"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_emulation_load_2"
|
||||
android:title="@string/overlay_slot2"/>
|
||||
android:title="@string/emulation_slot2"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_emulation_load_3"
|
||||
android:title="@string/overlay_slot3"/>
|
||||
android:title="@string/emulation_slot3"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_emulation_load_4"
|
||||
android:title="@string/overlay_slot4"/>
|
||||
android:title="@string/emulation_slot4"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_emulation_load_5"
|
||||
android:title="@string/overlay_slot5"/>
|
||||
android:title="@string/emulation_slot5"/>
|
||||
</menu>
|
||||
</item>
|
||||
|
||||
|
@ -100,4 +98,5 @@
|
|||
android:title="@string/emulation_choose_controller"/>
|
||||
</menu>
|
||||
</item>
|
||||
</menu>
|
||||
|
||||
</menu>
|
|
@ -1,26 +1,31 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_settings_core"
|
||||
android:title="@string/grid_menu_core_settings"
|
||||
android:icon="@drawable/ic_settings_core"
|
||||
app:showAsAction="ifRoom"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_settings_video"
|
||||
android:title="@string/grid_menu_video_settings"
|
||||
android:icon="@drawable/ic_settings_graphics"
|
||||
app:showAsAction="ifRoom"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_settings_gcpad"
|
||||
android:title="@string/grid_menu_gcpad_settings"
|
||||
android:icon="@drawable/ic_settings_gcpad"
|
||||
app:showAsAction="ifRoom"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_settings_wiimote"
|
||||
android:title="@string/grid_menu_wiimote_settings"
|
||||
android:icon="@drawable/ic_settings_wiimote"
|
||||
app:showAsAction="ifRoom"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_refresh"
|
||||
android:title="@string/grid_menu_refresh"
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue