2015-03-06 09:16:25 +00:00
|
|
|
#ifdef OS_WINDOWS
|
|
|
|
# include <windows.h>
|
|
|
|
#else
|
|
|
|
# include "winlnxdefs.h"
|
|
|
|
#endif // OS_WINDOWS
|
|
|
|
#include "RSP.h"
|
|
|
|
#include "PluginAPI.h"
|
|
|
|
#include "Config.h"
|
2015-05-29 14:51:19 +00:00
|
|
|
#include "wst.h"
|
2015-03-06 09:16:25 +00:00
|
|
|
|
|
|
|
void Config::resetToDefaults()
|
|
|
|
{
|
|
|
|
version = CONFIG_VERSION_CURRENT;
|
|
|
|
|
2015-10-08 19:06:13 +00:00
|
|
|
#if defined(PANDORA) || defined(VC)
|
2015-05-31 12:17:28 +00:00
|
|
|
video.fullscreen = 1;
|
|
|
|
video.fullscreenWidth = video.windowedWidth = 800;
|
|
|
|
#else
|
2015-03-06 09:16:25 +00:00
|
|
|
video.fullscreen = 0;
|
|
|
|
video.fullscreenWidth = video.windowedWidth = 640;
|
2015-05-31 12:17:28 +00:00
|
|
|
#endif
|
2015-03-06 09:16:25 +00:00
|
|
|
video.fullscreenHeight = video.windowedHeight = 480;
|
|
|
|
video.fullscreenRefresh = 60;
|
|
|
|
video.multisampling = 0;
|
|
|
|
video.verticalSync = 0;
|
|
|
|
|
|
|
|
texture.maxAnisotropy = 0;
|
|
|
|
texture.bilinearMode = BILINEAR_STANDARD;
|
|
|
|
texture.maxBytes = 500 * gc_uMegabyte;
|
|
|
|
texture.screenShotFormat = 0;
|
|
|
|
|
|
|
|
generalEmulation.enableLOD = 1;
|
|
|
|
generalEmulation.enableNoise = 1;
|
|
|
|
generalEmulation.enableHWLighting = 0;
|
2015-03-21 16:10:51 +00:00
|
|
|
generalEmulation.enableCustomSettings = 1;
|
2015-10-03 13:31:16 +00:00
|
|
|
generalEmulation.enableShadersStorage = 1;
|
2016-04-16 06:28:39 +00:00
|
|
|
generalEmulation.correctTexrectCoords = tcDisable;
|
2016-05-30 16:18:25 +00:00
|
|
|
generalEmulation.enableNativeResTexrects = 0;
|
2016-07-17 05:15:02 +00:00
|
|
|
generalEmulation.enableLegacyBlending = 0;
|
2016-08-12 21:54:36 +00:00
|
|
|
generalEmulation.enableFragmentDepthWrite = 1;
|
2015-03-06 09:16:25 +00:00
|
|
|
generalEmulation.hacks = 0;
|
2015-07-06 11:58:51 +00:00
|
|
|
#ifdef ANDROID
|
|
|
|
generalEmulation.forcePolygonOffset = 0;
|
|
|
|
generalEmulation.polygonOffsetFactor = 0.0f;
|
|
|
|
generalEmulation.polygonOffsetUnits = 0.0f;
|
|
|
|
#endif
|
2015-03-06 09:16:25 +00:00
|
|
|
|
|
|
|
frameBufferEmulation.enable = 1;
|
2016-06-09 16:43:33 +00:00
|
|
|
frameBufferEmulation.copyDepthToRDRAM = cdDisable;
|
2015-03-06 09:16:25 +00:00
|
|
|
frameBufferEmulation.copyFromRDRAM = 0;
|
2015-10-31 02:21:09 +00:00
|
|
|
frameBufferEmulation.copyAuxToRDRAM = 0;
|
2015-10-17 16:20:59 +00:00
|
|
|
frameBufferEmulation.copyToRDRAM = ctAsync;
|
2015-03-06 09:16:25 +00:00
|
|
|
frameBufferEmulation.N64DepthCompare = 0;
|
2016-02-03 16:18:40 +00:00
|
|
|
frameBufferEmulation.aspect = a43;
|
2015-12-14 15:36:07 +00:00
|
|
|
frameBufferEmulation.bufferSwapMode = bsOnVerticalInterrupt;
|
2016-02-09 17:33:31 +00:00
|
|
|
frameBufferEmulation.nativeResFactor = 0;
|
2016-02-03 16:18:40 +00:00
|
|
|
frameBufferEmulation.fbInfoReadColorChunk = 0;
|
|
|
|
frameBufferEmulation.fbInfoReadDepthChunk = 1;
|
2016-03-02 05:28:14 +00:00
|
|
|
#ifndef MUPENPLUSAPI
|
|
|
|
frameBufferEmulation.fbInfoDisabled = 0;
|
|
|
|
#else
|
|
|
|
frameBufferEmulation.fbInfoDisabled = 1;
|
|
|
|
#endif
|
2015-03-06 09:16:25 +00:00
|
|
|
|
2016-04-14 15:42:18 +00:00
|
|
|
textureFilter.txFilterMode = 0;
|
2015-03-06 09:16:25 +00:00
|
|
|
textureFilter.txEnhancementMode = 0;
|
2016-04-14 15:42:18 +00:00
|
|
|
textureFilter.txDeposterize = 0;
|
2015-03-06 09:16:25 +00:00
|
|
|
textureFilter.txFilterIgnoreBG = 0;
|
2016-04-14 15:42:18 +00:00
|
|
|
textureFilter.txCacheSize = 100 * gc_uMegabyte;
|
|
|
|
|
2015-03-06 09:16:25 +00:00
|
|
|
textureFilter.txHiresEnable = 0;
|
|
|
|
textureFilter.txHiresFullAlphaChannel = 0;
|
|
|
|
textureFilter.txHresAltCRC = 0;
|
2016-04-14 15:42:18 +00:00
|
|
|
textureFilter.txDump = 0;
|
2015-03-06 09:16:25 +00:00
|
|
|
|
|
|
|
textureFilter.txForce16bpp = 0;
|
2016-04-14 15:42:18 +00:00
|
|
|
textureFilter.txCacheCompression = 1;
|
2015-03-06 09:16:25 +00:00
|
|
|
textureFilter.txSaveCache = 1;
|
|
|
|
|
2015-05-23 11:53:08 +00:00
|
|
|
api().GetUserDataPath(textureFilter.txPath);
|
2015-05-29 14:51:19 +00:00
|
|
|
gln_wcscat(textureFilter.txPath, wst("/hires_texture"));
|
2015-03-06 09:16:25 +00:00
|
|
|
|
|
|
|
#ifdef OS_WINDOWS
|
2015-05-23 11:53:08 +00:00
|
|
|
font.name.assign("arial.ttf");
|
2015-05-30 14:27:17 +00:00
|
|
|
#elif defined (ANDROID)
|
|
|
|
font.name.assign("DroidSans.ttf");
|
2015-05-31 12:17:28 +00:00
|
|
|
#elif defined (PANDORA)
|
|
|
|
font.name.assign("LiberationMono-Regular.ttf");
|
2015-03-06 09:16:25 +00:00
|
|
|
#else
|
|
|
|
font.name = "FreeSans.ttf";
|
|
|
|
#endif
|
|
|
|
font.size = 18;
|
|
|
|
font.color[0] = 0xB5;
|
|
|
|
font.color[1] = 0xE6;
|
|
|
|
font.color[2] = 0x1D;
|
|
|
|
font.color[3] = 0xFF;
|
|
|
|
for (int i = 0; i < 4; ++i)
|
|
|
|
font.colorf[i] = font.color[i] / 255.0f;
|
|
|
|
|
|
|
|
bloomFilter.enable = 0;
|
|
|
|
bloomFilter.thresholdLevel = 4;
|
|
|
|
bloomFilter.blendMode = 0;
|
|
|
|
bloomFilter.blurAmount = 10;
|
|
|
|
bloomFilter.blurStrength = 20;
|
2015-12-23 10:22:30 +00:00
|
|
|
|
|
|
|
gammaCorrection.force = 0;
|
|
|
|
gammaCorrection.level = 2.0f;
|
2015-03-06 09:16:25 +00:00
|
|
|
}
|