Skip to content

Commit

Permalink
Activate the assert suppression
Browse files Browse the repository at this point in the history
  • Loading branch information
FrogTheFrog authored Dec 20, 2023
1 parent 78b41d4 commit 2a1f936
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ int main(int argc, char** argv)
std::cout << " frltoggle 60 --save-previous sets the FPS limit to 60 and saves the previous value to a file." << std::endl;
std::cout << " frltoggle 60 --save-previous-or-reuse sets the FPS limit to 60 and saves the previous value to a file." << std::endl <<
" If the file already exists, its value will be validated and reused instead." << std::endl;
" This is useful in case the system has crashed and we want to reuse the value from before the crash." << std::endl;
std::cout << " frltoggle load-file loads the value from file (e.g., saved using \"--save-previous\") and uses it to set FRL." << std::endl <<
" File is removed afterwards if no errors occur." << std::endl;
std::cout << std::endl;
Expand Down Expand Up @@ -271,7 +272,7 @@ int main(int argc, char** argv)
}
case SetFpsOption::SaveOption::SavePreviousAndReuse:
{
const auto fps_value{read_fps_from_file(fps_filename)};
const auto fps_value{read_fps_from_file(fps_filename, true)};
if (!fps_value)
{
save_to_file(fps_filename, drs_setting.u32CurrentValue);
Expand Down

0 comments on commit 2a1f936

Please sign in to comment.