From: TimePath Date: Thu, 29 Jan 2015 03:44:56 +0000 (+1100) Subject: Clean up MENUQC #includes X-Git-Tag: xonotic-v0.8.1~133^2~16 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=13a3ce5cdf01a322755b2f0e74d168cd5247d789;p=xonotic%2Fxonotic-data.pk3dir.git Clean up MENUQC #includes --- diff --git a/qcsrc/common/command/generic.qc b/qcsrc/common/command/generic.qc index a5181ccba..931e2f679 100644 --- a/qcsrc/common/command/generic.qc +++ b/qcsrc/common/command/generic.qc @@ -1,29 +1,5 @@ -#if defined(CSQC) - #include "../../dpdefs/csprogsdefs.qh" - #include "../constants.qh" - #include "../util.qh" - #include "../mapinfo.qh" - #include "generic.qh" - #include "shared_defs.qh" - #include "../../client/command/cl_cmd.qh" - #include "../notifications.qh" -#elif defined(MENUQC) -#elif defined(SVQC) - #include "../../dpdefs/progsdefs.qh" - #include "../../dpdefs/dpextensions.qh" - #include "../constants.qh" - #include "../util.qh" - #include "../test.qh" - #include "generic.qh" - #include "shared_defs.qh" - #include "../weapons/config.qh" - #include "../notifications.qh" - #include "../mapinfo.qh" - #include "../../server/command/common.qh" - #include "../../server/command/banning.qh" - #include "../../server/command/cmd.qh" - #include "../../server/command/sv_cmd.qh" -#endif +#include "generic.qh" +#include "shared_defs.qh" // ========================================================= // Generic program common command code, written by Samual diff --git a/qcsrc/common/monsters/monsters.qc b/qcsrc/common/monsters/monsters.qc index 61f2f7c1e..096c2e5ea 100644 --- a/qcsrc/common/monsters/monsters.qc +++ b/qcsrc/common/monsters/monsters.qc @@ -1,25 +1,5 @@ -#if defined(CSQC) - #include "../../dpdefs/csprogsdefs.qh" - #include "../weapons/weapons.qh" - #include "monsters.qh" -#elif defined(MENUQC) -#elif defined(SVQC) - #include "../../dpdefs/progsdefs.qh" - #include "../../dpdefs/dpextensions.qh" - #include "../../warpzonelib/server.qh" - #include "../constants.qh" - #include "../util.qh" - #include "monsters.qh" - #include "sv_monsters.qh" - #include "../weapons/weapons.qh" - #include "../../server/t_items.qh" - #include "../../server/autocvars.qh" - #include "../../server/constants.qh" - #include "../../server/defs.qh" - #include "../deathtypes.qh" - #include "../../server/mutators/mutators_include.qh" - #include "../../csqcmodellib/sv_model.qh" -#endif +#include "monsters.qh" + #include "all.qh" // MONSTER PLUGIN SYSTEM diff --git a/qcsrc/menu/anim/animhost.qc b/qcsrc/menu/anim/animhost.qc index ae84e0957..c46334d53 100644 --- a/qcsrc/menu/anim/animhost.qc +++ b/qcsrc/menu/anim/animhost.qc @@ -1,3 +1,5 @@ +#include "../menu.qh" + #ifdef INTERFACE CLASS(AnimHost) EXTENDS(Object) METHOD(AnimHost, addAnim, void(entity, entity)) diff --git a/qcsrc/menu/command/menu_cmd.qc b/qcsrc/menu/command/menu_cmd.qc index 0f8d83ce5..bc044a2aa 100644 --- a/qcsrc/menu/command/menu_cmd.qc +++ b/qcsrc/menu/command/menu_cmd.qc @@ -1,12 +1,6 @@ -#if defined(CSQC) -#elif defined(MENUQC) - #include "../../dpdefs/menudefs.qh" - #include "../../common/util.qh" - #include "../oo/base.qh" - #include "menu_cmd.qh" - #include "../menu.qh" -#elif defined(SVQC) -#endif +#include "menu_cmd.qh" + +#include "../../common/command/generic.qh" string _dumptree_space; void _dumptree_open(entity pass, entity me) diff --git a/qcsrc/menu/config.qh b/qcsrc/menu/config.qh deleted file mode 100644 index 86203cfdd..000000000 --- a/qcsrc/menu/config.qh +++ /dev/null @@ -1,4 +0,0 @@ -#ifndef CONFIG_H -#define CONFIG_H - -#endif \ No newline at end of file diff --git a/qcsrc/menu/menu.qh b/qcsrc/menu/menu.qh index 47b2ed9dd..4ff32361e 100644 --- a/qcsrc/menu/menu.qh +++ b/qcsrc/menu/menu.qh @@ -1,6 +1,17 @@ #ifndef MENU_H #define MENU_H +#include "draw.qh" +#include "skin.qh" + +#include "oo/base.qh" + +#include "xonotic/util.qh" + +#include "../common/constants.qh" +#include "../common/test.qh" +#include "../common/util.qh" + #define localcmd cmd #define NULL (null_entity) diff --git a/qcsrc/menu/progs.src b/qcsrc/menu/progs.src index 1f0aa1c68..dc74a02ce 100644 --- a/qcsrc/menu/progs.src +++ b/qcsrc/menu/progs.src @@ -6,55 +6,32 @@ sys-pre.qh ../dpdefs/keycodes.qh sys-post.qh -config.qh - -../warpzonelib/mathlib.qh -../common/util.qh -../common/test.qh - -oo/base.qh - -../common/playerstats.qh -../common/teams.qh -../common/constants.qh -../common/mapinfo.qh -../common/campaign_common.qh -../common/weapons/weapons.qh // TODO -../common/counting.qh -../common/command/markup.qh -../common/command/rpn.qh -../common/command/generic.qh -../common/command/shared_defs.qh -../common/urllib.qh -../common/monsters/monsters.qh - -command/menu_cmd.qh -menu.qh -draw.qh -skin.qh -xonotic/util.qh - oo/interface.qh classes.qc oo/implementation.qh classes.qc -../common/util.qc -../common/test.qc -../common/playerstats.qc -../common/command/markup.qc -../common/command/rpn.qc -../common/command/generic.qc -command/menu_cmd.qc -menu.qc draw.qc +menu.qc + +command/menu_cmd.qc + xonotic/util.qc ../common/campaign_file.qc ../common/campaign_setup.qc ../common/mapinfo.qc -../common/weapons/weapons.qc // TODO +../common/playerstats.qc +../common/test.qc ../common/urllib.qc +../common/util.qc + +../common/command/generic.qc +../common/command/markup.qc +../common/command/rpn.qc + ../common/monsters/monsters.qc -../warpzonelib/mathlib.qc +../common/weapons/weapons.qc // TODO + +../warpzonelib/mathlib.qc \ No newline at end of file diff --git a/qcsrc/menu/xonotic/campaign.qc b/qcsrc/menu/xonotic/campaign.qc index 75844340e..885c89183 100644 --- a/qcsrc/menu/xonotic/campaign.qc +++ b/qcsrc/menu/xonotic/campaign.qc @@ -1,3 +1,5 @@ +#include "../../common/campaign_common.qh" + #ifdef INTERFACE CLASS(XonoticCampaignList) EXTENDS(XonoticListBox) METHOD(XonoticCampaignList, configureXonoticCampaignList, void(entity)) diff --git a/qcsrc/menu/xonotic/dialog_multiplayer_create_mutators.qc b/qcsrc/menu/xonotic/dialog_multiplayer_create_mutators.qc index 6bca47f05..d7825e06a 100644 --- a/qcsrc/menu/xonotic/dialog_multiplayer_create_mutators.qc +++ b/qcsrc/menu/xonotic/dialog_multiplayer_create_mutators.qc @@ -1,3 +1,5 @@ +#include "../../common/weapons/weapons.qh" + #ifdef INTERFACE CLASS(XonoticMutatorsDialog) EXTENDS(XonoticDialog) METHOD(XonoticMutatorsDialog, toString, string(entity)) diff --git a/qcsrc/menu/xonotic/dialog_multiplayer_join_serverinfo.qc b/qcsrc/menu/xonotic/dialog_multiplayer_join_serverinfo.qc index fa5e30682..dabb1be54 100644 --- a/qcsrc/menu/xonotic/dialog_multiplayer_join_serverinfo.qc +++ b/qcsrc/menu/xonotic/dialog_multiplayer_join_serverinfo.qc @@ -1,3 +1,5 @@ +#include "../../common/mapinfo.qh" + #ifdef INTERFACE CLASS(XonoticServerInfoDialog) EXTENDS(XonoticDialog) METHOD(XonoticServerInfoDialog, fill, void(entity)) diff --git a/qcsrc/menu/xonotic/slider_decibels.qc b/qcsrc/menu/xonotic/slider_decibels.qc index bf847e312..07632320e 100644 --- a/qcsrc/menu/xonotic/slider_decibels.qc +++ b/qcsrc/menu/xonotic/slider_decibels.qc @@ -1,3 +1,5 @@ +#include "../../warpzonelib/mathlib.qh" + #ifdef INTERFACE CLASS(XonoticDecibelsSlider) EXTENDS(XonoticSlider) METHOD(XonoticDecibelsSlider, loadCvars, void(entity)) diff --git a/qcsrc/menu/xonotic/statslist.qc b/qcsrc/menu/xonotic/statslist.qc index 68f951218..f80e8ffa0 100644 --- a/qcsrc/menu/xonotic/statslist.qc +++ b/qcsrc/menu/xonotic/statslist.qc @@ -1,3 +1,6 @@ +#include "../../common/counting.qh" +#include "../../common/playerstats.qh" + #ifdef INTERFACE CLASS(XonoticStatsList) EXTENDS(XonoticListBox) METHOD(XonoticStatsList, configureXonoticStatsList, void(entity)) diff --git a/qcsrc/menu/xonotic/util.qc b/qcsrc/menu/xonotic/util.qc index f7e8a41a6..0eb5b215c 100644 --- a/qcsrc/menu/xonotic/util.qc +++ b/qcsrc/menu/xonotic/util.qc @@ -1,7 +1,4 @@ -#if defined(CSQC) -#elif defined(MENUQC) -#elif defined(SVQC) -#endif +#include "../../common/urllib.qh" float GL_CheckExtension(string ext) {