mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
35 lines
809 B
C++
35 lines
809 B
C++
#pragma once
|
|
|
|
#include "Utilities/Config.h"
|
|
|
|
struct cfg_camera final : cfg::node
|
|
{
|
|
cfg_camera();
|
|
bool load();
|
|
void save() const;
|
|
|
|
struct camera_setting
|
|
{
|
|
int width = 0;
|
|
int height = 0;
|
|
double min_fps = 0;
|
|
double max_fps = 0;
|
|
int format = 0;
|
|
int pixel_aspect_width = 0;
|
|
int pixel_aspect_height = 0;
|
|
|
|
static const u32 member_count = 7;
|
|
|
|
std::string to_string() const;
|
|
void from_string(const std::string& text);
|
|
};
|
|
camera_setting get_camera_setting(const std::string& camera, bool& success);
|
|
void set_camera_setting(const std::string& camera, const camera_setting& setting);
|
|
|
|
const std::string path;
|
|
|
|
cfg::map_entry cameras{ this, "Cameras" }; // <camera>: <width>,<height>,<min_fps>,<max_fps>,<format>,<pixel_aspect_width>,<pixel_aspect_height>
|
|
};
|
|
|
|
extern cfg_camera g_cfg_camera;
|