X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fgamesettings.qh;h=291b55b27aefff385e756c294ffcfc9a4b4067a9;hb=7a46019af3dd728d31c44c8d40acc57ba1bd4f2f;hp=cf0916ce9c6168cba438831b1a2bbc2641e564d1;hpb=9dd43f196ca7bc0979f94a0fb0f87cdd82a951c7;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/gamesettings.qh b/qcsrc/menu/gamesettings.qh index cf0916ce9..291b55b27 100644 --- a/qcsrc/menu/gamesettings.qh +++ b/qcsrc/menu/gamesettings.qh @@ -1,14 +1,15 @@ +#pragma once + #ifdef MENUQC -#ifndef GAMESETTINGS_H -#define GAMESETTINGS_H -#include "xonotic/tab.qc" +#include "xonotic/tab.qh" + +REGISTRY(Settings, BITS(3)) +REGISTER_REGISTRY(Settings) -REGISTRY(Settings, BIT(3)) -REGISTER_REGISTRY(RegisterSettings) +REGISTRY_DEFINE_GET(Settings, NULL) #define REGISTER_SETTINGS(id, impl) \ LAZY_NEW(id, impl) \ - REGISTER(RegisterSettings, MENU, Settings, id, m_id, NEW(Lazy, LAZY(id))) + REGISTER(Settings, MENU, id, m_id, NEW(Lazy, LAZY(id))) #endif -#endif