This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//===== Copyright © 1996-2005, Valve Corporation, All rights reserved. ======== | |
// | |
// Purpose: Simple entity to log and send gameplay statistics | |
// | |
//============================================================================= | |
#include "cbase.h" | |
#include "vstdlib/jobthread.h" | |
#include "curl/curl.h" | |
#include "steam\steam_api.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
char* GetTimestamp() | |
{ | |
time_t rawtime; | |
struct tm* timeinfo; | |
time(&rawtime); | |
timeinfo = localtime(&rawtime); | |
char* time = asctime(timeinfo); | |
char* newLine = strstr(time, "\n"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//=============================================================================// | |
// | |
// Purpose: Implementation of IMaterialSystem interface which "passes tru" all | |
// function calls to the real interface. Can be used to override | |
// IMaterialSystem function calls (combined with engine->Mat_Stub). | |
// | |
//=============================================================================// | |
#ifndef MATERIALSYSTEM_PASSTHRU_H | |
#define MATERIALSYSTEM_PASSTHRU_H |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "cbase.h" | |
#include "estranged_materialsystem.h" | |
#include "materialsystem\itexture.h" | |
#include "materialsystem/imaterialvar.h" | |
static void AppendShaderParams(const char* shader, IMaterial *pMat, KeyValues *newParams) | |
{ | |
int nParams = pMat->ShaderParamCount(); | |
IMaterialVar **pParams = pMat->GetShaderParams(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//============================================================================= | |
// | |
// Purpose: Logic submerge - fires output when submerged in water. | |
// | |
//============================================================================= | |
#include "cbase.h" | |
// memdbgon must be the last include file in a .cpp file!!! | |
#include "tier0/memdbgon.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ae - takes URL, puts percents in it. | |
void encodeUrl(char *out, int outSize, char *in, int inSize) | |
{ | |
// Terminate our buffer | |
out[0] = '\0'; | |
// Loop the input | |
for (int i = 0; i < inSize; i++) | |
{ | |
// Get a char out of it |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Get the day number | |
day="$(date +'%u')" | |
echo "Starting backup for day ${day}" | |
# Sync all data to S3, excluding git and svn folders | |
/usr/local/bin/aws s3 sync /path/to/folder s3://bucket/folder \ | |
--exclude "*.svn*" --exclude "*.git*" --delete |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void AEstPlayer::Tick(float DeltaSeconds) | |
{ | |
Super::Tick(DeltaSeconds); | |
UpdateCamera(DeltaSeconds); | |
} | |
void AEstPlayer::UpdateCamera(float DeltaSeconds) | |
{ | |
FVector EyeLocation; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Estranged is a trade mark of Alan Edwardes. | |
#include "EstScreenshotTaker.h" | |
#include "IImageWrapper.h" | |
#include "IImageWrapperModule.h" | |
void UEstScreenshotTaker::RequestScreenshot() | |
{ | |
if (GEngine == nullptr || GEngine->GameViewport == nullptr || bIsScreenshotRequested) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Checkout and store away result | |
def checkoutResult = scm checkout | |
// Build a human readable build label | |
def buildLabel = [env.EstPlatform, checkoutResult.GIT_COMMIT.substring(0, 6), env.JOB_NAME, env.BUILD_NUMBER].join('-') | |
// Stamp the build config header file | |
def configFile = 'Depot/Source/EstCore/EstBuildConfig.h' | |
def buildConfig = readFile file: configFile | |
buildConfig += '\n#undef BUILD_COMMIT' |