mirror of
https://github.com/PCSX2/pcsx2-sourceforge.git
synced 2026-02-04 03:11:18 +01:00
zerogs dx 0.97.1 and a few linux changes from ibrown
This commit is contained in:
@@ -948,6 +948,7 @@ void OnConf_Conf(GtkMenuItem *menuitem, gpointer user_data) {
|
||||
|
||||
GtkWidget *CmdLine;
|
||||
GtkWidget *ListDV;
|
||||
GtkListStore *ListDVModel;
|
||||
GtkWidget *SetPCDlg, *SetPCEntry;
|
||||
GtkWidget *SetBPADlg, *SetBPAEntry;
|
||||
GtkWidget *SetBPCDlg, *SetBPCEntry;
|
||||
@@ -965,30 +966,26 @@ int DebugMode; // 0 - EE | 1 - IOP
|
||||
#include "PsxMem.h"
|
||||
|
||||
void UpdateDebugger() {
|
||||
GtkWidget *item;
|
||||
|
||||
char *str;
|
||||
int i;
|
||||
GList *list = NULL;
|
||||
u32 pc;
|
||||
|
||||
DebugAdj->value = (gfloat)dPC/4;
|
||||
|
||||
gtk_list_clear_items(GTK_LIST(ListDV), 0, 23);
|
||||
gtk_list_store_clear(ListDVModel);
|
||||
|
||||
for (i=0; i<23; i++) {
|
||||
GtkTreeIter iter;
|
||||
u32 *mem;
|
||||
pc = dPC + i*4;
|
||||
u32 pc = dPC + i*4;
|
||||
if (DebugMode) {
|
||||
mem = (u32*)PSXM(pc);
|
||||
} else
|
||||
mem = PSM(pc);
|
||||
if (mem == NULL) { sprintf(nullAddr, "%8.8lX:\tNULL MEMORY", pc); str = nullAddr; }
|
||||
else str = disR5900Fasm(*mem, pc);
|
||||
item = gtk_list_item_new_with_label(str);
|
||||
gtk_widget_show(item);
|
||||
list = g_list_append(list, item);
|
||||
gtk_list_store_append(ListDVModel, &iter);
|
||||
gtk_list_store_set(ListDVModel, &iter, 0, str, -1);
|
||||
|
||||
}
|
||||
gtk_list_append_items(GTK_LIST(ListDV), list);
|
||||
}
|
||||
|
||||
void OnDebug_Close(GtkButton *button, gpointer user_data) {
|
||||
@@ -1280,6 +1277,8 @@ void OnDebug_memWrite32(GtkButton *button, gpointer user_data) {
|
||||
|
||||
void OnDebug_Debugger(GtkMenuItem *menuitem, gpointer user_data) {
|
||||
GtkWidget *scroll;
|
||||
GtkCellRenderer *renderer;
|
||||
GtkTreeViewColumn *column;
|
||||
|
||||
if (OpenPlugins(NULL) == -1) return;
|
||||
if (needReset) { SysReset(); needReset = 0; }
|
||||
@@ -1294,7 +1293,15 @@ void OnDebug_Debugger(GtkMenuItem *menuitem, gpointer user_data) {
|
||||
|
||||
DebugWnd = create_DebugWnd();
|
||||
|
||||
ListDVModel = gtk_list_store_new (1, G_TYPE_STRING);
|
||||
ListDV = lookup_widget(DebugWnd, "GtkList_DisView");
|
||||
gtk_tree_view_set_model(GTK_TREE_VIEW(ListDV), GTK_TREE_MODEL(ListDVModel));
|
||||
renderer = gtk_cell_renderer_text_new ();
|
||||
column = gtk_tree_view_column_new_with_attributes ("heading", renderer,
|
||||
"text", 0,
|
||||
NULL);
|
||||
gtk_tree_view_append_column (GTK_TREE_VIEW (ListDV), column);
|
||||
|
||||
scroll = lookup_widget(DebugWnd, "GtkVScrollbar_VList");
|
||||
|
||||
DebugAdj = GTK_RANGE(scroll)->adjustment;
|
||||
@@ -1541,7 +1548,7 @@ void FindPlugins() {
|
||||
if (!IsBIOS(ent->d_name, description)) continue;//2002-09-28 (Florin)
|
||||
|
||||
BiosConfS.plugins+=2;
|
||||
sprintf(description, "%s (%s)", description, ent->d_name);
|
||||
snprintf(description, 49, "%s (%s)", description, ent->d_name);
|
||||
strcpy(BiosConfS.plist[BiosConfS.plugins-1], description);//2002-09-28 (Florin) modified
|
||||
strcpy(BiosConfS.plist[BiosConfS.plugins-2], ent->d_name);
|
||||
BiosConfS.glist = g_list_append(BiosConfS.glist, BiosConfS.plist[BiosConfS.plugins-1]);
|
||||
|
||||
@@ -2792,7 +2792,7 @@ Version x.x</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
@@ -2826,7 +2826,7 @@ Version x.x</property>
|
||||
<child>
|
||||
<widget class="GtkTreeView" id="GtkList_DisView">
|
||||
<property name="visible">True</property>
|
||||
<property name="headers_visible">True</property>
|
||||
<property name="headers_visible">False</property>
|
||||
<property name="rules_hint">False</property>
|
||||
<property name="reorderable">False</property>
|
||||
<property name="enable_search">True</property>
|
||||
@@ -2854,7 +2854,7 @@ Version x.x</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
@@ -2932,7 +2932,7 @@ Version x.x</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
@@ -2997,7 +2997,7 @@ Version x.x</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
@@ -3049,14 +3049,14 @@ Version x.x</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
@@ -3106,7 +3106,7 @@ Version x.x</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
@@ -71,7 +71,7 @@ u32 g_nGenVars = 0, g_nTexVars = 0, g_nAlphaVars = 0, g_nResolve = 0;
|
||||
const unsigned char version = PS2E_GS_VERSION;
|
||||
unsigned char revision = 0; // revision and build gives plugin version
|
||||
unsigned char build = VER;
|
||||
unsigned char minor = 0;
|
||||
unsigned char minor = 1;
|
||||
|
||||
#ifdef _DEBUG
|
||||
char *libraryName = "ZeroGS (Debug) ";
|
||||
|
||||
@@ -109,6 +109,7 @@ void OnInitDialog(HWND hW)
|
||||
PUT_CONF(01000000);
|
||||
PUT_CONF(02000000);
|
||||
PUT_CONF(04000000);
|
||||
PUT_CONF(08000000);
|
||||
|
||||
for(map<int, int>::iterator it = mapConfOpts.begin(); it != mapConfOpts.end(); ++it) {
|
||||
CheckDlgButton(hW, it->first, (conf.gamesettings&it->second)?1:0);
|
||||
|
||||
@@ -28,23 +28,20 @@
|
||||
#define IDC_CONF_WIN960W 1030
|
||||
#define IDC_CONF_WIN1280W 1031
|
||||
#define IDC_CONF_WIN1920W 1032
|
||||
|
||||
#define IDC_CONFOPT_00002000 1033
|
||||
#define IDC_CONFIG_CAPTUREAVI3 1034
|
||||
#define IDC_CONFIG_WIREFRAME 1034
|
||||
#define IDC_CONFOPT_00001000 1035
|
||||
#define IDC_CONFIG_CAPTUREAVI4 1036
|
||||
#define IDC_CONFIG_CACHEFBP 1036
|
||||
#define IDC_CONFIG_SHOWFPS 1036
|
||||
#define IDC_CONFOPT_00100000 1036
|
||||
#define IDC_CONFOPT_00080000 1041
|
||||
#define IDC_CONFOPT_00002000 1033
|
||||
|
||||
#define IDC_CONFOPT_00001000 1035
|
||||
|
||||
#define IDC_CONFOPT_00000200 1037
|
||||
#define IDC_CONFOPT_00000080 1038
|
||||
#define IDC_CONFOPT_201 1039
|
||||
#define IDC_CONFOPT_00000040 1039
|
||||
#define IDC_CONFOPT_00000020 1040
|
||||
#define IDC_CONFOPT_00080000 1041
|
||||
#define IDC_CONF_WIN1283 1041
|
||||
#define IDC_CONFOPT_00000001 1042
|
||||
#define IDC_CONFOPT_00000004 1044
|
||||
@@ -61,6 +58,8 @@
|
||||
#define IDC_CONFOPT_00000002 1055
|
||||
#define IDC_CONFOPT_20001 1056
|
||||
#define IDC_CONFOPT_01000000 1056
|
||||
#define IDC_CONFOPT_16961 1057
|
||||
#define IDC_CONFOPT_08000000 1057
|
||||
#define IDC_CONFOPT_00000008 1058
|
||||
#define IDC_CONFOPT_00000400 1060
|
||||
#define IDC_CONFOPT_00000800 1061
|
||||
@@ -82,7 +81,7 @@
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_NEXT_RESOURCE_VALUE 113
|
||||
#define _APS_NEXT_COMMAND_VALUE 40001
|
||||
#define _APS_NEXT_CONTROL_VALUE 1049
|
||||
#define _APS_NEXT_CONTROL_VALUE 1052
|
||||
#define _APS_NEXT_SYMED_VALUE 101
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -31,10 +31,10 @@ IDB_ZEROGSLOGO BITMAP "zerogs.bmp"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// RCDATA
|
||||
// Data
|
||||
//
|
||||
|
||||
IDR_SHADERS RCDATA "ps2fx.dat"
|
||||
IDR_SHADERS RCDATA "ps2fx.dat"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
@@ -42,115 +42,169 @@ IDR_SHADERS RCDATA "ps2fx.dat"
|
||||
//
|
||||
|
||||
IDD_CONFIG DIALOGEX 0, 0, 427, 385
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION |
|
||||
WS_SYSMENU
|
||||
FONT 8, "MS Sans Serif", 0, 0, 0x0
|
||||
BEGIN
|
||||
CONTROL "Interlace Enable (toggle with F5)\n there are 2 modes + interlace off",IDC_CONFIG_INTERLACE,
|
||||
"Button",BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP,7,7,134,18
|
||||
CONTROL "Bilinear Filtering (Shift+F5)\n Best quality is on, turn off for speed.",IDC_CONFIG_BILINEAR,
|
||||
"Button",BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP,7,31,135,18
|
||||
CONTROL "None",IDC_CONFIG_AANONE,"Button",BS_AUTORADIOBUTTON | WS_GROUP,19,92,34,11
|
||||
CONTROL "2X",IDC_CONFIG_AA2,"Button",BS_AUTORADIOBUTTON,69,92,26,11
|
||||
CONTROL "4X",IDC_CONFIG_AA4,"Button",BS_AUTORADIOBUTTON,111,92,28,11
|
||||
CONTROL "8X",IDC_CONFIG_AA8,"Button",BS_AUTORADIOBUTTON,69,108,26,11
|
||||
CONTROL "16X",IDC_CONFIG_AA16,"Button",BS_AUTORADIOBUTTON,111,108,28,11
|
||||
CONTROL "Wireframe rendering (F7)",IDC_CONFIG_WIREFRAME,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,129,93,10
|
||||
CONTROL "Interlace Enable (toggle with F5)\n there are 2 modes + interlace off",
|
||||
IDC_CONFIG_INTERLACE,"Button",BS_AUTOCHECKBOX |
|
||||
BS_MULTILINE | WS_TABSTOP,7,7,134,18
|
||||
CONTROL "Bilinear Filtering (Shift+F5)\n Best quality is on, turn off for speed.",
|
||||
IDC_CONFIG_BILINEAR,"Button",BS_AUTOCHECKBOX |
|
||||
BS_MULTILINE | WS_TABSTOP,7,31,135,18
|
||||
CONTROL "None",IDC_CONFIG_AANONE,"Button",BS_AUTORADIOBUTTON |
|
||||
WS_GROUP,19,92,34,11
|
||||
CONTROL "2X",IDC_CONFIG_AA2,"Button",BS_AUTORADIOBUTTON,69,92,26,
|
||||
11
|
||||
CONTROL "4X",IDC_CONFIG_AA4,"Button",BS_AUTORADIOBUTTON,111,92,
|
||||
28,11
|
||||
CONTROL "8X",IDC_CONFIG_AA8,"Button",BS_AUTORADIOBUTTON,69,108,
|
||||
26,11
|
||||
CONTROL "16X",IDC_CONFIG_AA16,"Button",BS_AUTORADIOBUTTON,111,
|
||||
108,28,11
|
||||
CONTROL "Wireframe rendering (F7)",IDC_CONFIG_WIREFRAME,"Button",
|
||||
BS_AUTOCHECKBOX | WS_TABSTOP,7,129,93,10
|
||||
CONTROL "Capture Avi (zerogs.avi) (F12)",IDC_CONFIG_CAPTUREAVI,
|
||||
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,145,109,10
|
||||
CONTROL "Save Snapshots as BMPs (default is JPG)",IDC_CONFIG_BMPSS,
|
||||
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,162,147,10
|
||||
CONTROL "Fullscreen (Alt+Enter)\n to get out press Alt+Enter again",IDC_CONFIG_FULLSCREEN,
|
||||
"Button",BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP,7,178,146,17
|
||||
CONTROL "640 x 480",IDC_CONF_WIN640,"Button",BS_AUTORADIOBUTTON | WS_GROUP,15,233,59,8
|
||||
CONTROL "800 x 600",IDC_CONF_WIN800,"Button",BS_AUTORADIOBUTTON,78,233,59,8
|
||||
CONTROL "1024 x 768",IDC_CONF_WIN1024,"Button",BS_AUTORADIOBUTTON,15,246,59,8
|
||||
CONTROL "1280 x 960",IDC_CONF_WIN1280,"Button",BS_AUTORADIOBUTTON,78,246,59,8
|
||||
CONTROL "960 x 540",IDC_CONF_WIN960W,"Button",BS_AUTORADIOBUTTON,14,270,53,8
|
||||
CONTROL "1280 x 720",IDC_CONF_WIN1280W,"Button",BS_AUTORADIOBUTTON,77,270,53,8
|
||||
CONTROL "1920 x 1080",IDC_CONF_WIN1920W,"Button",BS_AUTORADIOBUTTON,14,283,53,8
|
||||
CONTROL "Save Snapshots as BMPs (default is JPG)",
|
||||
IDC_CONFIG_BMPSS,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,
|
||||
162,147,10
|
||||
CONTROL "Fullscreen (Alt+Enter)\n to get out press Alt+Enter again",
|
||||
IDC_CONFIG_FULLSCREEN,"Button",BS_AUTOCHECKBOX |
|
||||
BS_MULTILINE | WS_TABSTOP,7,178,146,17
|
||||
CONTROL "640 x 480",IDC_CONF_WIN640,"Button",BS_AUTORADIOBUTTON |
|
||||
WS_GROUP,15,233,59,8
|
||||
CONTROL "800 x 600",IDC_CONF_WIN800,"Button",BS_AUTORADIOBUTTON,
|
||||
78,233,59,8
|
||||
CONTROL "1024 x 768",IDC_CONF_WIN1024,"Button",
|
||||
BS_AUTORADIOBUTTON,15,246,59,8
|
||||
CONTROL "1280 x 960",IDC_CONF_WIN1280,"Button",
|
||||
BS_AUTORADIOBUTTON,78,246,59,8
|
||||
CONTROL "960 x 540",IDC_CONF_WIN960W,"Button",BS_AUTORADIOBUTTON,
|
||||
14,270,53,8
|
||||
CONTROL "1280 x 720",IDC_CONF_WIN1280W,"Button",
|
||||
BS_AUTORADIOBUTTON,77,270,53,8
|
||||
CONTROL "1920 x 1080",IDC_CONF_WIN1920W,"Button",
|
||||
BS_AUTORADIOBUTTON,14,283,53,8
|
||||
DEFPUSHBUTTON "OK",IDOK,7,364,50,14
|
||||
PUSHBUTTON "Cancel",IDCANCEL,94,364,50,14
|
||||
GROUPBOX "Anti-aliasing for sharper graphics",IDC_STATIC,7,57,136,66
|
||||
GROUPBOX "Default Window Size (no speed impact)",IDC_STATIC,7,223,141,76
|
||||
LTEXT "Show Frames Per Second (Shift+F7)",IDC_STATIC,7,314,140,10
|
||||
GROUPBOX "Anti-aliasing for sharper graphics",IDC_STATIC,7,57,136,
|
||||
66
|
||||
GROUPBOX "Default Window Size (no speed impact)",IDC_STATIC,7,223,
|
||||
141,76
|
||||
LTEXT "Show Frames Per Second (Shift+F7)",IDC_STATIC,7,314,140,
|
||||
10
|
||||
GROUPBOX "Advanced Options",IDC_STATIC,152,7,268,371
|
||||
LTEXT "Each option is presented with a unique ID in hex. In order to preserve options across games, go into the game's patch (.pnach) file and type\n zerogs=IDS\nwhere IDS is the OR all of the values in hex for every option you want enabled. ",IDC_STATIC,161,16,252,33
|
||||
PUSHBUTTON "Use Defaults (recommended)",IDC_CONF_DEFAULT,159,76,151,14
|
||||
LTEXT "Each option is presented with a unique ID in hex. In order to preserve options across games, go into the game's patch (.pnach) file and type\n zerogs=IDS\nwhere IDS is the OR all of the values in hex for every option you want enabled. ",
|
||||
IDC_STATIC,161,16,252,33
|
||||
PUSHBUTTON "Use Defaults (recommended)",IDC_CONF_DEFAULT,159,76,151,
|
||||
14
|
||||
CONTROL "Disable alpha testing - 00080000",IDC_CONFOPT_00080000,
|
||||
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,159,104,119,10
|
||||
CONTROL "Disable stencil buffer - 00002000\nusually safe to do for simple scenes",IDC_CONFOPT_00002000,
|
||||
"Button",BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP,159,114,118,22
|
||||
CONTROL "No target CLUT - 00001000\n(use on RE4, or foggy scenes)",IDC_CONFOPT_00001000,
|
||||
"Button",BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP,158,169,120,24
|
||||
CONTROL "Disable stencil buffer - 00002000\nusually safe to do for simple scenes",
|
||||
IDC_CONFOPT_00002000,"Button",BS_AUTOCHECKBOX |
|
||||
BS_MULTILINE | WS_TABSTOP,159,114,118,22
|
||||
CONTROL "No target CLUT - 00001000\n(use on RE4, or foggy scenes)",
|
||||
IDC_CONFOPT_00001000,"Button",BS_AUTOCHECKBOX |
|
||||
BS_MULTILINE | WS_TABSTOP,158,169,120,24
|
||||
CONTROL "Disable depth updates - 00000200",IDC_CONFOPT_00000200,
|
||||
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,158,161,125,10
|
||||
CONTROL "FFX hack - 00000080\nshows missing geometry",IDC_CONFOPT_00000080,
|
||||
"Button",BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP,158,190,121,17
|
||||
CONTROL "Exact color testing - 00000020\nfixes overbright or shadow/black artifacts (crash n burn)",IDC_CONFOPT_00000020,
|
||||
"Button",BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP,158,209,119,25
|
||||
CONTROL "Tex Target checking - 00000001\nlego racers",IDC_CONFOPT_00000001,
|
||||
"Button",BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP,158,233,123,22
|
||||
CONTROL "Interlace 2X - 00000004\nfixes 2x bigger screen (gradius3)",IDC_CONFOPT_00000004,
|
||||
"Button",BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP,158,254,119,20
|
||||
CONTROL "FFX hack - 00000080\nshows missing geometry",
|
||||
IDC_CONFOPT_00000080,"Button",BS_AUTOCHECKBOX |
|
||||
BS_MULTILINE | WS_TABSTOP,158,190,121,17
|
||||
CONTROL "Exact color testing - 00000020\nfixes overbright or shadow/black artifacts (crash n burn)",
|
||||
IDC_CONFOPT_00000020,"Button",BS_AUTOCHECKBOX |
|
||||
BS_MULTILINE | WS_TABSTOP,158,209,119,25
|
||||
CONTROL "Tex Target checking - 00000001\nlego racers",
|
||||
IDC_CONFOPT_00000001,"Button",BS_AUTOCHECKBOX |
|
||||
BS_MULTILINE | WS_TABSTOP,158,233,123,22
|
||||
CONTROL "Interlace 2X - 00000004\nfixes 2x bigger screen (gradius3)",
|
||||
IDC_CONFOPT_00000004,"Button",BS_AUTOCHECKBOX |
|
||||
BS_MULTILINE | WS_TABSTOP,158,254,119,20
|
||||
CONTROL "32 bit render targets - 00200000",IDC_CONFOPT_00200000,
|
||||
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,285,93,117,10
|
||||
CONTROL "No Vertical Stripes - 00004000\n try when there's a lot of garbage on screen",IDC_CONFOPT_00004000,
|
||||
"Button",BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP,285,138,111,28
|
||||
CONTROL "No depth resolve - 00008000\nmight give z buffer artifacts",IDC_CONFOPT_00008000,
|
||||
"Button",BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP,285,164,121,19
|
||||
CONTROL "full 16 bit resolution - 00010000\nuse when half the screen is missing, etc",IDC_CONFOPT_00010000,
|
||||
"Button",BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP,285,185,125,23
|
||||
CONTROL "Auto Reset Targs - 00000002\nshadow hearts, samurai warriors (use when game is slow and toggling AA fixes it)",IDC_CONFOPT_00000002,
|
||||
"Button",BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP,283,212,124,32
|
||||
CONTROL "Tex Alpha Hack - 00000008\nnightmare before christmas",IDC_CONFOPT_00000008,
|
||||
"Button",BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP,286,252,125,17
|
||||
EDITTEXT IDC_CONFOPT_IDS,372,364,48,14,ES_AUTOHSCROLL | ES_READONLY
|
||||
CONTROL "Resolve Hack #1 - 00000400\nspeeds some games (kingdom hearts)",IDC_CONFOPT_00000400,
|
||||
"Button",BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP,285,270,135,19
|
||||
CONTROL "Resolve Hack #2 - 00000800\nshadow hearts, urbz",IDC_CONFOPT_00000800,
|
||||
"Button",BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP,158,276,117,17
|
||||
CONTROL "Resolve Hack #3 - 00020000\nneopets",IDC_CONFOPT_00020000,
|
||||
"Button",BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP,285,292,125,17
|
||||
CONTROL "Fast Update - 00040000\nspeeds some games (okami)",IDC_CONFOPT_00040000,
|
||||
"Button",BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP,158,297,125,17
|
||||
CONTROL "No Vertical Stripes - 00004000\n try when there's a lot of garbage on screen",
|
||||
IDC_CONFOPT_00004000,"Button",BS_AUTOCHECKBOX |
|
||||
BS_MULTILINE | WS_TABSTOP,285,138,111,28
|
||||
CONTROL "No depth resolve - 00008000\nmight give z buffer artifacts",
|
||||
IDC_CONFOPT_00008000,"Button",BS_AUTOCHECKBOX |
|
||||
BS_MULTILINE | WS_TABSTOP,285,164,121,19
|
||||
CONTROL "full 16 bit resolution - 00010000\nuse when half the screen is missing, etc",
|
||||
IDC_CONFOPT_00010000,"Button",BS_AUTOCHECKBOX |
|
||||
BS_MULTILINE | WS_TABSTOP,285,185,125,23
|
||||
CONTROL "Auto Reset Targs - 00000002\nshadow hearts, samurai warriors (use when game is slow and toggling AA fixes it)",
|
||||
IDC_CONFOPT_00000002,"Button",BS_AUTOCHECKBOX |
|
||||
BS_MULTILINE | WS_TABSTOP,283,212,124,32
|
||||
CONTROL "Tex Alpha Hack - 00000008\nnightmare before christmas",
|
||||
IDC_CONFOPT_00000008,"Button",BS_AUTOCHECKBOX |
|
||||
BS_MULTILINE | WS_TABSTOP,286,252,125,17
|
||||
EDITTEXT IDC_CONFOPT_IDS,372,364,48,14,ES_AUTOHSCROLL |
|
||||
ES_READONLY
|
||||
CONTROL "Resolve Hack #1 - 00000400\nspeeds some games (kingdom hearts)",
|
||||
IDC_CONFOPT_00000400,"Button",BS_AUTOCHECKBOX |
|
||||
BS_MULTILINE | WS_TABSTOP,285,270,135,19
|
||||
CONTROL "Resolve Hack #2 - 00000800\nshadow hearts, urbz",
|
||||
IDC_CONFOPT_00000800,"Button",BS_AUTOCHECKBOX |
|
||||
BS_MULTILINE | WS_TABSTOP,158,276,117,17
|
||||
CONTROL "Resolve Hack #3 - 00020000\nneopets",
|
||||
IDC_CONFOPT_00020000,"Button",BS_AUTOCHECKBOX |
|
||||
BS_MULTILINE | WS_TABSTOP,285,292,125,17
|
||||
CONTROL "Fast Update - 00040000\nspeeds some games (okami)",
|
||||
IDC_CONFOPT_00040000,"Button",BS_AUTOCHECKBOX |
|
||||
BS_MULTILINE | WS_TABSTOP,158,297,125,17
|
||||
PUSHBUTTON "Compute OR of IDS",IDC_CONFOPT_COMPUTEOR,287,364,73,14
|
||||
LTEXT "Important options are listed first. Note, setting option here means that they will be ADDED to whatever options are set in each pnach file.",IDC_STATIC,159,50,252,23
|
||||
CONTROL "No target resolves - 00000010\nStops all resolving of targets (try this first for really slow games)",IDC_CONFOPT_00000010,
|
||||
"Button",BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP,285,104,111,33
|
||||
LTEXT "Important options are listed first. Note, setting option here means that they will be ADDED to whatever options are set in each pnach file.",
|
||||
IDC_STATIC,159,50,252,23
|
||||
CONTROL "No target resolves - 00000010\nStops all resolving of targets (try this first for really slow games)",
|
||||
IDC_CONFOPT_00000010,"Button",BS_AUTOCHECKBOX |
|
||||
BS_MULTILINE | WS_TABSTOP,285,104,111,33
|
||||
CONTROL "Disable Multiple RTs - 00100000",IDC_CONFOPT_00100000,
|
||||
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,159,91,119,10
|
||||
CONTROL "No color clamping - 00000040\nSpeeds games up but might be too bright or too dim",IDC_CONFOPT_00000040,
|
||||
"Button",BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP,157,137,123,22
|
||||
CONTROL "Specular Highlights - 01000000\nMakes xenosaga graphics faster by removing highlights",IDC_CONFOPT_01000000,
|
||||
"Button",BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP,285,313,125,25
|
||||
CONTROL "Partial Targets - 02000000\nReduces artifacts and speeds up some games (mgs3)",IDC_CONFOPT_02000000,
|
||||
"Button",BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP,158,319,125,24
|
||||
CONTROL "Partial Depth - 04000000\nTries to save the depth target as much as possible (mgs3)",IDC_CONFOPT_04000000,
|
||||
"Button",BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP,159,347,125,24
|
||||
LTEXT "shortcuts: F6 - next, Shift+F6 - prev",IDC_STATIC,24,71,116,11
|
||||
CONTROL "No color clamping - 00000040\nSpeeds games up but might be too bright or too dim",
|
||||
IDC_CONFOPT_00000040,"Button",BS_AUTOCHECKBOX |
|
||||
BS_MULTILINE | WS_TABSTOP,157,137,123,22
|
||||
CONTROL "Specular Highlights - 01000000\nMakes xenosaga graphics faster by removing highlights",
|
||||
IDC_CONFOPT_01000000,"Button",BS_AUTOCHECKBOX |
|
||||
BS_MULTILINE | WS_TABSTOP,285,313,125,25
|
||||
CONTROL "Partial Targets - 02000000\nReduces artifacts and speeds up some games (mgs3)",
|
||||
IDC_CONFOPT_02000000,"Button",BS_AUTOCHECKBOX |
|
||||
BS_MULTILINE | WS_TABSTOP,158,319,125,24
|
||||
CONTROL "Partial Depth - 04000000\nTries to save the depth target as much as possible (mgs3)",
|
||||
IDC_CONFOPT_04000000,"Button",BS_AUTOCHECKBOX |
|
||||
BS_MULTILINE | WS_TABSTOP,159,347,125,24
|
||||
LTEXT "shortcuts: F6 - next, Shift+F6 - prev",IDC_STATIC,24,71,
|
||||
116,11
|
||||
CONTROL "16:9 widescreen (Shift+F9)",IDC_CONFIG_WIDESCREEN,
|
||||
"Button",BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP,7,199,146,17
|
||||
"Button",BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP,7,
|
||||
199,146,17
|
||||
LTEXT "Widescreen:",IDC_STATIC,14,257,89,11
|
||||
CONTROL "Relaxed Depth - 08000000\nMight show hidden sprites (xenosaga text)",
|
||||
IDC_CONFOPT_08000000,"Button",BS_AUTOCHECKBOX |
|
||||
BS_MULTILINE | WS_TABSTOP,285,338,125,25
|
||||
END
|
||||
|
||||
IDD_ABOUT DIALOGEX 0, 0, 182, 220
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION |
|
||||
WS_SYSMENU
|
||||
CAPTION "GSabout"
|
||||
FONT 8, "MS Sans Serif", 0, 0, 0x0
|
||||
BEGIN
|
||||
DEFPUSHBUTTON "OK",IDOK,65,199,50,14
|
||||
LTEXT "ZeroGS\n\nauthor: zerofrog(@gmail.com)\n\n\nthanks to Gabest for SSE optimizations",IDC_STATIC,7,7,160,47
|
||||
LTEXT "ZeroGS\n\nauthor: zerofrog(@gmail.com)\n\n\nthanks to Gabest for SSE optimizations",
|
||||
IDC_STATIC,7,7,160,47
|
||||
LTEXT "Static",IDC_ABOUTTEXT,7,65,152,124
|
||||
END
|
||||
|
||||
IDD_LOGGING DIALOG 0, 0, 152, 55
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION |
|
||||
WS_SYSMENU
|
||||
CAPTION "Dialog"
|
||||
FONT 8, "MS Sans Serif"
|
||||
BEGIN
|
||||
DEFPUSHBUTTON "OK",IDOK,40,35,50,14
|
||||
PUSHBUTTON "Cancel",IDCANCEL,95,35,50,14
|
||||
CONTROL "Log",IDC_LOG,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,60,15,28,10
|
||||
CONTROL "Log",IDC_LOG,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,60,
|
||||
15,28,10
|
||||
END
|
||||
|
||||
|
||||
|
||||
@@ -2437,10 +2437,13 @@ void ZeroGS::Flush(int context)
|
||||
if( curtest.ztst > 1 ) g_nDepthUsed = 2;
|
||||
if( (curtest.ztst == 2) ^ (g_nDepthBias != 0) ) {
|
||||
g_nDepthBias = curtest.ztst == 2;
|
||||
SETRS(D3DRS_DEPTHBIAS, g_nDepthBias?FtoDW(0.0003f):FtoDW(0.000015f));
|
||||
if( g_GameSettings & GAME_RELAXEDDEPTH )
|
||||
SETRS(D3DRS_DEPTHBIAS, g_nDepthBias?FtoDW(0.00003f):FtoDW(0.0001f));
|
||||
else
|
||||
SETRS(D3DRS_DEPTHBIAS, g_nDepthBias?FtoDW(0.0003f):FtoDW(0.000015f));
|
||||
}
|
||||
|
||||
SETRS(D3DRS_ZFUNC, g_dwZCmp[curtest.ztst]);
|
||||
SETRS(D3DRS_ZFUNC, g_dwZCmp[curtest.ztst]);
|
||||
|
||||
// if( curtest.ztst == 3 ) {
|
||||
// // gequal
|
||||
|
||||
@@ -149,6 +149,7 @@ extern float g_fiGPU_TEXWIDTH;
|
||||
#define GAME_XENOSPECHACK 0x01000000 // xenosaga specularity hack (ignore any zmask=1 draws)
|
||||
#define GAME_PARTIALPOINTERS 0x02000000 // whenver the texture or render target are small, tries to look for bigger ones to read from
|
||||
#define GAME_PARTIALDEPTH 0x04000000 // tries to save depth targets as much as possible across height changes
|
||||
#define GAME_RELAXEDDEPTH 0x08000000 // tries to save depth targets as much as possible across height changes
|
||||
|
||||
#define USEALPHABLENDING 1//(!(g_GameSettings&GAME_NOALPHABLEND))
|
||||
#define USEALPHATESTING (!(g_GameSettings&GAME_NOALPHATEST))
|
||||
|
||||
Reference in New Issue
Block a user