Skip to content

Commit

Permalink
Fixed updater for newer versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Rex109 committed Mar 30, 2024
1 parent 760be0c commit 8ef54f1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions cod4qol/updater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ void updater::Update()
if(download_url.empty())
return;

commands::qol_forceiwdextract->current.enabled = true;
commands::qol_forceiwdextract->latched.enabled = true;

std::filesystem::create_directory("download");

curl_global_init(CURL_GLOBAL_ALL);
Expand Down
Binary file modified mod/cod4qol/mod.ff
Binary file not shown.
2 changes: 1 addition & 1 deletion mod/cod4qol/ui/quit.menu
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
CHOICE_BUTTON_VIS( 4, "@MENU_NO", close self, when(dvarInt("qol_dialog") == 0) )

CHOICE_POPMENU_TITLE_VIS_EXTR( "A new version of CoD4QOL is available. Do you want to install it?", when(dvarInt("qol_dialog") == 1), 0.32)
CHOICE_BUTTON_VIS( 3, "@MENU_YES", exec "updatecod4qol";, when(dvarInt("qol_dialog") == 1))
CHOICE_BUTTON_VIS( 3, "@MENU_YES", exec "set qol_forceiwdextract 1; wait 10; updatecod4qol";, when(dvarInt("qol_dialog") == 1))
CHOICE_BUTTON_VIS( 4, "@MENU_NO", close self;, when(dvarInt("qol_dialog") == 1))

CHOICE_POPMENU_TITLE_VIS_EXTR( "Are you sure you want to delete the selected demo?", when(dvarInt("qol_dialog") == 2), 0.32)
Expand Down

0 comments on commit 8ef54f1

Please sign in to comment.