mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-26 07:39:27 +00:00
* Adjustment: Tweak the include paths for platformPOSIX.h.
This commit is contained in:
parent
6583134ef2
commit
a24149ba3b
8 changed files with 1264 additions and 1274 deletions
|
|
@ -20,7 +20,7 @@
|
|||
// IN THE SOFTWARE.
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#include "platformX86UNIX/platformX86UNIX.h"
|
||||
#include "platformPOSIX/platformPOSIX.h"
|
||||
#include "platformPOSIX/POSIXStdConsole.h"
|
||||
#include "platformPOSIX/POSIXUtils.h"
|
||||
#include "platform/input/event.h"
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -20,7 +20,7 @@
|
|||
// IN THE SOFTWARE.
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#include "platformX86UNIX/platformX86UNIX.h"
|
||||
#include "platformPOSIX/platformPOSIX.h"
|
||||
#include <stdlib.h>
|
||||
#include <mm_malloc.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
|
||||
#include "math/mPoint2.h"
|
||||
#include "platformX86UNIX/platformX86UNIX.h"
|
||||
#include "platformPOSIX/platformPOSIX.h"
|
||||
//#include "platformX86UNIX/platformGL.h"
|
||||
#include "core/strings/stringFunctions.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
// IN THE SOFTWARE.
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#include "platformX86UNIX/platformX86UNIX.h"
|
||||
#include "platformPOSIX/platformPOSIX.h"
|
||||
#include "core/strings/stringFunctions.h"
|
||||
#include <stdarg.h>
|
||||
#include <ctype.h>
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
#include <sys/wait.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "platformX86UNIX/platformX86UNIX.h"
|
||||
#include "platformPOSIX/platformPOSIX.h"
|
||||
#include "platformPOSIX/POSIXUtils.h"
|
||||
|
||||
UnixUtils *UUtils = NULL;
|
||||
|
|
|
|||
67
Engine/source/platformPOSIX/platformPOSIX.h
Normal file
67
Engine/source/platformPOSIX/platformPOSIX.h
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
// Copyright (c) 2012 GarageGames, LLC
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to
|
||||
// deal in the Software without restriction, including without limitation the
|
||||
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||||
// sell copies of the Software, and to permit persons to whom the Software is
|
||||
// furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included in
|
||||
// all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
// IN THE SOFTWARE.
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef _PLATFORM_H_
|
||||
#include "platform/platform.h"
|
||||
#endif
|
||||
#ifndef _EVENT_H_
|
||||
#include "platform/input/event.h"
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
// these will be used to construct the user preference directory where
|
||||
// created files will be stored (~/PREF_DIR_ROOT/PREF_DIR_GAME_NAME)
|
||||
#define PREF_DIR_ROOT ".garagegames"
|
||||
#define PREF_DIR_GAME_NAME "torqueDemo"
|
||||
|
||||
// event codes for custom SDL events
|
||||
const S32 TORQUE_SETVIDEOMODE = 1;
|
||||
|
||||
extern bool GL_EXT_Init( void );
|
||||
|
||||
extern void PlatformBlitInit( void );
|
||||
|
||||
// Process Control functions
|
||||
void Cleanup(bool minimal=false);
|
||||
void ImmediateShutdown(S32 exitCode, S32 signalNum = 0);
|
||||
void ProcessControlInit();
|
||||
bool AcquireProcessMutex(const char *mutexName);
|
||||
|
||||
// Utility functions
|
||||
// Convert a string to lowercase in place
|
||||
char *strtolwr(char* str);
|
||||
|
||||
void DisplayErrorAlert(const char* errMsg, bool showSDLError = true);
|
||||
|
||||
// Just like strstr, except case insensitive
|
||||
// (Found this function at http://www.codeguru.com/string/stristr.html)
|
||||
extern const char *stristr(const char *szStringToBeSearched, const char *szSubstringToSearchFor);
|
||||
|
||||
extern "C"
|
||||
{
|
||||
// x86UNIX doesn't have a way to automatically get the executable file name
|
||||
void setExePathName(const char* exePathName);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue