Skip to content
Snippets Groups Projects
Select Git revision
  • 1320f10839cb28d3fe5363a4feeee1cdd6fbb149
  • next default protected
  • precipoptimizations
  • lightdithering
  • renderdistance
  • thinfps
  • spriteshadows
  • secbright
  • lift-freeslot-limits-2
  • lift-maxsend-limits
  • add-forth-interpreter
  • close-connection-timeout
  • lift-netxcmd-limits
  • add-textinput-hook
  • add-namechange-lua-hook
  • inline-mobjwasremoved
  • fix-bot-2pai-desync
  • avoid-double-checkmobjtrigger-call
  • remove-scale-deadcode
  • remove-duplicate-mobjthinker-call
  • master
  • SRB2_release_2.2.10
  • SRB2_release_2.2.9
  • SRB2_release_2.2.8
  • SRB2_release_2.2.7
  • SRB2_release_2.2.6
  • SRB2_release_2.2.5
  • SRB2_release_2.2.4
  • SRB2_release_2.2.3
  • SRB2_release_2.2.2
  • SRB2_release_2.2.1
  • SRB2_release_2.2.0
  • SRB2_release_2.1.25
  • SRB2_release_2.1.24
  • SRB2_release_2.1.23
  • SRB2_release_2.1.22
  • SRB2_release_2.1.21
  • SRB2_release_2.1.20
  • SRB2_release_2.1.19
  • SRB2_release_2.1.18
  • td-release-v1.0.0
41 results

lua_libs.h

Blame
  • Forked from STJr / SRB2
    Source project has a limited visibility.
    i_system.c 67.90 KiB
    // Emacs style mode select   -*- C++ -*-
    //
    // SONIC ROBO BLAST 2
    //-----------------------------------------------------------------------------
    //
    // Copyright (C) 1993-1996 by id Software, Inc.
    // Portions Copyright (C) 1998-2000 by DooM Legacy Team.
    // Copyright (C) 2014-2019 by Sonic Team Junior.
    //
    // This program is free software; you can redistribute it and/or
    // modify it under the terms of the GNU General Public License
    // as published by the Free Software Foundation; either version 2
    // of the License, or (at your option) any later version.
    //
    // This program is distributed in the hope that it will be useful,
    // but WITHOUT ANY WARRANTY; without even the implied warranty of
    // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    // GNU General Public License for more details.
    //
    // Changes by Graue <graue@oceanbase.org> are in the public domain.
    //
    //-----------------------------------------------------------------------------
    /// \file
    /// \brief SRB2 system stuff for SDL
    
    #ifdef CMAKECONFIG
    #include "config.h"
    #else
    #include "../config.h.in"
    #endif
    
    #include <signal.h>
    
    #ifdef _WIN32
    #define RPC_NO_WINDOWS_H
    #include <windows.h>
    #include "../doomtype.h"
    typedef BOOL (WINAPI *p_GetDiskFreeSpaceExA)(LPCSTR, PULARGE_INTEGER, PULARGE_INTEGER, PULARGE_INTEGER);
    typedef BOOL (WINAPI *p_IsProcessorFeaturePresent) (DWORD);
    typedef DWORD (WINAPI *p_timeGetTime) (void);
    typedef UINT (WINAPI *p_timeEndPeriod) (UINT);
    typedef HANDLE (WINAPI *p_OpenFileMappingA) (DWORD, BOOL, LPCSTR);
    typedef LPVOID (WINAPI *p_MapViewOfFile) (HANDLE, DWORD, DWORD, DWORD, SIZE_T);
    #endif
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #ifdef __GNUC__
    #include <unistd.h>
    #elif defined (_MSC_VER)
    #include <direct.h>
    #endif
    #if defined (__unix__) || defined (UNIXCOMMON)
    #include <fcntl.h>
    #endif
    
    #include <stdio.h>
    #ifdef _WIN32
    #include <conio.h>
    #endif
    
    #ifdef _MSC_VER
    #pragma warning(disable : 4214 4244)
    #endif
    
    #ifdef HAVE_SDL
    #define _MATH_DEFINES_DEFINED
    #include "SDL.h"
    
    #ifdef HAVE_TTF