summaryrefslogtreecommitdiffstats
path: root/src/game/client/screenshot.cc
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-12-26 14:50:33 +0500
committeruntodesu <kirill@untode.su>2025-12-26 14:50:33 +0500
commit6c2abde5c99a236453b795abaa6d7d70105e31f7 (patch)
treef085049b9615a7d03cca5de40adb6529d6c13e11 /src/game/client/screenshot.cc
parentf40d09cb8f712e87691af4912f3630d92d692779 (diff)
downloadvoxelius-6c2abde5c99a236453b795abaa6d7d70105e31f7.tar.bz2
voxelius-6c2abde5c99a236453b795abaa6d7d70105e31f7.zip
Just a big Ctrl+H refactoring
Diffstat (limited to 'src/game/client/screenshot.cc')
-rw-r--r--src/game/client/screenshot.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/client/screenshot.cc b/src/game/client/screenshot.cc
index 9b573ef..d704f47 100644
--- a/src/game/client/screenshot.cc
+++ b/src/game/client/screenshot.cc
@@ -24,7 +24,7 @@ static void stbi_png_physfs_callback(void* context, void* data, int size)
PHYSFS_writeBytes(reinterpret_cast<PHYSFS_File*>(context), data, size);
}
-static void on_glfw_key(const io::GlfwKeyEvent& event)
+static void on_glfw_key(const GlfwKeyEvent& event)
{
if(!globals::gui_keybind_ptr && !toggles::is_sequence_await) {
if(screenshot_key.equals(event.key) && (event.action == GLFW_PRESS)) {
@@ -40,7 +40,7 @@ void screenshot::init(void)
settings::add_keybind(0, screenshot_key, settings_location::KEYBOARD_MISC, "key.screenshot");
- globals::dispatcher.sink<io::GlfwKeyEvent>().connect<&on_glfw_key>();
+ globals::dispatcher.sink<GlfwKeyEvent>().connect<&on_glfw_key>();
}
void screenshot::take(void)
@@ -77,7 +77,7 @@ void screenshot::take(void)
spdlog::info("screenshot: wrote {}", filepath);
- gui::client_chat::print(std::format("{} {}", gui::language::resolve("chat.screenshot_message"), filename));
+ client_chat::print(std::format("{} {}", language::resolve("chat.screenshot_message"), filename));
PHYSFS_close(file);
}