CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
Path: blob/master/Core/ConfigValues.h
Views: 1401
// Copyright (c) 2012- PPSSPP Project.12// This program is free software: you can redistribute it and/or modify3// it under the terms of the GNU General Public License as published by4// the Free Software Foundation, version 2.0 or later versions.56// This program is distributed in the hope that it will be useful,7// but WITHOUT ANY WARRANTY; without even the implied warranty of8// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the9// GNU General Public License 2.0 for more details.1011// A copy of the GPL 2.0 should have been included with the program.12// If not, see http://www.gnu.org/licenses/1314// Official git repository and contact information can be found at15// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.1617#pragma once1819#include <cstdint>20#include <string>21#ifndef _MSC_VER22#include <strings.h>23#endif24#include "Common/Common.h"25#include "Common/CommonFuncs.h"2627const int PSP_MODEL_FAT = 0;28const int PSP_MODEL_SLIM = 1;29const int PSP_DEFAULT_FIRMWARE = 660;30static const int8_t VOLUME_OFF = 0;31static const int8_t VOLUME_FULL = 10;3233struct ConfigTouchPos {34float x;35float y;36float scale;37// Note: Show is not used for all settings.38bool show;39};4041struct ConfigCustomButton {42uint64_t key;43int image;44int shape;45bool toggle;46bool repeat;47};4849enum class CPUCore {50INTERPRETER = 0,51JIT = 1,52IR_INTERPRETER = 2,53JIT_IR = 3,54};5556enum {57ROTATION_AUTO = 0,58ROTATION_LOCKED_HORIZONTAL = 1,59ROTATION_LOCKED_VERTICAL = 2,60ROTATION_LOCKED_HORIZONTAL180 = 3,61ROTATION_LOCKED_VERTICAL180 = 4,62ROTATION_AUTO_HORIZONTAL = 5,63};6465enum TextureFiltering {66TEX_FILTER_AUTO = 1,67TEX_FILTER_FORCE_NEAREST = 2,68TEX_FILTER_FORCE_LINEAR = 3,69TEX_FILTER_AUTO_MAX_QUALITY = 4,70};7172enum BufferFilter {73SCALE_LINEAR = 1,74SCALE_NEAREST = 2,75};7677// Software is not among these because it will have one of these perform the blit to display.78enum class GPUBackend {79OPENGL = 0,80DIRECT3D9 = 1,81DIRECT3D11 = 2,82VULKAN = 3,83};8485enum class RestoreSettingsBits : int {86SETTINGS = 1,87CONTROLS = 2,88RECENT = 4,89};90ENUM_CLASS_BITOPS(RestoreSettingsBits);9192std::string GPUBackendToString(GPUBackend backend);93GPUBackend GPUBackendFromString(std::string_view backend);9495enum AudioBackendType {96AUDIO_BACKEND_AUTO,97AUDIO_BACKEND_DSOUND,98AUDIO_BACKEND_WASAPI,99};100101// For iIOTimingMethod.102enum IOTimingMethods {103IOTIMING_FAST = 0,104IOTIMING_HOST = 1,105IOTIMING_REALISTIC = 2,106IOTIMING_UMDSLOWREALISTIC = 3,107};108109enum class AutoLoadSaveState {110OFF = 0,111OLDEST = 1,112NEWEST = 2,113};114115enum class FastForwardMode {116CONTINUOUS = 0,117SKIP_FLIP = 2,118};119120enum class BackgroundAnimation {121OFF = 0,122FLOATING_SYMBOLS = 1,123RECENT_GAMES = 2,124WAVE = 3,125MOVING_BACKGROUND = 4,126};127128// iOS only129enum class AppSwitchMode {130SINGLE_SWIPE_NO_INDICATOR = 0,131DOUBLE_SWIPE_INDICATOR = 1,132};133134// for Config.iShowStatusFlags135enum class ShowStatusFlags {136FPS_COUNTER = 1 << 1,137SPEED_COUNTER = 1 << 2,138BATTERY_PERCENT = 1 << 3,139};140141// for iTiltInputType142enum TiltTypes {143TILT_NULL = 0,144TILT_ANALOG,145TILT_DPAD,146TILT_ACTION_BUTTON,147TILT_TRIGGER_BUTTONS,148};149150enum class ScreenEdgePosition {151BOTTOM_LEFT = 0,152BOTTOM_CENTER = 1,153BOTTOM_RIGHT = 2,154TOP_LEFT = 3,155TOP_CENTER = 4,156TOP_RIGHT = 5,157CENTER_LEFT = 6,158CENTER_RIGHT = 7,159CENTER = 8, // Used for REALLY important messages! Not RetroAchievements notifications.160VALUE_COUNT,161};162163enum class DebugOverlay : int {164OFF,165DEBUG_STATS,166FRAME_GRAPH,167FRAME_TIMING,168#ifdef USE_PROFILER169FRAME_PROFILE,170#endif171CONTROL,172Audio,173GPU_PROFILE,174GPU_ALLOCATOR,175FRAMEBUFFER_LIST,176};177178// Android-only for now179enum class DisplayFramerateMode : int {180DEFAULT,181REQUEST_60HZ,182FORCE_60HZ_METHOD1,183FORCE_60HZ_METHOD2,184};185186enum class SkipGPUReadbackMode : int {187NO_SKIP,188SKIP,189COPY_TO_TEXTURE,190};191192enum class RemoteISOShareType : int {193RECENT,194LOCAL_FOLDER,195};196197198