mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2025-03-28 14:56:24 +01:00
Merge pull request #174 from rcyggdra/overlay
Add FPS option control for overlay
This commit is contained in:
commit
6fc33cec03
5 changed files with 33 additions and 1 deletions
|
@ -343,6 +343,10 @@ public:
|
|||
bool auto_accept_any_overlay_invites = false;
|
||||
// list of user steam IDs to auto-accept invites from
|
||||
std::set<uint64_t> auto_accept_overlay_invites_friends{};
|
||||
bool overlay_always_show_user_info = false;
|
||||
bool overlay_always_show_fps = false;
|
||||
bool overlay_always_show_frametime = false;
|
||||
bool overlay_always_show_playtime = false;
|
||||
|
||||
|
||||
#ifdef LOBBY_CONNECT
|
||||
|
|
|
@ -1416,6 +1416,18 @@ static void parse_overlay_general_config(class Settings *settings_client, class
|
|||
settings_client->overlay_upload_achs_icons_to_gpu = ini.GetBoolValue("overlay::general", "upload_achievements_icons_to_gpu", settings_client->overlay_upload_achs_icons_to_gpu);
|
||||
settings_server->overlay_upload_achs_icons_to_gpu = ini.GetBoolValue("overlay::general", "upload_achievements_icons_to_gpu", settings_server->overlay_upload_achs_icons_to_gpu);
|
||||
|
||||
settings_client->overlay_always_show_user_info = ini.GetBoolValue("overlay::general", "overlay_always_show_user_info", settings_client->overlay_always_show_user_info);
|
||||
settings_server->overlay_always_show_user_info = ini.GetBoolValue("overlay::general", "overlay_always_show_user_info", settings_server->overlay_always_show_user_info);
|
||||
|
||||
settings_client->overlay_always_show_fps = ini.GetBoolValue("overlay::general", "overlay_always_show_fps", settings_client->overlay_always_show_fps);
|
||||
settings_server->overlay_always_show_fps = ini.GetBoolValue("overlay::general", "overlay_always_show_fps", settings_server->overlay_always_show_fps);
|
||||
|
||||
settings_client->overlay_always_show_frametime = ini.GetBoolValue("overlay::general", "overlay_always_show_frametime", settings_client->overlay_always_show_frametime);
|
||||
settings_server->overlay_always_show_frametime = ini.GetBoolValue("overlay::general", "overlay_always_show_frametime", settings_server->overlay_always_show_frametime);
|
||||
|
||||
settings_client->overlay_always_show_playtime = ini.GetBoolValue("overlay::general", "overlay_always_show_playtime", settings_client->overlay_always_show_playtime);
|
||||
settings_server->overlay_always_show_playtime = ini.GetBoolValue("overlay::general", "overlay_always_show_playtime", settings_server->overlay_always_show_playtime);
|
||||
|
||||
{
|
||||
auto val = ini.GetLongValue("overlay::general", "fps_averaging_window", settings_client->overlay_fps_avg_window);
|
||||
if (val > 0) {
|
||||
|
|
|
@ -138,6 +138,8 @@ Steam_Overlay::Steam_Overlay(Settings* settings, Local_Storage *local_storage, S
|
|||
current_language = 0;
|
||||
const char *language = settings->get_language();
|
||||
|
||||
show_user_info = settings->overlay_always_show_user_info;
|
||||
|
||||
int i = 0;
|
||||
for (auto &lang : valid_languages) {
|
||||
if (common_helpers::str_cmp_insensitive(lang, language)) {
|
||||
|
|
|
@ -7,7 +7,9 @@
|
|||
Steam_Overlay_Stats::Steam_Overlay_Stats(class Settings* settings):
|
||||
settings(settings)
|
||||
{
|
||||
|
||||
show_fps = settings->overlay_always_show_fps;
|
||||
show_frametime = settings->overlay_always_show_frametime;
|
||||
show_playtime = settings->overlay_always_show_playtime;
|
||||
}
|
||||
|
||||
bool Steam_Overlay_Stats::show_any_stats() const
|
||||
|
|
|
@ -50,6 +50,18 @@ upload_achievements_icons_to_gpu=1
|
|||
# minimum allowed value = 1
|
||||
# default=10
|
||||
fps_averaging_window=10
|
||||
# 1=always show user info in the overlay
|
||||
# default=0
|
||||
overlay_always_show_user_info=0
|
||||
# 1=always show fps in the overlay
|
||||
# default=0
|
||||
overlay_always_show_fps=0
|
||||
# 1=always show frametime in the overlay
|
||||
# default=0
|
||||
overlay_always_show_frametime=0
|
||||
# 1=always show playtime in the overlay
|
||||
# default=0
|
||||
overlay_always_show_playtime=0
|
||||
|
||||
[overlay::appearance]
|
||||
# load custom TrueType font from a path, it could be absolute, or relative
|
||||
|
|
Loading…
Add table
Reference in a new issue