mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
ACS: include libraries headers before any game headers
This commit is contained in:
parent
d959ac9954
commit
3e9b2e45e5
7 changed files with 70 additions and 70 deletions
|
|
@ -11,6 +11,17 @@
|
||||||
/// \file call-funcs.cpp
|
/// \file call-funcs.cpp
|
||||||
/// \brief Action Code Script: CallFunc instructions
|
/// \brief Action Code Script: CallFunc instructions
|
||||||
|
|
||||||
|
#include <ACSVM/Code.hpp>
|
||||||
|
#include <ACSVM/CodeData.hpp>
|
||||||
|
#include <ACSVM/Environment.hpp>
|
||||||
|
#include <ACSVM/Error.hpp>
|
||||||
|
#include <ACSVM/Module.hpp>
|
||||||
|
#include <ACSVM/Scope.hpp>
|
||||||
|
#include <ACSVM/Script.hpp>
|
||||||
|
#include <ACSVM/Serial.hpp>
|
||||||
|
#include <ACSVM/Thread.hpp>
|
||||||
|
#include <Util/Floats.hpp>
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include "../doomtype.h"
|
#include "../doomtype.h"
|
||||||
#include "../doomdef.h"
|
#include "../doomdef.h"
|
||||||
|
|
@ -38,17 +49,6 @@ extern "C" {
|
||||||
#include "../k_battle.h"
|
#include "../k_battle.h"
|
||||||
}
|
}
|
||||||
|
|
||||||
#include <ACSVM/Code.hpp>
|
|
||||||
#include <ACSVM/CodeData.hpp>
|
|
||||||
#include <ACSVM/Environment.hpp>
|
|
||||||
#include <ACSVM/Error.hpp>
|
|
||||||
#include <ACSVM/Module.hpp>
|
|
||||||
#include <ACSVM/Scope.hpp>
|
|
||||||
#include <ACSVM/Script.hpp>
|
|
||||||
#include <ACSVM/Serial.hpp>
|
|
||||||
#include <ACSVM/Thread.hpp>
|
|
||||||
#include <Util/Floats.hpp>
|
|
||||||
|
|
||||||
#include "call-funcs.hpp"
|
#include "call-funcs.hpp"
|
||||||
|
|
||||||
#include "environment.hpp"
|
#include "environment.hpp"
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,17 @@
|
||||||
/// \file environment.cpp
|
/// \file environment.cpp
|
||||||
/// \brief Action Code Script: Environment definition
|
/// \brief Action Code Script: Environment definition
|
||||||
|
|
||||||
|
#include <ACSVM/Code.hpp>
|
||||||
|
#include <ACSVM/CodeData.hpp>
|
||||||
|
#include <ACSVM/Environment.hpp>
|
||||||
|
#include <ACSVM/Error.hpp>
|
||||||
|
#include <ACSVM/Module.hpp>
|
||||||
|
#include <ACSVM/Scope.hpp>
|
||||||
|
#include <ACSVM/Script.hpp>
|
||||||
|
#include <ACSVM/Serial.hpp>
|
||||||
|
#include <ACSVM/Thread.hpp>
|
||||||
|
#include <Util/Floats.hpp>
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include "../doomtype.h"
|
#include "../doomtype.h"
|
||||||
#include "../doomdef.h"
|
#include "../doomdef.h"
|
||||||
|
|
@ -24,17 +35,6 @@ extern "C" {
|
||||||
#include "../z_zone.h"
|
#include "../z_zone.h"
|
||||||
}
|
}
|
||||||
|
|
||||||
#include <ACSVM/Code.hpp>
|
|
||||||
#include <ACSVM/CodeData.hpp>
|
|
||||||
#include <ACSVM/Environment.hpp>
|
|
||||||
#include <ACSVM/Error.hpp>
|
|
||||||
#include <ACSVM/Module.hpp>
|
|
||||||
#include <ACSVM/Scope.hpp>
|
|
||||||
#include <ACSVM/Script.hpp>
|
|
||||||
#include <ACSVM/Serial.hpp>
|
|
||||||
#include <ACSVM/Thread.hpp>
|
|
||||||
#include <Util/Floats.hpp>
|
|
||||||
|
|
||||||
#include "environment.hpp"
|
#include "environment.hpp"
|
||||||
#include "thread.hpp"
|
#include "thread.hpp"
|
||||||
#include "call-funcs.hpp"
|
#include "call-funcs.hpp"
|
||||||
|
|
|
||||||
|
|
@ -11,19 +11,6 @@
|
||||||
/// \file interface.cpp
|
/// \file interface.cpp
|
||||||
/// \brief Action Code Script: Interface for the rest of SRB2's game logic
|
/// \brief Action Code Script: Interface for the rest of SRB2's game logic
|
||||||
|
|
||||||
extern "C" {
|
|
||||||
#include "interface.h"
|
|
||||||
|
|
||||||
#include "../doomtype.h"
|
|
||||||
#include "../doomdef.h"
|
|
||||||
#include "../doomstat.h"
|
|
||||||
|
|
||||||
#include "../r_defs.h"
|
|
||||||
#include "../g_game.h"
|
|
||||||
#include "../i_system.h"
|
|
||||||
#include "../p_saveg.h"
|
|
||||||
}
|
|
||||||
|
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
|
|
@ -39,6 +26,19 @@ extern "C" {
|
||||||
#include <ACSVM/Thread.hpp>
|
#include <ACSVM/Thread.hpp>
|
||||||
#include <Util/Floats.hpp>
|
#include <Util/Floats.hpp>
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
#include "interface.h"
|
||||||
|
|
||||||
|
#include "../doomtype.h"
|
||||||
|
#include "../doomdef.h"
|
||||||
|
#include "../doomstat.h"
|
||||||
|
|
||||||
|
#include "../r_defs.h"
|
||||||
|
#include "../g_game.h"
|
||||||
|
#include "../i_system.h"
|
||||||
|
#include "../p_saveg.h"
|
||||||
|
}
|
||||||
|
|
||||||
#include "environment.hpp"
|
#include "environment.hpp"
|
||||||
#include "thread.hpp"
|
#include "thread.hpp"
|
||||||
#include "stream.hpp"
|
#include "stream.hpp"
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,10 @@
|
||||||
|
|
||||||
// TODO? Maybe untie this file from ACS?
|
// TODO? Maybe untie this file from ACS?
|
||||||
|
|
||||||
|
#include <istream>
|
||||||
|
#include <ostream>
|
||||||
|
#include <streambuf>
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include "../doomtype.h"
|
#include "../doomtype.h"
|
||||||
#include "../doomdef.h"
|
#include "../doomdef.h"
|
||||||
|
|
@ -25,10 +29,6 @@ extern "C" {
|
||||||
#include "stream.hpp"
|
#include "stream.hpp"
|
||||||
#include "../cxxutil.hpp"
|
#include "../cxxutil.hpp"
|
||||||
|
|
||||||
#include <istream>
|
|
||||||
#include <ostream>
|
|
||||||
#include <streambuf>
|
|
||||||
|
|
||||||
using namespace srb2::acs;
|
using namespace srb2::acs;
|
||||||
|
|
||||||
SaveBuffer::SaveBuffer(savebuffer_t *save_) :
|
SaveBuffer::SaveBuffer(savebuffer_t *save_) :
|
||||||
|
|
|
||||||
|
|
@ -17,12 +17,9 @@
|
||||||
#ifndef __SRB2_ACS_STREAM_HPP__
|
#ifndef __SRB2_ACS_STREAM_HPP__
|
||||||
#define __SRB2_ACS_STREAM_HPP__
|
#define __SRB2_ACS_STREAM_HPP__
|
||||||
|
|
||||||
extern "C" {
|
#include <istream>
|
||||||
#include "../doomtype.h"
|
#include <ostream>
|
||||||
#include "../doomdef.h"
|
#include <streambuf>
|
||||||
#include "../doomstat.h"
|
|
||||||
#include "../p_saveg.h"
|
|
||||||
}
|
|
||||||
|
|
||||||
#include <ACSVM/Code.hpp>
|
#include <ACSVM/Code.hpp>
|
||||||
#include <ACSVM/CodeData.hpp>
|
#include <ACSVM/CodeData.hpp>
|
||||||
|
|
@ -35,9 +32,12 @@ extern "C" {
|
||||||
#include <ACSVM/Thread.hpp>
|
#include <ACSVM/Thread.hpp>
|
||||||
#include <Util/Floats.hpp>
|
#include <Util/Floats.hpp>
|
||||||
|
|
||||||
#include <istream>
|
extern "C" {
|
||||||
#include <ostream>
|
#include "../doomtype.h"
|
||||||
#include <streambuf>
|
#include "../doomdef.h"
|
||||||
|
#include "../doomstat.h"
|
||||||
|
#include "../p_saveg.h"
|
||||||
|
}
|
||||||
|
|
||||||
namespace srb2::acs {
|
namespace srb2::acs {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,18 @@
|
||||||
/// \file thread.cpp
|
/// \file thread.cpp
|
||||||
/// \brief Action Code Script: Thread definition
|
/// \brief Action Code Script: Thread definition
|
||||||
|
|
||||||
|
#include <ACSVM/Code.hpp>
|
||||||
|
#include <ACSVM/CodeData.hpp>
|
||||||
|
#include <ACSVM/Environment.hpp>
|
||||||
|
#include <ACSVM/Error.hpp>
|
||||||
|
#include <ACSVM/Module.hpp>
|
||||||
|
#include <ACSVM/Scope.hpp>
|
||||||
|
#include <ACSVM/Script.hpp>
|
||||||
|
#include <ACSVM/Serial.hpp>
|
||||||
|
#include <ACSVM/Thread.hpp>
|
||||||
|
#include <ACSVM/BinaryIO.hpp>
|
||||||
|
#include <Util/Floats.hpp>
|
||||||
|
|
||||||
#include "thread.hpp"
|
#include "thread.hpp"
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
@ -26,18 +38,6 @@ extern "C" {
|
||||||
#include "../p_polyobj.h"
|
#include "../p_polyobj.h"
|
||||||
}
|
}
|
||||||
|
|
||||||
#include <ACSVM/Code.hpp>
|
|
||||||
#include <ACSVM/CodeData.hpp>
|
|
||||||
#include <ACSVM/Environment.hpp>
|
|
||||||
#include <ACSVM/Error.hpp>
|
|
||||||
#include <ACSVM/Module.hpp>
|
|
||||||
#include <ACSVM/Scope.hpp>
|
|
||||||
#include <ACSVM/Script.hpp>
|
|
||||||
#include <ACSVM/Serial.hpp>
|
|
||||||
#include <ACSVM/Thread.hpp>
|
|
||||||
#include <ACSVM/BinaryIO.hpp>
|
|
||||||
#include <Util/Floats.hpp>
|
|
||||||
|
|
||||||
using namespace srb2::acs;
|
using namespace srb2::acs;
|
||||||
|
|
||||||
void Thread::start(
|
void Thread::start(
|
||||||
|
|
|
||||||
|
|
@ -14,16 +14,6 @@
|
||||||
#ifndef __SRB2_ACS_THREAD_HPP__
|
#ifndef __SRB2_ACS_THREAD_HPP__
|
||||||
#define __SRB2_ACS_THREAD_HPP__
|
#define __SRB2_ACS_THREAD_HPP__
|
||||||
|
|
||||||
extern "C" {
|
|
||||||
#include "../doomtype.h"
|
|
||||||
#include "../doomdef.h"
|
|
||||||
#include "../doomstat.h"
|
|
||||||
#include "../p_tick.h"
|
|
||||||
#include "../r_defs.h"
|
|
||||||
#include "../r_state.h"
|
|
||||||
#include "../p_spec.h"
|
|
||||||
}
|
|
||||||
|
|
||||||
#include <ACSVM/Code.hpp>
|
#include <ACSVM/Code.hpp>
|
||||||
#include <ACSVM/CodeData.hpp>
|
#include <ACSVM/CodeData.hpp>
|
||||||
#include <ACSVM/Environment.hpp>
|
#include <ACSVM/Environment.hpp>
|
||||||
|
|
@ -35,6 +25,16 @@ extern "C" {
|
||||||
#include <ACSVM/Thread.hpp>
|
#include <ACSVM/Thread.hpp>
|
||||||
#include <Util/Floats.hpp>
|
#include <Util/Floats.hpp>
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
#include "../doomtype.h"
|
||||||
|
#include "../doomdef.h"
|
||||||
|
#include "../doomstat.h"
|
||||||
|
#include "../p_tick.h"
|
||||||
|
#include "../r_defs.h"
|
||||||
|
#include "../r_state.h"
|
||||||
|
#include "../p_spec.h"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
namespace srb2::acs {
|
namespace srb2::acs {
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue