2010-04-25 00:31:27 +00:00
|
|
|
/*
|
2015-05-26 13:36:47 +00:00
|
|
|
* Copyright (C) 2007-2015 Gabest
|
2009-02-09 21:15:56 +00:00
|
|
|
* http://www.gabest.org
|
|
|
|
*
|
|
|
|
* This Program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
* any later version.
|
2010-04-25 00:31:27 +00:00
|
|
|
*
|
2009-02-09 21:15:56 +00:00
|
|
|
* This Program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2010-04-25 00:31:27 +00:00
|
|
|
*
|
2009-02-09 21:15:56 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with GNU Make; see the file COPYING. If not, write to
|
2012-09-09 18:16:11 +00:00
|
|
|
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA USA.
|
2009-02-09 21:15:56 +00:00
|
|
|
* http://www.gnu.org/copyleft/gpl.html
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2011-02-19 03:36:30 +00:00
|
|
|
#include "stdafx.h"
|
2009-02-09 21:15:56 +00:00
|
|
|
#include "GSSetting.h"
|
2015-04-16 20:28:09 +00:00
|
|
|
#ifndef __linux__
|
|
|
|
#include "resource.h"
|
|
|
|
#endif
|
2009-02-09 21:15:56 +00:00
|
|
|
|
2015-04-16 17:20:17 +00:00
|
|
|
const char* dialog_message(int ID, bool* updateText) {
|
|
|
|
if (updateText)
|
|
|
|
*updateText = true;
|
|
|
|
switch (ID)
|
|
|
|
{
|
2015-07-19 21:27:45 +00:00
|
|
|
case IDC_FILTER:
|
|
|
|
return "Control the texture bilinear filtering of the emulation\n\n"
|
|
|
|
"Nearest or OFF\t: Always disable interpolation, rendering will be blocky.\n"
|
|
|
|
"----------------------------------------------------------------------------\n"
|
|
|
|
"PS2 or GRAYED\t: Use same mode as the PS2. It is the more accurate option.\n"
|
|
|
|
"----------------------------------------------------------------------------\n"
|
|
|
|
"Forced or ON\t: Always enable interpolation. Rendering is smoother but it could generate some glitches.";
|
2015-06-04 16:52:58 +00:00
|
|
|
case IDC_CRC_LEVEL:
|
2015-06-17 21:05:26 +00:00
|
|
|
return "Control the number of Auto-CRC hacks applied to games.\n\n"
|
|
|
|
"None\t\t: Remove nearly all CRC hacks (debug only).\n"
|
|
|
|
"------------------------------------------------------------------\n"
|
|
|
|
"Minimum\t: Enable a couple of CRC hacks (23).\n"
|
|
|
|
"------------------------------------------------------------------\n"
|
|
|
|
"Partial\t\t: Enable most of the CRC hacks.\n\n"
|
|
|
|
"Recommended setting for OpenGL users.\n"
|
|
|
|
"Note, may require \'Accurate\' options to be enabled under Hardware Mode Settings.\n"
|
|
|
|
"------------------------------------------------------------------\n"
|
|
|
|
"Full\t\t: Enable all CRC hacks.\n\n"
|
|
|
|
"Recommended setting for DirectX users.\n"
|
|
|
|
"------------------------------------------------------------------\n"
|
|
|
|
"Aggressive\t : Use more aggressive CRC hacks.\n\n"
|
|
|
|
"Only affects a few games, removing some effects which might make the image sharper/clearer.\n\n"
|
|
|
|
"Affected games: FFX, FFX2, FFXII, GOW2, ICO, SoTC, SSX3, SMT3, SMTDDS1, SMTDDS2.\n"
|
|
|
|
"Works as a speedhack for: Steambot Chronicles.";
|
2015-04-16 17:20:17 +00:00
|
|
|
case IDC_SKIPDRAWHACK:
|
|
|
|
case IDC_SKIPDRAWHACKEDIT:
|
|
|
|
case IDC_STATIC_SKIPDRAW:
|
|
|
|
return "Skipdraw\n\nSkips drawing n surfaces completely. "
|
|
|
|
"Use it, for example, to try and get rid of bad post processing effects."
|
|
|
|
" Try values between 1 and 100.";
|
|
|
|
case IDC_ALPHAHACK:
|
2015-07-19 20:43:48 +00:00
|
|
|
return "Alpha Hack\n\nDifferent alpha handling. Can work around some shadow problems.\n\n"
|
|
|
|
"DX only, OpenGL emulates those effects correctly with accurate options.";
|
2015-04-16 17:20:17 +00:00
|
|
|
case IDC_OFFSETHACK:
|
|
|
|
return "Halfpixel\n\nMight fix some misaligned fog, bloom, or blend effect.";
|
|
|
|
case IDC_SPRITEHACK:
|
|
|
|
return "Sprite Hack\n\nHelps getting rid of black inner lines in some filtered sprites."
|
|
|
|
" Half option is the preferred one. Use it for Mana Khemia or Ar Tonelico for example."
|
|
|
|
" Full can be used for Tales of Destiny.";
|
|
|
|
case IDC_WILDHACK:
|
2015-08-10 21:01:45 +00:00
|
|
|
return "Wild Arms\n\nLowers the GS precision to avoid gaps between pixels when upscaling. Fixes the text on Wild Arms games.";
|
2015-04-16 17:20:17 +00:00
|
|
|
case IDC_MSAACB:
|
|
|
|
case IDC_STATIC_MSAA:
|
|
|
|
return "Multisample Anti-Aliasing\n\nEnables hardware Anti-Aliasing. Needs lots of memory."
|
2015-06-30 21:08:31 +00:00
|
|
|
" The Z-24 modes might need to have LogarithmicZ to compensate for the bits lost (only in DX9 mode).\n\n"
|
|
|
|
" MSAA is not implemented on the OpenGL renderer";
|
2015-07-26 06:33:13 +00:00
|
|
|
|
2015-04-16 17:20:17 +00:00
|
|
|
case IDC_ALPHASTENCIL:
|
|
|
|
return "Extend stencil based emulation of destination alpha to perform stencil operations while drawing.\n\n"
|
|
|
|
"Improves many shadows which are normally overdrawn in parts, may affect other effects.\n"
|
2015-07-19 20:43:48 +00:00
|
|
|
"Will disable partial transparency in some games or even prevent drawing some elements altogether."
|
|
|
|
"DX only, OpenGL emulates those effects correctly with accurate options.";
|
2015-04-16 17:20:17 +00:00
|
|
|
case IDC_CHECK_DISABLE_ALL_HACKS:
|
|
|
|
return "FOR TESTING ONLY!!\n\n"
|
|
|
|
"Disable all CRC hacks - will break many games. Overrides CrcHacksExclusion at gsdx.ini\n"
|
|
|
|
"\n"
|
|
|
|
"It's possible to exclude CRC hacks also via the gsdx.ini. E.g.:\n"
|
|
|
|
"CrcHacksExclusions=all\n"
|
|
|
|
"CrcHacksExclusions=0x0F0C4A9C, 0x0EE5646B, 0x7ACF7E03";
|
|
|
|
case IDC_ALIGN_SPRITE:
|
|
|
|
return "Sprite Alignment Hack\n\n"
|
|
|
|
"Fixes issues with upscaling(vertical lines) in Namco games like Ace Combat, Tekken, Soul Calibur, etc.";
|
2015-05-02 06:24:41 +00:00
|
|
|
case IDC_ROUND_SPRITE:
|
2015-04-16 17:20:17 +00:00
|
|
|
return "Corrects the sampling of 2D sprite textures when upscaling.\n\n"
|
2015-05-02 06:24:41 +00:00
|
|
|
"Fixes lines in sprites of games like Ar tonelico when upscaling.\n\n"
|
2015-07-02 12:38:31 +00:00
|
|
|
"Windows: Carries a total of three states: Unchecked (off), Checked (on for all sprites) and Shaded (on for flat sprites)";
|
2015-04-16 17:20:17 +00:00
|
|
|
case IDC_TCOFFSETX:
|
|
|
|
case IDC_TCOFFSETX2:
|
|
|
|
case IDC_STATIC_TCOFFSETX:
|
|
|
|
case IDC_TCOFFSETY:
|
|
|
|
case IDC_TCOFFSETY2:
|
|
|
|
case IDC_STATIC_TCOFFSETY:
|
|
|
|
return "Texture Coordinates Offset Hack\n\n"
|
|
|
|
"Offset for the ST/UV texture coordinates. Fixes some odd texture issues and might fix some post processing alignment too.\n\n"
|
|
|
|
" 0500 0500, fixes Persona 3 minimap, helps Haunting Ground.\n"
|
|
|
|
" 0000 1000, fixes Xenosaga hair edges (DX10+ Issue)\n";
|
2015-05-11 12:12:41 +00:00
|
|
|
case IDC_PALTEX:
|
2015-07-19 15:29:25 +00:00
|
|
|
return "When checked 4/8 bits texture will be send to the GPU with a palette. GPU will be in charge of the conversion.\n\n"
|
2015-05-11 12:12:41 +00:00
|
|
|
"When uncheked the CPU will convert directly the texture to 32 bits\n\n"
|
|
|
|
"It is a basically a trade-off between GPU/CPU";
|
|
|
|
case IDC_ACCURATE_DATE:
|
|
|
|
return "Implement a more accurate algorithm to compute GS destination alpha testing.\n\n"
|
2015-06-30 21:08:31 +00:00
|
|
|
"It could be slower when the effects are used.\n\nNote: it requires the 4.2 OpenGL extension GL_ARB_shader_image_load_store";
|
2015-07-19 07:34:06 +00:00
|
|
|
case IDC_ACCURATE_BLEND_UNIT:
|
|
|
|
return "Control the accuracy level of the GS blending unit emulation. Note: it requires a GL4.5 drivers\n\n"
|
|
|
|
"None\t: Fast but introduce various rendering issues. It is intended for slow computer.\n"
|
|
|
|
"------------------------------------------------------------------\n"
|
|
|
|
"Basic\t: Emulate correctly most of the effects with a limited speed penality. It is the recommended setting.\n"
|
|
|
|
"------------------------------------------------------------------\n"
|
2015-07-25 16:20:00 +00:00
|
|
|
"Medium\t: Extend it to all sprites. Performance impact remains reasonable in 3D game.\n"
|
2015-07-19 19:40:41 +00:00
|
|
|
"------------------------------------------------------------------\n"
|
2015-07-25 16:20:00 +00:00
|
|
|
"High\t: Extend it to destination alpha blending and color wrapping. (help shadow and fog effect). A good CPU is required\n"
|
2015-07-19 07:34:06 +00:00
|
|
|
"------------------------------------------------------------------\n"
|
2015-07-25 16:20:00 +00:00
|
|
|
"Full\t\t: Except few cases, the blending unit will be fully emulated by the shader. It is ultra slow! It is intended for debug\n"
|
2015-07-19 07:34:06 +00:00
|
|
|
"------------------------------------------------------------------\n"
|
|
|
|
"Ultra\t: The blending unit will be completely emulated by the shader. It is ultra slow! It is intended for debug\n";
|
2015-06-26 20:07:51 +00:00
|
|
|
case IDC_TC_DEPTH:
|
|
|
|
return "Allow to convert Depth buffer from/to Color buffer. It is used for blur & depth of field effects";
|
2015-04-16 17:20:17 +00:00
|
|
|
default:
|
|
|
|
if (updateText)
|
|
|
|
*updateText = false;
|
|
|
|
return "";
|
|
|
|
}
|
|
|
|
}
|