Skip to content

Commit

Permalink
Deprecation message for output_file
Browse files Browse the repository at this point in the history
  • Loading branch information
flightlessmango committed Aug 16, 2020
1 parent f110156 commit 4f64e14
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/overlay_params.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ parse_font_glyph_ranges(const char *str)
#define parse_log_duration(s) parse_unsigned(s)
#define parse_time_format(s) parse_str(s)
#define parse_output_folder(s) parse_path(s)
#define parse_output_file(s) parse_path(s)
#define parse_font_file(s) parse_path(s)
#define parse_font_file_text(s) parse_path(s)
#define parse_io_read(s) parse_unsigned(s)
Expand Down Expand Up @@ -593,5 +594,7 @@ parse_overlay_config(struct overlay_params *params,
main_metadata.meta.valid = false;
}
#endif
if(!params->output_file.empty())
printf("MANGOHUD: output_file is Deprecated, use output_folder instead\n");

}
3 changes: 2 additions & 1 deletion src/overlay_params.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ typedef unsigned long KeySym;
OVERLAY_PARAM_BOOL(wine) \
OVERLAY_PARAM_CUSTOM(fps_sampling_period) \
OVERLAY_PARAM_CUSTOM(output_folder) \
OVERLAY_PARAM_CUSTOM(output_file) \
OVERLAY_PARAM_CUSTOM(font_file) \
OVERLAY_PARAM_CUSTOM(font_file_text) \
OVERLAY_PARAM_CUSTOM(font_glyph_ranges) \
Expand Down Expand Up @@ -171,7 +172,7 @@ struct overlay_params {
std::vector<KeySym> reload_cfg;
std::vector<KeySym> upload_log;
std::vector<KeySym> upload_logs;
std::string time_format, output_folder;
std::string time_format, output_folder, output_file;
std::string pci_dev;
std::string media_player_name;
std::string cpu_text, gpu_text;
Expand Down

0 comments on commit 4f64e14

Please sign in to comment.