mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-20 04:51:21 +01:00
7784fa4c67
# By Ryan Houdek (185) and others # Via degasus (12) and others * master: (625 commits) Revert "Don't open/close file for every file operation." as it was crashing PokePark in Windows builds. Array overrun fixed in VertexShaderCache for the DX11 plugin. Fixed DSPTool build. Windows build fix Go back to assuming every HID device is a wiimote on Windows. Fixed issue 6117. Unfixed issue 6031. VideoSoftware: Improve fog range adjustment by using less magic and more comments. revert RasterFont for VideoSoftware ogl: fix virtual xfb Windows build fix from web interface... Adjusted the audio loop criteria, using >= on the Wii and == on GC. This fixes the audio static that occurred in Wii games after hours of play. Forced the exception check only for ARAM DMA transfers. Removed the Eternal Darkness boot hack and replaced it with an exception check. VideoSoftware: Implement fog range adjustment, fixing issue 6147. implement 4xSSAA for OGL move ogl-only settings into backend Fix description of disable fog, and move it to enhancements tab. Reverted rd76ca5783743 as it was made obsolete by r1d550f4496e4. Removed the tracking of the FIFO Writes as it was made obsolete by r1d550f4496e4. Forced the external exception check to occur sooner by changing the downcount. Mark the Direct3D9 backend deprecated. Prefer D3D11 and OpenGL over D3D9 by default. ... Conflicts: CMakeLists.txt Source/Core/Common/Common.vcxproj.filters Source/Core/Common/Src/CommonPaths.h Source/Core/Core/Core.vcxproj.filters Source/Core/Core/Src/Core.cpp Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_FileIO.cpp Source/VSProps/Dolphin.Win32.props Source/VSProps/Dolphin.x64.props
142 lines
4.1 KiB
C
142 lines
4.1 KiB
C
// Copyright (C) 2003 Dolphin Project.
|
|
|
|
// 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, version 2.0.
|
|
|
|
// 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 2.0 for more details.
|
|
|
|
// A copy of the GPL 2.0 should have been included with the program.
|
|
// If not, see http://www.gnu.org/licenses/
|
|
|
|
// Official SVN repository and contact information can be found at
|
|
// http://code.google.com/p/dolphin-emu/
|
|
|
|
#ifndef _COMMON_PATHS_H_
|
|
#define _COMMON_PATHS_H_
|
|
|
|
// Make sure we pick up USER_DIR if set in config.h
|
|
#include "Common.h"
|
|
|
|
// Directory seperators, do we need this?
|
|
#define DIR_SEP "/"
|
|
#define DIR_SEP_CHR '/'
|
|
|
|
// The user data dir
|
|
#define ROOT_DIR "."
|
|
#ifdef _WIN32
|
|
#define USERDATA_DIR "User"
|
|
#define DOLPHIN_DATA_DIR "Dolphin"
|
|
#elif defined __APPLE__
|
|
// On OS X, USERDATA_DIR exists within the .app, but *always* reference
|
|
// the copy in Application Support instead! (Copied on first run)
|
|
// You can use the File::GetUserPath() util for this
|
|
#define USERDATA_DIR "Contents/Resources/User"
|
|
#define DOLPHIN_DATA_DIR "Library/Application Support/Dolphin"
|
|
#elif defined ANDROID
|
|
#define USERDATA_DIR "user"
|
|
#define DOLPHIN_DATA_DIR "/sdcard/dolphin-emu"
|
|
#else
|
|
#define USERDATA_DIR "user"
|
|
#ifdef USER_DIR
|
|
#define DOLPHIN_DATA_DIR USER_DIR
|
|
#else
|
|
#define DOLPHIN_DATA_DIR ".dolphin"
|
|
#endif
|
|
#endif
|
|
|
|
// Shared data dirs (Sys and shared User for linux)
|
|
#ifdef _WIN32
|
|
#define SYSDATA_DIR "Sys"
|
|
#elif defined __APPLE__
|
|
#define SYSDATA_DIR "Contents/Resources/Sys"
|
|
#define SHARED_USER_DIR File::GetBundleDirectory() + \
|
|
DIR_SEP USERDATA_DIR DIR_SEP
|
|
#elif defined ANDROID
|
|
#define SYSDATA_DIR "/sdcard/dolphin-emu"
|
|
#else
|
|
#ifdef DATA_DIR
|
|
#define SYSDATA_DIR DATA_DIR "sys"
|
|
#define SHARED_USER_DIR DATA_DIR USERDATA_DIR DIR_SEP
|
|
#else
|
|
#define SYSDATA_DIR "sys"
|
|
#define SHARED_USER_DIR ROOT_DIR DIR_SEP USERDATA_DIR DIR_SEP
|
|
#endif
|
|
#endif
|
|
|
|
// Dirs in both User and Sys
|
|
#define EUR_DIR "EUR"
|
|
#define USA_DIR "USA"
|
|
#define JAP_DIR "JAP"
|
|
|
|
// Subdirs in the User dir returned by GetUserPath(D_USER_IDX)
|
|
#define GC_USER_DIR "GC"
|
|
#define WII_USER_DIR "Wii"
|
|
#define CONFIG_DIR "Config"
|
|
#define GAMECONFIG_DIR "GameConfig"
|
|
#define MAPS_DIR "Maps"
|
|
#define CACHE_DIR "Cache"
|
|
#define SHADERCACHE_DIR "ShaderCache"
|
|
#define STATESAVES_DIR "StateSaves"
|
|
#define SCREENSHOTS_DIR "ScreenShots"
|
|
#define OPENCL_DIR "OpenCL"
|
|
#define LOAD_DIR "Load"
|
|
#define HIRES_TEXTURES_DIR LOAD_DIR DIR_SEP "Textures"
|
|
#define DUMP_DIR "Dump"
|
|
#define DUMP_TEXTURES_DIR DUMP_DIR DIR_SEP "Textures"
|
|
#define DUMP_FRAMES_DIR DUMP_DIR DIR_SEP "Frames"
|
|
#define DUMP_AUDIO_DIR DUMP_DIR DIR_SEP "Audio"
|
|
#define DUMP_DSP_DIR DUMP_DIR DIR_SEP "DSP"
|
|
#define LOGS_DIR "Logs"
|
|
#define MAIL_LOGS_DIR LOGS_DIR DIR_SEP "Mail"
|
|
#define SHADERS_DIR "Shaders"
|
|
#define WII_SYSCONF_DIR "shared2" DIR_SEP "sys"
|
|
#define WII_WC24CONF_DIR "shared2" DIR_SEP "wc24"
|
|
#define THEMES_DIR "Themes"
|
|
|
|
// Filenames
|
|
// Files in the directory returned by GetUserPath(D_CONFIG_IDX)
|
|
#define DOLPHIN_CONFIG "Dolphin.ini"
|
|
#define DEBUGGER_CONFIG "Debugger.ini"
|
|
#define LOGGER_CONFIG "Logger.ini"
|
|
|
|
// Files in the directory returned by GetUserPath(D_LOGS_IDX)
|
|
#define MAIN_LOG "dolphin.log"
|
|
|
|
// Files in the directory returned by GetUserPath(D_WIISYSCONF_IDX)
|
|
#define WII_SYSCONF "SYSCONF"
|
|
|
|
// Files in the directory returned by GetUserPath(D_DUMP_IDX)
|
|
#define RAM_DUMP "ram.raw"
|
|
#define ARAM_DUMP "aram.raw"
|
|
#define FAKEVMEM_DUMP "fakevmem.raw"
|
|
|
|
// Sys files
|
|
#define TOTALDB "totaldb.dsy"
|
|
|
|
#define FONT_ANSI "font_ansi.bin"
|
|
#define FONT_SJIS "font_sjis.bin"
|
|
|
|
#define DSP_IROM "dsp_rom.bin"
|
|
#define DSP_COEF "dsp_coef.bin"
|
|
|
|
#define GC_IPL "IPL.bin"
|
|
#define GC_SRAM "SRAM.raw"
|
|
#define GC_MEMCARDA "MemoryCardA"
|
|
#define GC_MEMCARDB "MemoryCardB"
|
|
|
|
#define WII_STATE "state.dat"
|
|
|
|
#define WII_SETTING "setting.txt"
|
|
|
|
#define GECKO_CODE_HANDLER "codehandler.bin"
|
|
|
|
// Subdirs in Sys
|
|
#define GC_SYS_DIR "GC"
|
|
#define WII_SYS_DIR "Wii"
|
|
|
|
#endif // _COMMON_PATHS_H_
|