Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/common/Command.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef COMMON_COMMAND_H_
#define COMMON_COMMAND_H_

#include <engine/qcommon/q_shared.h>
#include "engine/qcommon/q_shared.h"

namespace Cmd {

Expand Down
4 changes: 1 addition & 3 deletions src/common/Common.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,11 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "Command.h"
#include "Cvar.h"
#include "Log.h"
#include "LineEditData.h"
#include "System.h"
#include "Assert.h"
#include "Math.h"
#include "Color.h"
#include "Serialize.h"
#include "DisjointSets.h"
#include "DisjointSets.h" // TODO: move to gamelogic

using Math::Vec2;
using Math::Vec3;
Expand Down
6 changes: 6 additions & 0 deletions src/common/FileSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
===========================================================================
*/

#include "common/Common.h"

#include "common/FileSystem.h"

#if defined(BUILD_ENGINE)
#include "framework/CommonVMServices.h" // declaration of HandleFileSystemSyscall
#include "minizip/unzip.h"
#endif

Expand All @@ -42,6 +47,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "shared/VMMain.h"
#else
#include "engine/qcommon/qcommon.h"
#include "IPC/Channel.h"
#endif

#include "IPC/CommonSyscalls.h"
Expand Down
9 changes: 0 additions & 9 deletions src/common/FileSystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#include "Command.h"

#ifdef BUILD_ENGINE
#include "IPC/Channel.h"
#endif

namespace FS {

bool UseLegacyPaks();
Expand Down Expand Up @@ -561,11 +557,6 @@ const std::string& GetHomePath();
// Get the path containing program binaries
const std::string& GetLibPath();

#ifdef BUILD_ENGINE
// Handle filesystem system calls
void HandleFileSystemSyscall(int minor, Util::Reader& reader, IPC::Channel& channel, Str::StringRef vmName);
#endif

} // namespace FS

#endif // COMMON_FILESYSTEM_H_
4 changes: 3 additions & 1 deletion src/common/IPC/CommonSyscalls.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef COMMON_COMMON_SYSCALLS_H_
#define COMMON_COMMON_SYSCALLS_H_

#include "Common.h"
#include "Primitives.h"
#include <common/FileSystem.h>
#include "common/FileSystem.h"
#include "common/Serialize.h"

namespace Util {
template<> struct SerializeTraits<netField_t> {
Expand Down
2 changes: 2 additions & 0 deletions src/common/IPC/Primitives.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include "common/Common.h"
#include "common/Serialize.h"
#include "Common.h"

#ifndef COMMON_IPC_PRIMITIVES_H_
#define COMMON_IPC_PRIMITIVES_H_
Expand Down
2 changes: 2 additions & 0 deletions src/common/LineEditData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#include "Common.h"

#include "common/LineEditData.h"

//TODO: use a std::string instead of a fixed size char* ?
//TODO: support MAJ-selection ?

Expand Down
2 changes: 1 addition & 1 deletion src/common/cm/cm_load.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Maryland 20850 USA.

#include "cm_local.h"

#include <common/FileSystem.h>
#include "common/FileSystem.h"

// to allow boxes to be treated as brush models, we allocate
// some extra indexes along with those needed by the map
Expand Down
2 changes: 1 addition & 1 deletion src/engine/audio/Audio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
===========================================================================
*/

#include <common/FileSystem.h>
#include "common/FileSystem.h"
#include "framework/CvarSystem.h"
#include "AudioPrivate.h"
#include "AudioData.h"
Expand Down
2 changes: 1 addition & 1 deletion src/engine/audio/OggCodec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#include "SoundCodec.h"
#include "AudioPrivate.h"
#include <common/FileSystem.h>
#include "common/FileSystem.h"

#include <errno.h>
#define OV_EXCLUDE_STATIC_CALLBACKS
Expand Down
2 changes: 1 addition & 1 deletion src/engine/audio/OpusCodec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#include "SoundCodec.h"
#include "AudioPrivate.h"
#include <common/FileSystem.h>
#include "common/FileSystem.h"

#include <errno.h>
#include <opusfile.h>
Expand Down
2 changes: 1 addition & 1 deletion src/engine/audio/SoundCodec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "SoundCodec.h"
#include "AudioPrivate.h"
#include <common/FileSystem.h>
#include "common/FileSystem.h"

namespace Audio {

Expand Down
2 changes: 1 addition & 1 deletion src/engine/audio/WavCodec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#include "SoundCodec.h"
#include "AudioPrivate.h"
#include <common/FileSystem.h>
#include "common/FileSystem.h"

/*
*The following assumptions made:
Expand Down
4 changes: 2 additions & 2 deletions src/engine/framework/Application.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define FRAMEWORK_APPLICATION_H_

#include <string>
#include <common/String.h>
#include <common/Command.h>
#include "common/String.h"
#include "common/Command.h"

namespace Application {

Expand Down
2 changes: 1 addition & 1 deletion src/engine/framework/BaseCommands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "qcommon/q_shared.h"
#include "BaseCommands.h"

#include <common/FileSystem.h>
#include "common/FileSystem.h"

#include "Application.h"
#include "CommandSystem.h"
Expand Down
1 change: 1 addition & 0 deletions src/engine/framework/CommandBufferHost.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef FRAMEWORK_COMMAND_BUFFER_HOST_H_
#define FRAMEWORK_COMMAND_BUFFER_HOST_H_

#include "common/IPC/Channel.h"
#include "common/IPC/CommandBuffer.h"
#include "common/Serialize.h"

Expand Down
4 changes: 2 additions & 2 deletions src/engine/framework/CommandSystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef FRAMEWORK_COMMAND_SYSTEM_H_
#define FRAMEWORK_COMMAND_SYSTEM_H_

#include <common/Command.h>
#include <common/String.h>
#include "common/Command.h"
#include "common/String.h"

/*
* Command execution and command text buffering.
Expand Down
5 changes: 5 additions & 0 deletions src/engine/framework/CommonVMServices.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,9 @@ namespace VM {
};
}

namespace FS {
// Handle filesystem system calls
void HandleFileSystemSyscall(int minor, Util::Reader& reader, IPC::Channel& channel, Str::StringRef vmName);
}

#endif // COMMAND_VM_SERVICES_H_
2 changes: 1 addition & 1 deletion src/engine/framework/ConsoleHistory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
===========================================================================
*/

#include <common/FileSystem.h>
#include "common/FileSystem.h"
#include "framework/Application.h"
#include "ConsoleHistory.h"

Expand Down
2 changes: 1 addition & 1 deletion src/engine/framework/CrashDump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/


#include <common/FileSystem.h>
#include "common/FileSystem.h"
#include "CrashDump.h"
#include "System.h"
#ifdef _WIN32
Expand Down
4 changes: 2 additions & 2 deletions src/engine/framework/CrashDump.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef FRAMEWORK_CRASHDUMP_H_
#define FRAMEWORK_CRASHDUMP_H_

#include <common/String.h>
#include <common/Util.h>
#include "common/String.h"
#include "common/Util.h"

namespace Sys {
// Ensure existence of the subdirectory of homepath used for crash dumps. Return true if successful
Expand Down
2 changes: 1 addition & 1 deletion src/engine/framework/LogSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
===========================================================================
*/

#include <common/FileSystem.h>
#include "common/FileSystem.h"
#include "qcommon/q_shared.h"
#include "qcommon/qcommon.h"
#include "LogSystem.h"
Expand Down
2 changes: 1 addition & 1 deletion src/engine/framework/System.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "CrashDump.h"
#include "CvarSystem.h"
#include "common/StackTrace.h"
#include <common/FileSystem.h>
#include "common/FileSystem.h"
#ifdef _WIN32
#include <windows.h>
#include <SDL3/SDL.h>
Expand Down
2 changes: 1 addition & 1 deletion src/engine/framework/VirtualMachine.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
===========================================================================
*/

#include <common/FileSystem.h>
#include "common/FileSystem.h"
#include "common/Common.h"
#include "common/IPC/Channel.h"

Expand Down
2 changes: 1 addition & 1 deletion src/engine/qcommon/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Maryland 20850 USA.
#include "framework/OmpSystem.h"
#include "framework/System.h"
#include "sys/sys_events.h"
#include <common/FileSystem.h>
#include "common/FileSystem.h"

cvar_t *com_speeds;
cvar_t *com_timescale;
Expand Down
2 changes: 1 addition & 1 deletion src/engine/qcommon/files.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ along with Daemon Source Code. If not, see <http://www.gnu.org/licenses/>.
===========================================================================
*/

#include <common/FileSystem.h>
#include "common/FileSystem.h"
#include "q_shared.h"
#include "qcommon.h"
#include "common/Defs.h"
Expand Down
2 changes: 1 addition & 1 deletion src/engine/qcommon/net_ip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Maryland 20850 USA.

#include "qcommon/q_shared.h"
#include "qcommon/qcommon.h"
#include <common/FileSystem.h>
#include "common/FileSystem.h"
#include "engine/framework/Application.h"
#include "engine/framework/Network.h"
#include "server/server.h"
Expand Down
3 changes: 2 additions & 1 deletion src/engine/renderer/gl_shader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
// gl_shader.cpp -- GLSL shader handling

#include <common/FileSystem.h>
#include "common/FileSystem.h"
#include "common/Type.h"
#include "gl_shader.h"
#include "Material.h"
#include "YokaiEmbeddedFiles/DaemonEngineShaders.h"
Expand Down
2 changes: 1 addition & 1 deletion src/engine/renderer/tr_backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "gl_shader.h"
#include "Material.h"
#if defined( REFBONE_NAMES )
#include <client/client.h>
#include "client/client.h"
#endif

backEndData_t *backEndData[ SMP_FRAMES ];
Expand Down
2 changes: 1 addition & 1 deletion src/engine/renderer/tr_image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
// tr_image.c
#include <common/FileSystem.h>
#include "common/FileSystem.h"
#include "InternalImage.h"
#include "tr_local.h"
#include <iomanip>
Expand Down
1 change: 1 addition & 0 deletions src/engine/renderer/tr_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
// tr_main.c -- main control flow for each frame
#include "tr_local.h"
#include "common/Serialize.h"
#include "Material.h"
#include "EntityCache.h"

Expand Down
2 changes: 1 addition & 1 deletion src/engine/server/ServerApplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
===========================================================================
*/

#include <common/FileSystem.h>
#include "common/FileSystem.h"
#include "framework/ApplicationInternals.h"
#include "framework/CommandSystem.h"
#include "qcommon/qcommon.h"
Expand Down
2 changes: 1 addition & 1 deletion src/engine/server/sv_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Maryland 20850 USA.
#include "CryptoChallenge.h"
#include "framework/Network.h"
#include "qcommon/sys.h"
#include <common/FileSystem.h>
#include "common/FileSystem.h"

// HTTP download params
static Cvar::Cvar<bool> sv_wwwDownload("sv_wwwDownload", "have clients download missing paks via HTTP", Cvar::NONE, true);
Expand Down
6 changes: 3 additions & 3 deletions src/shared/client/cg_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
===========================================================================
*/

#include <engine/client/cg_msgdef.h>
#include <shared/VMMain.h>
#include <shared/CommandBufferClient.h>
#include "engine/client/cg_msgdef.h"
#include "shared/VMMain.h"
#include "shared/CommandBufferClient.h"
#include "cg_api.h"

IPC::CommandBufferClient cmdBuffer("cgame");
Expand Down
2 changes: 1 addition & 1 deletion src/shared/client/cg_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "engine/renderer/tr_types.h"
#include "common/KeyIdentification.h"
#include "shared/CommonProxies.h"
#include <shared/CommandBufferClient.h>
#include "shared/CommandBufferClient.h"

extern IPC::CommandBufferClient cmdBuffer;

Expand Down
4 changes: 2 additions & 2 deletions src/shared/server/sg_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
===========================================================================
*/

#include <engine/server/sg_msgdef.h>
#include <shared/VMMain.h>
#include "engine/server/sg_msgdef.h"
#include "shared/VMMain.h"

IPC::SharedMemory shmRegion;

Expand Down
2 changes: 1 addition & 1 deletion src/shared/server/sg_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef SHARED_SERVER_API_H_
#define SHARED_SERVER_API_H_

#include <common/IPC/Primitives.h>
#include "common/IPC/Primitives.h"

extern IPC::SharedMemory shmRegion;

Expand Down
Loading