From 9ea67deb13ec3f90162eaed9a83745b9696aa947 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Mon, 6 May 2024 00:45:43 +0300 Subject: [PATCH] 'ifnot' template property + hpp --- res/layouts/pages/content.xml.lua | 1 - res/layouts/templates/pack.xml | 2 +- src/assets/Assets.cpp | 4 +-- src/assets/AssetsLoader.cpp | 12 +++---- src/assets/assetload_funcs.cpp | 7 ++-- ...{assetload_funcs.h => assetload_funcs.hpp} | 6 ++-- src/audio/AL/ALAudio.cpp | 9 ++--- src/audio/AL/{ALAudio.h => ALAudio.hpp} | 12 +++---- src/audio/AL/alutil.cpp | 2 +- src/audio/AL/{alutil.h => alutil.hpp} | 9 ++--- src/audio/NoAudio.cpp | 2 +- src/audio/{NoAudio.h => NoAudio.hpp} | 8 ++--- src/audio/audio.cpp | 14 ++++---- src/audio/{audio.h => audio.hpp} | 9 ++--- src/coders/ogg.cpp | 14 ++++---- src/coders/{ogg.h => ogg.hpp} | 6 ++-- src/coders/wav.cpp | 6 ++-- src/coders/{wav.h => wav.hpp} | 6 ++-- src/coders/xml.cpp | 5 +-- src/coders/{xml.h => xml.hpp} | 6 ++-- src/engine.cpp | 5 +-- src/frontend/ContentGfxCache.cpp | 8 ++--- ...{ContentGfxCache.h => ContentGfxCache.hpp} | 6 ++-- src/frontend/LevelFrontend.cpp | 4 +-- src/frontend/UiDocument.cpp | 2 +- src/frontend/{UiDocument.h => UiDocument.hpp} | 6 ++-- src/frontend/debug_panel.cpp | 10 +++--- src/frontend/hud.cpp | 6 ++-- src/frontend/{hud.h => hud.hpp} | 6 ++-- src/frontend/menu.cpp | 2 +- src/frontend/screens/LevelScreen.cpp | 4 +-- src/graphics/render/BlocksPreview.cpp | 3 +- src/graphics/render/BlocksRenderer.cpp | 3 +- src/graphics/ui/GUI.cpp | 2 +- src/graphics/ui/gui_xml.cpp | 8 +++-- src/graphics/ui/gui_xml.hpp | 6 ++-- src/logic/scripting/lua/LuaState.cpp | 11 +++--- .../lua/{LuaState.h => LuaState.hpp} | 13 +++---- .../scripting/lua/{api_lua.h => api_lua.hpp} | 9 ++--- src/logic/scripting/lua/libaudio.cpp | 8 ++--- src/logic/scripting/lua/libblock.cpp | 6 ++-- src/logic/scripting/lua/libcore.cpp | 6 ++-- src/logic/scripting/lua/libfile.cpp | 4 +-- src/logic/scripting/lua/libgui.cpp | 12 +++---- src/logic/scripting/lua/libhud.cpp | 11 +++--- src/logic/scripting/lua/libinput.cpp | 9 +++-- src/logic/scripting/lua/libinventory.cpp | 7 ++-- src/logic/scripting/lua/libitem.cpp | 4 +-- src/logic/scripting/lua/libjson.cpp | 7 ++-- src/logic/scripting/lua/libpack.cpp | 4 +-- src/logic/scripting/lua/libplayer.cpp | 4 +-- src/logic/scripting/lua/libtime.cpp | 4 +-- src/logic/scripting/lua/libworld.cpp | 4 +-- .../lua/{lua_commons.h => lua_commons.hpp} | 6 ++-- src/logic/scripting/lua/lua_overrides.cpp | 4 +-- .../lua/{lua_util.h => lua_util.hpp} | 3 +- src/logic/scripting/scripting.cpp | 36 +++++++++---------- src/logic/scripting/scripting_functional.cpp | 4 +-- src/logic/scripting/scripting_hud.cpp | 8 ++--- 59 files changed, 204 insertions(+), 201 deletions(-) rename src/assets/{assetload_funcs.h => assetload_funcs.hpp} (92%) rename src/audio/AL/{ALAudio.h => ALAudio.hpp} (97%) rename src/audio/AL/{alutil.h => alutil.hpp} (95%) rename src/audio/{NoAudio.h => NoAudio.hpp} (95%) rename src/audio/{audio.h => audio.hpp} (99%) rename src/coders/{ogg.h => ogg.hpp} (74%) rename src/coders/{wav.h => wav.hpp} (78%) rename src/coders/{xml.h => xml.hpp} (95%) rename src/frontend/{ContentGfxCache.h => ContentGfxCache.hpp} (80%) rename src/frontend/{UiDocument.h => UiDocument.hpp} (88%) rename src/frontend/{hud.h => hud.hpp} (98%) rename src/logic/scripting/lua/{LuaState.h => LuaState.hpp} (94%) rename src/logic/scripting/lua/{api_lua.h => api_lua.hpp} (80%) rename src/logic/scripting/lua/{lua_commons.h => lua_commons.hpp} (85%) rename src/logic/scripting/lua/{lua_util.h => lua_util.hpp} (99%) diff --git a/res/layouts/pages/content.xml.lua b/res/layouts/pages/content.xml.lua index 5c6f5638..2a21d57d 100644 --- a/res/layouts/pages/content.xml.lua +++ b/res/layouts/pages/content.xml.lua @@ -64,7 +64,6 @@ function check_dependencies(packinfo) local depid = dep:sub(2,-1) if dep:sub(1,1) == '!' then if not table.has(packs_all, depid) then - packinfo.description = "" return string.format( "%s (%s)", gui.str("error.dependency-not-found"), depid ) diff --git a/res/layouts/templates/pack.xml b/res/layouts/templates/pack.xml index ffb94518..5eb2f74c 100644 --- a/res/layouts/templates/pack.xml +++ b/res/layouts/templates/pack.xml @@ -8,7 +8,7 @@ %{creator} -