From 4200f0ca59815dd046b1bc5e44b50f460b4c3de0 Mon Sep 17 00:00:00 2001 From: Benau Date: Thu, 8 Aug 2019 16:38:53 +0800 Subject: [PATCH] Allow install full game assets from stk server --- data/gui/screens/options_general.stkgui | 5 + data/stk_config.xml | 2 +- sources.cmake | 2 +- src/io/file_manager.cpp | 4 +- .../dialogs/download_assets.cpp | 264 ++++++++++++++++++ .../dialogs/download_assets.hpp | 58 ++++ src/states_screens/download_assets.cpp | 228 --------------- src/states_screens/download_assets.hpp | 85 ------ .../options/options_screen_general.cpp | 44 +++ src/utils/download_assets_size.hpp | 15 +- src/utils/extract_mobile_assets.cpp | 23 +- src/utils/extract_mobile_assets.hpp | 2 + 12 files changed, 401 insertions(+), 331 deletions(-) create mode 100644 src/states_screens/dialogs/download_assets.cpp create mode 100644 src/states_screens/dialogs/download_assets.hpp delete mode 100644 src/states_screens/download_assets.cpp delete mode 100644 src/states_screens/download_assets.hpp diff --git a/data/gui/screens/options_general.stkgui b/data/gui/screens/options_general.stkgui index d5d859c43..6d5a8a68e 100644 --- a/data/gui/screens/options_general.stkgui +++ b/data/gui/screens/options_general.stkgui @@ -86,6 +86,11 @@ +
+ +
+ diff --git a/data/stk_config.xml b/data/stk_config.xml index e39fd34fa..ce4dcaae6 100644 --- a/data/stk_config.xml +++ b/data/stk_config.xml @@ -178,7 +178,7 @@ + assets-download="https://github.com/supertuxkart/stk-assets-mobile/releases/download/"/>