diff --git a/.gitmodules b/.gitmodules index 79042f7f..873c5954 100755 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,3 @@ -[submodule "ucccccp"] - path = ucccccp - url = https://github.com/nullworks/ucccccp [submodule "source-sdk-2013-headers"] path = source-sdk-2013-headers url = https://github.com/nullworks/source-sdk-2013-headers @@ -13,3 +10,6 @@ [submodule "simple-ipc"] path = simple-ipc url = https://github.com/nullworks/simple-ipc +[submodule "ucccccp"] + path = ucccccp + url = https://github.com/nullworks/ucccccp.git diff --git a/src/visual/fidgetspinner.cpp b/src/visual/fidgetspinner.cpp index 1b6b3647..8fd9d978 100644 --- a/src/visual/fidgetspinner.cpp +++ b/src/visual/fidgetspinner.cpp @@ -64,6 +64,7 @@ static CatVar spinner_min_speed(CV_FLOAT, "fidgetspinner_min_speed", "2", draw_api::texture_handle_t text{ GLEZ_TEXTURE_INVALID }; +Timer retrytimer{}; void DrawSpinner() { if (not enable_spinner) @@ -96,8 +97,14 @@ void DrawSpinner() const glez_rgba_t color = glez_rgba(255, 255, 255, 255); if (text.handle == GLEZ_TEXTURE_INVALID) - text = draw_api::create_texture(DATA_PATH "/textures/atlas.png"); - + { + if (retrytimer.test_and_set(5000)) + { + logging::Info("Invalid texture, retrying..."); + text = draw_api::create_texture(DATA_PATH "/textures/atlas.png"); + } + return; + } draw_api::draw_rect_textured(draw::width / 2, draw::height / 2, size, size, colors::white, text, 0 + 64 * state, (3 + (v9mode ? 1 : 0)) * 64, 64, 64, angle); diff --git a/ucccccp b/ucccccp index 70ec1ad9..e97ff4ad 160000 --- a/ucccccp +++ b/ucccccp @@ -1 +1 @@ -Subproject commit 70ec1ad99e11d1ea37796de0d69eeb38a8b4a200 +Subproject commit e97ff4ad6fbd69a56156797a99527cc5a69c9e52