mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-12-06 04:04:53 +01:00
Add functions for global flag settings, ...
return width and height for loaded images.
This commit is contained in:
parent
a1ec70d3b0
commit
dfc486dd3b
2 changed files with 56 additions and 9 deletions
|
|
@ -72,8 +72,11 @@ public:
|
|||
int count_files(std::string folder);
|
||||
bool iterate_file(std::string folder, int index, char *output_filename, int32 *output_size);
|
||||
bool file_exists(std::string folder, std::string file);
|
||||
bool data_settings_exists(std::string file);
|
||||
unsigned int file_size(std::string folder, std::string file);
|
||||
unsigned int data_settings_size(std::string file);
|
||||
bool file_delete(std::string folder, std::string file);
|
||||
bool delete_data_settings(std::string file);
|
||||
uint64_t file_timestamp(std::string folder, std::string file);
|
||||
std::string get_global_settings_path();
|
||||
std::string get_path(std::string folder);
|
||||
|
|
@ -84,7 +87,7 @@ public:
|
|||
bool load_json_file(std::string folder, std::string const& file, nlohmann::json& json);
|
||||
bool write_json_file(std::string folder, std::string const& file, nlohmann::json const& json);
|
||||
|
||||
std::vector<image_pixel_t> load_image(std::string const& image_path);
|
||||
std::vector<image_pixel_t> load_image(std::string const& image_path, uint32_t * out_width, uint32_t * out_height);
|
||||
bool save_screenshot(std::string const& image_path, uint8_t* img_ptr, int32_t width, int32_t height, int32_t channels);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue