Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hrydgard
GitHub Repository: hrydgard/ppsspp
Path: blob/master/Core/CoreParameter.h
3185 views
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
#include "Core/Loaders.h"
25
26
enum GPUCore : int {
27
GPUCORE_GLES = 0,
28
GPUCORE_SOFTWARE = 1,
29
GPUCORE_DIRECTX11 = 3,
30
GPUCORE_VULKAN = 4,
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
CPUCore cpuCore;
52
GPUCore gpuCore;
53
54
GraphicsContext *graphicsContext = nullptr; // TODO: Find a better place.
55
bool enableSound = true; // there aren't multiple sound cores.
56
57
Path fileToStart;
58
Path mountIso; // If non-empty, and fileToStart is an ELF or PBP, will mount this ISO in the background to umd1:.
59
Path mountRoot; // If non-empty, and fileToStart is an ELF or PBP, mount this as host0: / umd0:.
60
std::string errorString;
61
62
bool startBreak = false;
63
std::string *collectDebugOutput = nullptr;
64
bool headLess = false; // Try to avoid messageboxes etc
65
66
// Internal PSP rendering resolution and scale factor.
67
int renderScaleFactor = 1;
68
int renderWidth = 0;
69
int renderHeight = 0;
70
71
// Actual output resolution in pixels.
72
int pixelWidth = 0;
73
int pixelHeight = 0;
74
75
// Can be modified at runtime. Do not belong here.
76
bool fastForward = false;
77
FPSLimit fpsLimit = FPSLimit::NORMAL;
78
int analogFpsLimit = 0;
79
80
bool updateRecent = true;
81
82
// Freeze-frame. For nvidia perfhud profiling. Developers only.
83
bool freezeNext = false;
84
bool frozen = false;
85
86
FileLoader *mountIsoLoader = nullptr;
87
IdentifiedFileType fileType = IdentifiedFileType::UNKNOWN;
88
89
Compatibility compat;
90
};
91
92