OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Functions
OpenEnroth.cpp File Reference
#include <cstdio>
#include <cassert>
#include <utility>
#include <ranges>
#include <vector>
#include <string>
#include <algorithm>
#include <chrono>
#include "Application/Startup/GameStarter.h"
#include "Engine/Components/Control/EngineController.h"
#include "Engine/Components/Trace/EngineTraceSimplePlayer.h"
#include "Engine/Components/Trace/EngineTraceRecorder.h"
#include "Engine/Components/Trace/EngineTraceStateAccessor.h"
#include "Engine/Components/Trace/EngineTracePlayer.h"
#include "Engine/Engine.h"
#include "Library/StackTrace/StackTraceOnCrash.h"
#include "Library/Platform/Application/PlatformApplication.h"
#include "Library/Trace/EventTrace.h"
#include "Utility/Streams/FileOutputStream.h"
#include "Utility/String/Format.h"
#include "Utility/UnicodeCrt.h"
#include "Utility/String/Transformations.h"
#include "Utility/String/Split.h"
#include "Utility/Types.h"
#include "OpenEnrothOptions.h"

Functions

static std::string normalizeText (std::string_view text)
 
static void printLines (const std::vector< std::string_view > &lines, ssize_t line, ssize_t delta)
 
static void printTraceDiff (std::string_view current, std::string_view canonical)
 
int runRetrace (const OpenEnrothOptions &options)
 
int runPlay (const OpenEnrothOptions &options)
 
int runOpenEnroth (const OpenEnrothOptions &options)
 
int openEnrothMain (int argc, char **argv)
 
int platformMain (int argc, char **argv)
 

Function Documentation

◆ normalizeText()

static std::string normalizeText ( std::string_view  text)
static

◆ openEnrothMain()

int openEnrothMain ( int  argc,
char **  argv 
)

◆ platformMain()

int platformMain ( int  argc,
char **  argv 
)

Entrypoint for the program that uses the platform lib. Function definition should be provided in user code.

Parameters
argcTotal number of arguments passed.
argvUTF8-encoded program arguments. Note that you're getting UTF8 on ALL platforms, including Windows.
Returns
Program return code.

◆ printLines()

static void printLines ( const std::vector< std::string_view > &  lines,
ssize_t  line,
ssize_t  delta 
)
static

◆ printTraceDiff()

static void printTraceDiff ( std::string_view  current,
std::string_view  canonical 
)
static

◆ runOpenEnroth()

int runOpenEnroth ( const OpenEnrothOptions options)

◆ runPlay()

int runPlay ( const OpenEnrothOptions options)

◆ runRetrace()

int runRetrace ( const OpenEnrothOptions options)