/
cfg.h
117 lines (111 loc) · 4.35 KB
/
cfg.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
/****************************************************************************/
// Copyright (C) 2009 Aali132 //
// Copyright (C) 2018 quantumpencil //
// Copyright (C) 2018 Maxime Bacoux //
// Copyright (C) 2020 myst6re //
// Copyright (C) 2020 Chris Rizzitello //
// Copyright (C) 2020 John Pritchard //
// Copyright (C) 2021 Julian Xhokaxhiu //
// Copyright (C) 2021 Cosmos //
// //
// This file is part of FFNx //
// //
// FFNx 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, either version 3 of the License //
// //
// FFNx 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 for more details. //
/****************************************************************************/
#pragma once
#include <string>
#include <vector>
#include "log.h"
#define RENDERER_BACKEND_AUTO 0
#define RENDERER_BACKEND_OPENGL 1
#define RENDERER_BACKEND_DIRECT3D9 2
#define RENDERER_BACKEND_DIRECT3D11 3
#define RENDERER_BACKEND_DIRECT3D12 4
#define RENDERER_BACKEND_VULKAN 5
#define FF7_LIMITER_ORIGINAL 0
#define FF7_LIMITER_DEFAULT 1
#define FF7_LIMITER_30FPS 2
#define FF7_LIMITER_60FPS 3
extern std::string mod_path;
extern std::vector<std::string> mod_ext;
extern long enable_ffmpeg_videos;
extern std::string ffmpeg_video_ext;
extern bool use_external_sfx;
extern std::string external_sfx_path;
extern std::vector<std::string> external_sfx_ext;
extern bool use_external_music;
extern bool external_music_resume;
extern std::string external_music_path;
extern std::vector<std::string> external_music_ext;
extern std::string he_bios_path;
extern std::string external_voice_path;
extern std::vector<std::string> external_voice_ext;
extern std::string external_ambient_path;
extern std::vector<std::string> external_ambient_ext;
extern bool enable_voice_music_fade;
extern long external_voice_music_fade_volume;
extern bool save_textures;
extern bool trace_all;
extern bool trace_renderer;
extern bool trace_movies;
extern bool trace_music;
extern bool trace_sfx;
extern bool trace_fake_dx;
extern bool trace_direct;
extern bool trace_files;
extern bool trace_loaders;
extern bool trace_lights;
extern bool trace_opcodes;
extern bool trace_voice;
extern bool trace_ambient;
extern bool trace_gamepad;
extern bool vertex_log;
extern bool uniform_log;
extern bool show_renderer_backend;
extern bool show_fps;
extern bool show_stats;
extern bool show_version;
extern long window_size_x;
extern long window_size_y;
extern long internal_resolution_scale;
extern bool preserve_aspect;
extern bool fullscreen;
extern long refresh_rate;
extern bool enable_vsync;
extern bool mdef_fix;
extern long enable_antialiasing;
extern bool enable_anisotropic;
extern bool enable_lighting;
extern bool prefer_lighting_cpu_calculations;
extern bool skip_frames;
extern bool ff7_more_debug;
extern bool ff8_ssigpu_debug;
extern bool show_applog;
extern bool show_missing_textures;
extern bool show_error_popup;
extern bool movie_sync_debug;
extern long renderer_backend;
extern bool renderer_debug;
extern bool create_crash_dump;
extern std::string steam_game_userdata;
extern std::string hext_patching_path;
extern std::string override_path;
extern std::string direct_mode_path;
extern std::string save_path;
extern bool enable_devtools;
extern long devtools_hotkey;
extern double speedhack_step;
extern double speedhack_max;
extern double speedhack_min;
extern bool enable_animated_textures;
extern long ff7_fps_limiter;
extern bool ff7_footsteps;
extern bool enable_analogue_controls;
void read_cfg();