git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@23067 e17a0e51-4ae3-4d35-97c3-1a29b211df97

This commit is contained in:
SND\weimingzhi_cp 2009-04-16 11:59:29 +00:00
parent 8139fbf820
commit c0891807a8
10 changed files with 2064 additions and 1661 deletions

View File

@ -1,3 +1,8 @@
Mar 25, 2009 Wei Mingzhi <weimingzhi@gmail.com>
* data/pcsx.glade2: Reorganized the menu a bit. Added Cheat Search
dialog.
Mar 22, 2009 Wei Mingzhi <weimingzhi@gmail.com>
* plugins/dfxvideo/gpu.c: Capture screenshots correctly in RGB24

View File

@ -1,9 +1,8 @@
#!/bin/sh
# simple script to redo the autotooling
cp /usr/share/libtool/ltmain.sh .
cp /usr/share/libtool/config/ltmain.sh .
autoheader && aclocal && autoconf && automake --add-missing --copy
cp /usr/share/gettext/config.rpath .
cp /usr/share/glib-2.0/gettext/mkinstalldirs .
rm -r autom4te.cache

View File

@ -123,7 +123,7 @@
<child>
<widget class="GtkImageMenuItem" id="run1">
<property name="visible">True</property>
<property name="label" translatable="yes">_Run</property>
<property name="label" translatable="yes">_Continue</property>
<property name="use_underline">True</property>
<signal name="activate" handler="OnEmu_Run"/>
<child internal-child="image">
@ -138,7 +138,7 @@
<child>
<widget class="GtkImageMenuItem" id="reset1">
<property name="visible">True</property>
<property name="label" translatable="yes">Re_set</property>
<property name="label" translatable="yes">_Reset</property>
<property name="use_underline">True</property>
<signal name="activate" handler="OnEmu_Reset"/>
<child internal-child="image">
@ -158,7 +158,7 @@
<child>
<widget class="GtkImageMenuItem" id="SwitchImage">
<property name="visible">True</property>
<property name="label" translatable="yes">S_witch ISO</property>
<property name="label" translatable="yes">_Switch ISO</property>
<property name="use_underline">True</property>
<signal name="activate" handler="OnEmu_SwitchImage"/>
<accelerator key="W" modifiers="GDK_CONTROL_MASK" signal="activate"/>
@ -177,165 +177,68 @@
</widget>
</child>
<child>
<widget class="GtkImageMenuItem" id="states1">
<widget class="GtkImageMenuItem" id="save1">
<property name="visible">True</property>
<property name="label" translatable="yes">_States</property>
<property name="label" translatable="yes">_Save State</property>
<property name="use_underline">True</property>
<child>
<widget class="GtkMenu" id="states1_menu">
<widget class="GtkMenu" id="save1_menu">
<child>
<widget class="GtkImageMenuItem" id="load1">
<widget class="GtkMenuItem" id="GtkMenuItem_SaveSlot1">
<property name="visible">True</property>
<property name="label" translatable="yes">_Load</property>
<property name="label" translatable="yes">Slot _1</property>
<property name="use_underline">True</property>
<child>
<widget class="GtkMenu" id="load1_menu">
<child>
<widget class="GtkMenuItem" id="GtkMenuItem_LoadSlot1">
<property name="visible">True</property>
<property name="label" translatable="yes">Slot _1</property>
<property name="use_underline">True</property>
<signal name="activate" handler="OnStates_Load1"/>
<accelerator key="1" modifiers="GDK_MOD1_MASK" signal="activate"/>
</widget>
</child>
<child>
<widget class="GtkMenuItem" id="GtkMenuItem_LoadSlot2">
<property name="visible">True</property>
<property name="label" translatable="yes">Slot _2</property>
<property name="use_underline">True</property>
<signal name="activate" handler="OnStates_Load2"/>
<accelerator key="2" modifiers="GDK_MOD1_MASK" signal="activate"/>
</widget>
</child>
<child>
<widget class="GtkMenuItem" id="GtkMenuItem_LoadSlot3">
<property name="visible">True</property>
<property name="label" translatable="yes">Slot _3</property>
<property name="use_underline">True</property>
<signal name="activate" handler="OnStates_Load3"/>
<accelerator key="3" modifiers="GDK_MOD1_MASK" signal="activate"/>
</widget>
</child>
<child>
<widget class="GtkMenuItem" id="GtkMenuItem_LoadSlot4">
<property name="visible">True</property>
<property name="label" translatable="yes">Slot _4</property>
<property name="use_underline">True</property>
<signal name="activate" handler="OnStates_Load4"/>
<accelerator key="4" modifiers="GDK_MOD1_MASK" signal="activate"/>
</widget>
</child>
<child>
<widget class="GtkMenuItem" id="GtkMenuItem_LoadSlot5">
<property name="visible">True</property>
<property name="label" translatable="yes">Slot _5</property>
<property name="use_underline">True</property>
<signal name="activate" handler="OnStates_Load5"/>
<accelerator key="5" modifiers="GDK_MOD1_MASK" signal="activate"/>
</widget>
</child>
<child>
<widget class="GtkImageMenuItem" id="other1">
<property name="visible">True</property>
<property name="label" translatable="yes">_Other...</property>
<property name="use_underline">True</property>
<signal name="activate" handler="OnStates_LoadOther"/>
<accelerator key="0" modifiers="GDK_MOD1_MASK" signal="activate"/>
<child internal-child="image">
<widget class="GtkImage" id="menu-item-image21">
<property name="visible">True</property>
<property name="stock">gtk-open</property>
<property name="icon_size">1</property>
</widget>
</child>
</widget>
</child>
</widget>
</child>
<child internal-child="image">
<widget class="GtkImage" id="menu-item-image22">
<property name="visible">True</property>
<property name="stock">gtk-redo</property>
<property name="icon_size">1</property>
</widget>
</child>
<signal name="activate" handler="OnStates_Save1"/>
<accelerator key="1" modifiers="GDK_CONTROL_MASK" signal="activate"/>
</widget>
</child>
<child>
<widget class="GtkImageMenuItem" id="save1">
<widget class="GtkMenuItem" id="GtkMenuItem_SaveSlot2">
<property name="visible">True</property>
<property name="label" translatable="yes">_Save</property>
<property name="label" translatable="yes">Slot _2</property>
<property name="use_underline">True</property>
<child>
<widget class="GtkMenu" id="save1_menu">
<child>
<widget class="GtkMenuItem" id="GtkMenuItem_SaveSlot1">
<property name="visible">True</property>
<property name="label" translatable="yes">Slot _1</property>
<property name="use_underline">True</property>
<signal name="activate" handler="OnStates_Save1"/>
<accelerator key="1" modifiers="GDK_CONTROL_MASK" signal="activate"/>
</widget>
</child>
<child>
<widget class="GtkMenuItem" id="GtkMenuItem_SaveSlot2">
<property name="visible">True</property>
<property name="label" translatable="yes">Slot _2</property>
<property name="use_underline">True</property>
<signal name="activate" handler="OnStates_Save2"/>
<accelerator key="2" modifiers="GDK_CONTROL_MASK" signal="activate"/>
</widget>
</child>
<child>
<widget class="GtkMenuItem" id="GtkMenuItem_SaveSlot3">
<property name="visible">True</property>
<property name="label" translatable="yes">Slot _3</property>
<property name="use_underline">True</property>
<signal name="activate" handler="OnStates_Save3"/>
<accelerator key="3" modifiers="GDK_CONTROL_MASK" signal="activate"/>
</widget>
</child>
<child>
<widget class="GtkMenuItem" id="GtkMenuItem_SaveSlot4">
<property name="visible">True</property>
<property name="label" translatable="yes">Slot _4</property>
<property name="use_underline">True</property>
<signal name="activate" handler="OnStates_Save4"/>
<accelerator key="4" modifiers="GDK_CONTROL_MASK" signal="activate"/>
</widget>
</child>
<child>
<widget class="GtkMenuItem" id="GtkMenuItem_SaveSlot5">
<property name="visible">True</property>
<property name="label" translatable="yes">Slot _5</property>
<property name="use_underline">True</property>
<signal name="activate" handler="OnStates_Save5"/>
<accelerator key="5" modifiers="GDK_CONTROL_MASK" signal="activate"/>
</widget>
</child>
<child>
<widget class="GtkImageMenuItem" id="other2">
<property name="visible">True</property>
<property name="label" translatable="yes">_Other...</property>
<property name="use_underline">True</property>
<signal name="activate" handler="OnStates_SaveOther"/>
<accelerator key="0" modifiers="GDK_CONTROL_MASK" signal="activate"/>
<child internal-child="image">
<widget class="GtkImage" id="menu-item-image23">
<property name="visible">True</property>
<property name="stock">gtk-open</property>
<property name="icon_size">1</property>
</widget>
</child>
</widget>
</child>
</widget>
</child>
<signal name="activate" handler="OnStates_Save2"/>
<accelerator key="2" modifiers="GDK_CONTROL_MASK" signal="activate"/>
</widget>
</child>
<child>
<widget class="GtkMenuItem" id="GtkMenuItem_SaveSlot3">
<property name="visible">True</property>
<property name="label" translatable="yes">Slot _3</property>
<property name="use_underline">True</property>
<signal name="activate" handler="OnStates_Save3"/>
<accelerator key="3" modifiers="GDK_CONTROL_MASK" signal="activate"/>
</widget>
</child>
<child>
<widget class="GtkMenuItem" id="GtkMenuItem_SaveSlot4">
<property name="visible">True</property>
<property name="label" translatable="yes">Slot _4</property>
<property name="use_underline">True</property>
<signal name="activate" handler="OnStates_Save4"/>
<accelerator key="4" modifiers="GDK_CONTROL_MASK" signal="activate"/>
</widget>
</child>
<child>
<widget class="GtkMenuItem" id="GtkMenuItem_SaveSlot5">
<property name="visible">True</property>
<property name="label" translatable="yes">Slot _5</property>
<property name="use_underline">True</property>
<signal name="activate" handler="OnStates_Save5"/>
<accelerator key="5" modifiers="GDK_CONTROL_MASK" signal="activate"/>
</widget>
</child>
<child>
<widget class="GtkImageMenuItem" id="other2">
<property name="visible">True</property>
<property name="label" translatable="yes">_Other...</property>
<property name="use_underline">True</property>
<signal name="activate" handler="OnStates_SaveOther"/>
<accelerator key="0" modifiers="GDK_CONTROL_MASK" signal="activate"/>
<child internal-child="image">
<widget class="GtkImage" id="menu-item-image24">
<widget class="GtkImage" id="menu-item-image23">
<property name="visible">True</property>
<property name="stock">gtk-undo</property>
<property name="stock">gtk-open</property>
<property name="icon_size">1</property>
</widget>
</child>
@ -344,9 +247,88 @@
</widget>
</child>
<child internal-child="image">
<widget class="GtkImage" id="menu-item-image25">
<widget class="GtkImage" id="menu-item-image24">
<property name="visible">True</property>
<property name="stock">gtk-new</property>
<property name="stock">gtk-save-as</property>
<property name="icon_size">1</property>
</widget>
</child>
</widget>
</child>
<child>
<widget class="GtkImageMenuItem" id="load1">
<property name="visible">True</property>
<property name="label" translatable="yes">_Load State</property>
<property name="use_underline">True</property>
<child>
<widget class="GtkMenu" id="load1_menu">
<child>
<widget class="GtkMenuItem" id="GtkMenuItem_LoadSlot1">
<property name="visible">True</property>
<property name="label" translatable="yes">Slot _1</property>
<property name="use_underline">True</property>
<signal name="activate" handler="OnStates_Load1"/>
<accelerator key="1" modifiers="GDK_MOD1_MASK" signal="activate"/>
</widget>
</child>
<child>
<widget class="GtkMenuItem" id="GtkMenuItem_LoadSlot2">
<property name="visible">True</property>
<property name="label" translatable="yes">Slot _2</property>
<property name="use_underline">True</property>
<signal name="activate" handler="OnStates_Load2"/>
<accelerator key="2" modifiers="GDK_MOD1_MASK" signal="activate"/>
</widget>
</child>
<child>
<widget class="GtkMenuItem" id="GtkMenuItem_LoadSlot3">
<property name="visible">True</property>
<property name="label" translatable="yes">Slot _3</property>
<property name="use_underline">True</property>
<signal name="activate" handler="OnStates_Load3"/>
<accelerator key="3" modifiers="GDK_MOD1_MASK" signal="activate"/>
</widget>
</child>
<child>
<widget class="GtkMenuItem" id="GtkMenuItem_LoadSlot4">
<property name="visible">True</property>
<property name="label" translatable="yes">Slot _4</property>
<property name="use_underline">True</property>
<signal name="activate" handler="OnStates_Load4"/>
<accelerator key="4" modifiers="GDK_MOD1_MASK" signal="activate"/>
</widget>
</child>
<child>
<widget class="GtkMenuItem" id="GtkMenuItem_LoadSlot5">
<property name="visible">True</property>
<property name="label" translatable="yes">Slot _5</property>
<property name="use_underline">True</property>
<signal name="activate" handler="OnStates_Load5"/>
<accelerator key="5" modifiers="GDK_MOD1_MASK" signal="activate"/>
</widget>
</child>
<child>
<widget class="GtkImageMenuItem" id="other1">
<property name="visible">True</property>
<property name="label" translatable="yes">_Other...</property>
<property name="use_underline">True</property>
<signal name="activate" handler="OnStates_LoadOther"/>
<accelerator key="0" modifiers="GDK_MOD1_MASK" signal="activate"/>
<child internal-child="image">
<widget class="GtkImage" id="menu-item-image21">
<property name="visible">True</property>
<property name="stock">gtk-open</property>
<property name="icon_size">1</property>
</widget>
</child>
</widget>
</child>
</widget>
</child>
<child internal-child="image">
<widget class="GtkImage" id="menu-item-image22">
<property name="visible">True</property>
<property name="stock">gtk-revert-to-saved</property>
<property name="icon_size">1</property>
</widget>
</child>
@ -2128,7 +2110,7 @@ GNU General Public License for more details.
You should have received a copy of the GNU General
Public License along with this program; if not, write to
the Free Software Foundation, Inc.</property>
<property name="authors">Wei Mingzhi &lt;whistler@openoffice.org&gt;
<property name="authors">Wei Mingzhi &lt;weimingzhi@gmail.com&gt;
PCSX-df Team:
Ryan Schultz &lt;schultz.ryan@gmail.com&gt;
@ -2144,6 +2126,8 @@ Nik3d</property>
<property name="documenters">Ryan Schultz &lt;schultz.ryan@gmail.com&gt;</property>
<property name="translator_credits" translatable="yes" comments="TRANSLATORS: Replace this string with your names, one name per line.">translator-credits</property>
<property name="artists">Ryan Schultz &lt;schultz.ryan@gmail.com&gt;
Icon Design:
Romain Lafourcade</property>
<child internal-child="vbox">
<widget class="GtkVBox" id="dialog-vbox6">
@ -2163,6 +2147,7 @@ Romain Lafourcade</property>
<property name="border_width">5</property>
<property name="title" translatable="yes">Edit Cheat Codes</property>
<property name="modal">True</property>
<property name="window_position">GTK_WIN_POS_CENTER</property>
<property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
<child internal-child="vbox">
<widget class="GtkVBox" id="dialog-vbox7">
@ -2371,4 +2356,448 @@ Romain Lafourcade</property>
</widget>
</child>
</widget>
<widget class="GtkDialog" id="CheatSearchDlg">
<property name="visible">True</property>
<property name="border_width">5</property>
<property name="title" translatable="yes">Cheat Search</property>
<property name="modal">True</property>
<property name="window_position">GTK_WIN_POS_CENTER</property>
<property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
<child internal-child="vbox">
<widget class="GtkVBox" id="dialog-vbox8">
<property name="visible">True</property>
<property name="spacing">2</property>
<child>
<widget class="GtkFrame" id="frame4">
<property name="visible">True</property>
<property name="label_xalign">0</property>
<child>
<widget class="GtkAlignment" id="alignment23">
<property name="visible">True</property>
<property name="bottom_padding">12</property>
<property name="left_padding">12</property>
<property name="right_padding">12</property>
<child>
<widget class="GtkVBox" id="vbox2">
<property name="visible">True</property>
<property name="spacing">6</property>
<child>
<widget class="GtkTable" id="table1">
<property name="visible">True</property>
<property name="n_rows">3</property>
<property name="n_columns">4</property>
<property name="column_spacing">10</property>
<property name="row_spacing">10</property>
<child>
<placeholder/>
</child>
<child>
<widget class="GtkComboBox" id="combo_datatype">
<property name="visible">True</property>
<property name="items" translatable="yes">Unsigned 8-bit
Unsigned 16-bit
Unsigned 32-bit
Signed 8-bit
Signed 16-bit
Signed 32-bit</property>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="GtkLabel" id="label6">
<property name="visible">True</property>
<property name="label" translatable="yes">Search For:</property>
</widget>
<packing>
<property name="x_options"></property>
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="GtkLabel" id="label7">
<property name="visible">True</property>
<property name="label" translatable="yes">Data Type:</property>
</widget>
<packing>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="x_options"></property>
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="GtkLabel" id="label8">
<property name="visible">True</property>
<property name="label" translatable="yes">Value:</property>
</widget>
<packing>
<property name="top_attach">2</property>
<property name="bottom_attach">3</property>
<property name="x_options"></property>
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="GtkLabel" id="label9">
<property name="visible">True</property>
<property name="label" translatable="yes">Data Base:</property>
</widget>
<packing>
<property name="left_attach">2</property>
<property name="right_attach">3</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="x_options"></property>
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="GtkComboBox" id="combo_searchfor">
<property name="visible">True</property>
<property name="items" translatable="yes">Equal Value
Not Equal Value
Range</property>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="GtkEntry" id="entry_value">
<property name="visible">True</property>
<property name="can_focus">True</property>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">2</property>
<property name="bottom_attach">3</property>
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="GtkComboBox" id="combo_database">
<property name="visible">True</property>
<property name="items" translatable="yes">Decimal
Hexadecimal</property>
</widget>
<packing>
<property name="left_attach">3</property>
<property name="right_attach">4</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="GtkCheckButton" id="check_bigendian">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Big-Endian</property>
<property name="response_id">0</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="left_attach">3</property>
<property name="right_attach">4</property>
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="GtkLabel" id="label10">
<property name="visible">True</property>
<property name="label" translatable="yes">To:</property>
</widget>
<packing>
<property name="left_attach">2</property>
<property name="right_attach">3</property>
<property name="top_attach">2</property>
<property name="bottom_attach">3</property>
</packing>
</child>
<child>
<widget class="GtkEntry" id="entry_valueto">
<property name="visible">True</property>
<property name="can_focus">True</property>
</widget>
<packing>
<property name="left_attach">3</property>
<property name="right_attach">4</property>
<property name="top_attach">2</property>
<property name="bottom_attach">3</property>
</packing>
</child>
</widget>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkHBox" id="hbox4">
<property name="visible">True</property>
<child>
<widget class="GtkScrolledWindow" id="scrolledwindow2">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hscrollbar_policy">GTK_POLICY_NEVER</property>
<property name="shadow_type">GTK_SHADOW_ETCHED_IN</property>
<child>
<widget class="GtkTreeView" id="treeview1">
<property name="width_request">450</property>
<property name="height_request">250</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="show_expanders">False</property>
<property name="enable_grid_lines">GTK_TREE_VIEW_GRID_LINES_VERTICAL</property>
</widget>
</child>
</widget>
</child>
<child>
<widget class="GtkVButtonBox" id="vbuttonbox1">
<property name="visible">True</property>
<property name="spacing">20</property>
<property name="layout_style">GTK_BUTTONBOX_START</property>
<child>
<widget class="GtkButton" id="button1">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="response_id">0</property>
<child>
<widget class="GtkHBox" id="hbox7">
<property name="visible">True</property>
<child>
<widget class="GtkImage" id="image7">
<property name="visible">True</property>
<property name="stock">gtk-missing-image</property>
<property name="icon_size">1</property>
</widget>
</child>
<child>
<widget class="GtkLabel" id="label13">
<property name="visible">True</property>
<property name="label" translatable="yes">label</property>
</widget>
<packing>
<property name="position">1</property>
</packing>
</child>
</widget>
</child>
</widget>
</child>
<child>
<widget class="GtkButton" id="button4">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="response_id">0</property>
<child>
<widget class="GtkHBox" id="hbox8">
<property name="visible">True</property>
<child>
<widget class="GtkImage" id="image8">
<property name="visible">True</property>
<property name="stock">gtk-missing-image</property>
<property name="icon_size">1</property>
</widget>
</child>
<child>
<widget class="GtkLabel" id="label14">
<property name="visible">True</property>
<property name="label" translatable="yes">label</property>
</widget>
<packing>
<property name="position">1</property>
</packing>
</child>
</widget>
</child>
</widget>
<packing>
<property name="position">1</property>
</packing>
</child>
<child>
<widget class="GtkButton" id="button5">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="response_id">0</property>
<child>
<widget class="GtkHBox" id="hbox9">
<property name="visible">True</property>
<child>
<widget class="GtkImage" id="image9">
<property name="visible">True</property>
<property name="stock">gtk-missing-image</property>
<property name="icon_size">1</property>
</widget>
</child>
<child>
<widget class="GtkLabel" id="label15">
<property name="visible">True</property>
<property name="label" translatable="yes">label</property>
</widget>
<packing>
<property name="position">1</property>
</packing>
</child>
</widget>
</child>
</widget>
<packing>
<property name="position">2</property>
</packing>
</child>
</widget>
<packing>
<property name="padding">10</property>
<property name="position">1</property>
</packing>
</child>
</widget>
<packing>
<property name="position">1</property>
</packing>
</child>
<child>
<widget class="GtkLabel" id="label_resultsfound">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="yalign">0</property>
<property name="label" translatable="yes">label_resultsfound</property>
<property name="single_line_mode">True</property>
</widget>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">2</property>
</packing>
</child>
<child>
<widget class="GtkHButtonBox" id="hbuttonbox1">
<property name="visible">True</property>
<property name="spacing">20</property>
<property name="layout_style">GTK_BUTTONBOX_CENTER</property>
<child>
<widget class="GtkButton" id="btn_start">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="response_id">0</property>
<child>
<widget class="GtkHBox" id="hbox5">
<property name="visible">True</property>
<child>
<widget class="GtkImage" id="image5">
<property name="visible">True</property>
<property name="stock">gtk-ok</property>
<property name="icon_size">1</property>
</widget>
</child>
<child>
<widget class="GtkLabel" id="label11">
<property name="visible">True</property>
<property name="label" translatable="yes">Search</property>
</widget>
<packing>
<property name="position">1</property>
</packing>
</child>
</widget>
</child>
</widget>
</child>
<child>
<widget class="GtkButton" id="btn_restart">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="response_id">0</property>
<child>
<widget class="GtkHBox" id="hbox6">
<property name="visible">True</property>
<child>
<widget class="GtkImage" id="image6">
<property name="visible">True</property>
<property name="stock">gtk-undo</property>
<property name="icon_size">1</property>
</widget>
</child>
<child>
<widget class="GtkLabel" id="label12">
<property name="visible">True</property>
<property name="label" translatable="yes">Restart</property>
</widget>
<packing>
<property name="position">1</property>
</packing>
</child>
</widget>
</child>
</widget>
<packing>
<property name="position">1</property>
</packing>
</child>
</widget>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">3</property>
</packing>
</child>
</widget>
</child>
</widget>
</child>
<child>
<widget class="GtkLabel" id="label4">
<property name="visible">True</property>
<property name="label" translatable="yes">&lt;b&gt;Cheat Search&lt;/b&gt;</property>
<property name="use_markup">True</property>
</widget>
<packing>
<property name="type">label_item</property>
</packing>
</child>
</widget>
<packing>
<property name="position">1</property>
</packing>
</child>
<child internal-child="action_area">
<widget class="GtkHButtonBox" id="dialog-action_area8">
<property name="visible">True</property>
<property name="layout_style">GTK_BUTTONBOX_END</property>
<child>
<widget class="GtkButton" id="closebutton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="label" translatable="yes">gtk-close</property>
<property name="use_stock">True</property>
<property name="response_id">0</property>
</widget>
</child>
</widget>
<packing>
<property name="expand">False</property>
<property name="pack_type">GTK_PACK_END</property>
</packing>
</child>
</widget>
</child>
</widget>
</glade-interface>

View File

@ -503,14 +503,35 @@ void RunCheatListDialog() {
g_signal_connect_data(GTK_OBJECT(CheatListDlg), "response",
GTK_SIGNAL_FUNC(OnCheatListDlg_Clicked), xml, (GClosureNotify)g_object_unref, G_CONNECT_AFTER);
gtk_widget_set_sensitive (GTK_WIDGET(glade_xml_get_widget(xml, "savebutton1")), NumCheats);
gtk_widget_set_sensitive (GTK_WIDGET(glade_xml_get_widget(xml, "editbutton1")), FALSE);
gtk_widget_set_sensitive (GTK_WIDGET(glade_xml_get_widget(xml, "delbutton1")), FALSE);
gtk_widget_set_sensitive (GTK_WIDGET(glade_xml_get_widget(xml, "enablebutton1")), FALSE);
gtk_widget_set_sensitive (GTK_WIDGET(glade_xml_get_widget(xml, "disablebutton1")), FALSE);
gtk_widget_set_sensitive (GTK_WIDGET(glade_xml_get_widget(xml, "editbutton1")), FALSE);
gtk_widget_set_sensitive(GTK_WIDGET(glade_xml_get_widget(xml, "savebutton1")), NumCheats);
gtk_widget_set_sensitive(GTK_WIDGET(glade_xml_get_widget(xml, "editbutton1")), FALSE);
gtk_widget_set_sensitive(GTK_WIDGET(glade_xml_get_widget(xml, "delbutton1")), FALSE);
gtk_widget_set_sensitive(GTK_WIDGET(glade_xml_get_widget(xml, "enablebutton1")), FALSE);
gtk_widget_set_sensitive(GTK_WIDGET(glade_xml_get_widget(xml, "disablebutton1")), FALSE);
gtk_widget_set_sensitive(GTK_WIDGET(glade_xml_get_widget(xml, "editbutton1")), FALSE);
}
///////////////////////////////////////////////////////////////////////////////
struct cheatSearchResult {
u32 addr;
u32 val;
};
struct cheatSearchResult *SearchResult = NULL;
int NumSearchResult = 0;
// run the cheat search dialog
void RunCheatSearchDialog() {
GladeXML *xml;
GtkWidget *widget;
xml = glade_xml_new(PACKAGE_DATA_DIR "pcsx.glade2", "CheatSearchDlg", NULL);
if (!xml) {
g_warning(_("Error: Glade interface could not be loaded!"));
return;
}
CheatSearchDlg = glade_xml_get_widget(xml, "CheatSearchDlg");
gtk_window_set_title(GTK_WINDOW(CheatSearchDlg), _("Cheat Search"));
}

View File

@ -1493,20 +1493,17 @@ void MOVD64RtoR(int to, int from) {
ModRM(3, from,to);
}
void MOVQRtoR(int to,int from)
{
void MOVQRtoR(int to, int from) {
write16(0x6F0F);
ModRM(3, to,from);
}
void PUNPCKHDQRtoR(int to,int from)
{
void PUNPCKHDQRtoR(int to, int from) {
write16(0x6A0F);
ModRM(3, to,from);
}
void PUNPCKLDQRtoR(int to,int from)
{
void PUNPCKLDQRtoR(int to, int from) {
write16(0x620F);
ModRM(3, to,from);
}
@ -1515,61 +1512,52 @@ void PUNPCKLDQRtoR(int to,int from)
// SSE intructions
//////////////////////////////////////////////////////////////////////////
void MOVAPSMtoR(int to,int from)
{
void MOVAPSMtoR(int to, int from) {
write16(0x280f);
ModRM(0, to, DISP32);
write32(from);
}
void MOVAPSRtoM(int to,int from)
{
void MOVAPSRtoM(int to, int from) {
write16(0x2b0f);
ModRM(0, from, DISP32);
write32(to);
}
void MOVAPSRtoR(int to,int from)
{
void MOVAPSRtoR(int to, int from) {
write16(0x290f);
ModRM(3, to,from);
}
void ORPSMtoR(int to,int from)
{
void ORPSMtoR(int to, int from) {
write16(0x560f);
ModRM(0, to, DISP32);
write32(from);
}
void ORPSRtoR(int to,int from)
{
void ORPSRtoR(int to, int from) {
write16(0x560f);
ModRM(3, to,from);
}
void XORPSMtoR(int to,int from)
{
void XORPSMtoR(int to, int from) {
write16(0x570f);
ModRM(0, to, DISP32);
write32(from);
}
void XORPSRtoR(int to,int from)
{
void XORPSRtoR(int to, int from) {
write16(0x570f);
ModRM(3, to,from);
}
void ANDPSMtoR(int to,int from)
{
void ANDPSMtoR(int to, int from) {
write16(0x540f);
ModRM(0, to, DISP32);
write32(from);
}
void ANDPSRtoR(int to,int from)
{
void ANDPSRtoR(int to, int from) {
write16(0x540f);
ModRM(3, to,from);
}
@ -1578,181 +1566,154 @@ void ANDPSRtoR(int to,int from)
3DNOW intructions
*/
void PFCMPEQMtoR(int to,int from)
{
void PFCMPEQMtoR(int to, int from) {
write16(0x0f0f);
ModRM(0, to, DISP32);
write32(from);
write8(0xb0);
}
void PFCMPGTMtoR(int to,int from)
{
void PFCMPGTMtoR(int to, int from) {
write16(0x0f0f);
ModRM(0, to, DISP32);
write32(from);
write8(0xa0);
}
void PFCMPGEMtoR(int to,int from)
{
void PFCMPGEMtoR(int to, int from) {
write16(0x0f0f);
ModRM(0, to, DISP32);
write32(from);
write8(0x90);
}
void PFADDMtoR(int to,int from)
{
void PFADDMtoR(int to, int from) {
write16(0x0f0f);
ModRM(0, to, DISP32);
write32(from);
write8(0x9e);
}
void PFADDRtoR(int to,int from)
{
void PFADDRtoR(int to, int from) {
write16(0x0f0f);
ModRM(3, to, from);
write8(0x9e);
}
void PFSUBMtoR(int to,int from)
{
void PFSUBMtoR(int to, int from) {
write16(0x0f0f);
ModRM(0, to, DISP32);
write32(from);
write8(0x9a);
}
void PFSUBRtoR(int to,int from)
{
void PFSUBRtoR(int to, int from) {
write16(0x0f0f);
ModRM(3, to, from);
write8(0x9a);
}
void PFMULMtoR(int to,int from)
{
void PFMULMtoR(int to, int from) {
write16(0x0f0f);
ModRM(0, to, DISP32);
write32(from);
write8(0xb4);
}
void PFMULRtoR(int to,int from)
{
void PFMULRtoR(int to, int from) {
write16(0x0f0f);
ModRM(3, to,from);
write8(0xb4);
}
void PFRCPMtoR(int to,int from)
{
void PFRCPMtoR(int to, int from) {
write16(0x0f0f);
ModRM(0, to, DISP32);
write32(from);
write8(0x96);
}
void PFRCPRtoR(int to,int from)
{
void PFRCPRtoR(int to, int from) {
write16(0x0f0f);
ModRM(3, to,from);
write8(0x96);
}
void PFRCPIT1RtoR(int to,int from)
{
void PFRCPIT1RtoR(int to, int from) {
write16(0x0f0f);
ModRM(3, to,from);
write8(0xa6);
}
void PFRCPIT2RtoR(int to,int from)
{
void PFRCPIT2RtoR(int to, int from) {
write16(0x0f0f);
ModRM(3, to,from);
write8(0xb6);
}
void PFRSQRTRtoR(int to,int from)
{
void PFRSQRTRtoR(int to, int from) {
write16(0x0f0f);
ModRM(3, to,from);
write8(0x97);
}
void PFRSQIT1RtoR(int to,int from)
{
void PFRSQIT1RtoR(int to, int from) {
write16(0x0f0f);
ModRM(3, to,from);
write8(0xa7);
}
void PF2IDMtoR(int to,int from)
{
void PF2IDMtoR(int to, int from) {
write16(0x0f0f);
ModRM(0, to, DISP32);
write32(from);
write8(0x1d);
}
void PF2IDRtoR(int to,int from)
{
void PF2IDRtoR(int to, int from) {
write16(0x0f0f);
ModRM(3, to, from);
write8(0x1d);
}
void PI2FDMtoR(int to,int from)
{
void PI2FDMtoR(int to, int from) {
write16(0x0f0f);
ModRM(0, to, DISP32);
write32(from);
write8(0x0d);
}
void PI2FDRtoR(int to,int from)
{
void PI2FDRtoR(int to, int from) {
write16(0x0f0f);
ModRM(3, to, from);
write8(0x0d);
}
/*
3DNOW Extension intructions
*/
void PFMAXMtoR(int to,int from)
{
void PFMAXMtoR(int to, int from) {
write16(0x0f0f);
ModRM(0, to, DISP32);
write32(from);
write8(0xa4);
}
void PFMAXRtoR(int to,int from)
{
void PFMAXRtoR(int to, int from) {
write16(0x0f0f);
ModRM(3, to, from);
write8(0xa4);
}
void PFMINMtoR(int to,int from)
{
void PFMINMtoR(int to, int from) {
write16(0x0f0f);
ModRM(0, to, DISP32);
write32(from);
write8(0x94);
}
void PFMINRtoR(int to,int from)
{
void PFMINRtoR(int to, int from) {
write16(0x0f0f);
ModRM(3, to, from);
write8(0x94);

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff