CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
hrydgard

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: hrydgard/ppsspp
Path: blob/master/Core/CoreParameter.h
Views: 1401
1
// Copyright (c) 2012- PPSSPP Project.
2
3
// This program is free software: you can redistribute it and/or modify
4
// it under the terms of the GNU General Public License as published by
5
// the Free Software Foundation, version 2.0 or later versions.
6
7
// This program is distributed in the hope that it will be useful,
8
// but WITHOUT ANY WARRANTY; without even the implied warranty of
9
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
// GNU General Public License 2.0 for more details.
11
12
// A copy of the GPL 2.0 should have been included with the program.
13
// If not, see http://www.gnu.org/licenses/
14
15
// Official git repository and contact information can be found at
16
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
17
18
#pragma once
19
20
#include <string>
21
22
#include "Common/File/Path.h"
23
#include "Core/Compatibility.h"
24
25
enum GPUCore {
26
GPUCORE_GLES,
27
GPUCORE_SOFTWARE,
28
GPUCORE_DIRECTX9,
29
GPUCORE_DIRECTX11,
30
GPUCORE_VULKAN,
31
};
32
33
enum class FPSLimit {
34
NORMAL = 0,
35
CUSTOM1 = 1,
36
CUSTOM2 = 2,
37
ANALOG = 3,
38
};
39
40
class FileLoader;
41
42
class GraphicsContext;
43
namespace Draw {
44
class DrawContext;
45
}
46
47
enum class CPUCore;
48
49
// PSP_CoreParameter()
50
struct CoreParameter {
51
CoreParameter() {}
52
53
CPUCore cpuCore;
54
GPUCore gpuCore;
55
56
GraphicsContext *graphicsContext = nullptr; // TODO: Find a better place.
57
bool enableSound; // there aren't multiple sound cores.
58
59
Path fileToStart;
60
Path mountIso; // If non-empty, and fileToStart is an ELF or PBP, will mount this ISO in the background to umd1:.
61
Path mountRoot; // If non-empty, and fileToStart is an ELF or PBP, mount this as host0: / umd0:.
62
std::string errorString;
63
64
bool startBreak;
65
std::string *collectDebugOutput = nullptr;
66
bool headLess; // Try to avoid messageboxes etc
67
68
// Internal PSP rendering resolution and scale factor.
69
int renderScaleFactor = 1;
70
int renderWidth;
71
int renderHeight;
72
73
// Actual output resolution in pixels.
74
int pixelWidth;
75
int pixelHeight;
76
77
// Can be modified at runtime.
78
bool fastForward = false;
79
FPSLimit fpsLimit = FPSLimit::NORMAL;
80
int analogFpsLimit = 0;
81
82
bool updateRecent = true;
83
84
// Freeze-frame. For nvidia perfhud profiling. Developers only.
85
bool freezeNext = false;
86
bool frozen = false;
87
88
FileLoader *mountIsoLoader = nullptr;
89
90
Compatibility compat;
91
};
92
93