[Scummvm-git-logs] scummvm master -> da28e469298fae05ef744a6efd2885b9172e5cd1

sev- noreply at scummvm.org
Fri Jun 14 12:31:03 UTC 2024


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
da28e46929 GUI: Do not attempt to compile IntegrityDialog when libcurl is not available


Commit: da28e469298fae05ef744a6efd2885b9172e5cd1
    https://github.com/scummvm/scummvm/commit/da28e469298fae05ef744a6efd2885b9172e5cd1
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2024-06-14T14:30:51+02:00

Commit Message:
GUI: Do not attempt to compile IntegrityDialog when libcurl is not available

Changed paths:
    gui/editgamedialog.cpp
    gui/module.mk


diff --git a/gui/editgamedialog.cpp b/gui/editgamedialog.cpp
index 4e55d54effa..01314f47560 100644
--- a/gui/editgamedialog.cpp
+++ b/gui/editgamedialog.cpp
@@ -284,9 +284,11 @@ EditGameDialog::EditGameDialog(const Common::String &domain)
 	// These buttons have to be extra wide, or the text will be truncated
 	// in the small version of the GUI.
 
+#ifdef USE_LIBCURL
 	// GUI: Check integrity button
 	if (ConfMan.hasKey("enable_integrity_checking", Common::ConfigManager::kApplicationDomain))
 		new ButtonWidget(tab, "GameOptions_Paths.Checkintegrity", _("Check Integrity"), _("Perform integrity check for all game files"), kCmdCheckIntegrity);
+#endif
 
 	// GUI:  Button + Label for the game path
 	if (!g_gui.useLowResGUI())
diff --git a/gui/module.mk b/gui/module.mk
index 1a969b8f033..a60da0ae136 100644
--- a/gui/module.mk
+++ b/gui/module.mk
@@ -9,7 +9,6 @@ MODULE_OBJS := \
 	dialog.o \
 	dump-all-dialogs.o \
 	editgamedialog.o \
-	integrity-dialog.o \
 	error.o \
 	EventRecorder.o \
 	filebrowser-dialog.o \
@@ -49,14 +48,17 @@ MODULE_OBJS := \
 	widgets/scrollcontainer.o \
 	widgets/tab.o
 
-ifdef USE_CLOUD
 ifdef USE_LIBCURL
+ifdef USE_CLOUD
 MODULE_OBJS += \
 	cloudconnectionwizard.o \
 	downloaddialog.o \
 	downloadpacksdialog.o \
 	remotebrowser.o
 endif
+
+MODULE_OBJS += \
+	integrity-dialog.o
 endif
 
 ifdef USE_DLC




More information about the Scummvm-git-logs mailing list