From 1900c867aaa732f67c1ea0439039f62048bd09f1 Mon Sep 17 00:00:00 2001 From: tiff Date: Thu, 17 Jul 2025 22:28:46 +0000 Subject: [PATCH] Add download link if data.zip is missing --- desktop_version/src/FileSystemUtils.cpp | 36 +++++++++++++++++++------ 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/desktop_version/src/FileSystemUtils.cpp b/desktop_version/src/FileSystemUtils.cpp index beb41917..a544c2a0 100644 --- a/desktop_version/src/FileSystemUtils.cpp +++ b/desktop_version/src/FileSystemUtils.cpp @@ -333,15 +333,35 @@ int FILESYSTEM_init(char *argvZero, char* baseDir, char *assetsPath, char* langD vlog_error("You do not have data.zip!"); vlog_error("Grab it from your purchased copy of the game,"); vlog_error("or get it from the free Make and Play Edition."); + vlog_error("https://thelettervsixtim.es/makeandplay/"); + + SDL_MessageBoxData messagebox; + messagebox.flags = SDL_MESSAGEBOX_ERROR; + messagebox.window = NULL; + messagebox.title = "data.zip missing!"; + messagebox.message = "You do not have data.zip!" + "\n\nGrab it from your purchased copy of the game," + "\nor get it from the free Make and Play Edition."; + + messagebox.numbuttons = 2; + SDL_MessageBoxButtonData buttons[2]; + buttons[0].flags = SDL_MESSAGEBOX_BUTTON_RETURNKEY_DEFAULT; + buttons[0].flags |= SDL_MESSAGEBOX_BUTTON_ESCAPEKEY_DEFAULT; + buttons[0].buttonid = 0; + buttons[0].text = "OK"; + buttons[1].flags = 0; + buttons[1].buttonid = 1; + buttons[1].text = "Open Download Page"; + messagebox.buttons = buttons; + messagebox.colorScheme = NULL; + + int clicked = 0; + SDL_ShowMessageBox(&messagebox, &clicked); + if (clicked == 1) + { + SDL_OpenURL("https://thelettervsixtim.es/makeandplay/"); + } - SDL_ShowSimpleMessageBox( - SDL_MESSAGEBOX_ERROR, - "data.zip missing!", - "You do not have data.zip!" - "\n\nGrab it from your purchased copy of the game," - "\nor get it from the free Make and Play Edition.", - NULL - ); VVV_exit(1); return 0; }