Atlas Game Manager
A game manager for f95 and dlsite written in c++
Loading...
Searching...
No Matches
engineDetection.hpp File Reference
#include <QString>
#include <filesystem>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  atlas
 
namespace  atlas::utils
 

Macros

#define ATLAS_ENGINEDETECTION_HPP
 

Enumerations

enum  Engine : int {
  ENGINES_BEGIN = 0 , RenPy , Unity , Unreal ,
  RPGM , WolfRPG , VisualNovelMaker , TyanoBuilder ,
  Java , Flash , RAGS , KiriKiri ,
  NScripter , NVList , Sukai2 , HTML ,
  QSP , BAT , ENGINES_END , MonoGame ,
  GamesforLive , XNA , Adobe_AIR , UNKNOWN
}
 

Functions

template<Engine engine>
bool isEngineT (atlas::utils::FileScanner &scanner)
 Function to be specialized for each Engine to return true if the engine is valid.
 
bool checkEngineType (std::string engine, atlas::utils::FileScanner &scanner)
 
template<Engine engine>
QString engineNameT ()
 String name of the engine.
 
Engine determineEngine (atlas::utils::FileScanner &scanner)
 Returns an engine type of ENGINES_END if no engine is determined.
 
QString engineName (const Engine engine)
 Returns a string name of the engine.
 
std::vector< std::filesystem::path > detectExecutables (atlas::utils::FileScanner &scanner)
 
std::vector< std::filesystem::path > scoreExecutables (std::vector< std::filesystem::path > paths, const Engine engine=UNKNOWN)
 

Macro Definition Documentation

◆ ATLAS_ENGINEDETECTION_HPP

#define ATLAS_ENGINEDETECTION_HPP

Enumeration Type Documentation

◆ Engine

enum Engine : int
Enumerator
ENGINES_BEGIN 
RenPy 
Unity 
Unreal 
RPGM 
WolfRPG 
VisualNovelMaker 
TyanoBuilder 
Java 
Flash 
RAGS 
KiriKiri 
NScripter 
NVList 
Sukai2 
HTML 
QSP 
BAT 
ENGINES_END 
MonoGame 
GamesforLive 
XNA 
Adobe_AIR 
UNKNOWN 

Function Documentation

◆ checkEngineType()

bool checkEngineType ( std::string engine,
atlas::utils::FileScanner & scanner )

◆ detectExecutables()

std::vector< std::filesystem::path > detectExecutables ( atlas::utils::FileScanner & scanner)

◆ determineEngine()

Engine determineEngine ( atlas::utils::FileScanner & scanner)

Returns an engine type of ENGINES_END if no engine is determined.

◆ engineName()

QString engineName ( const Engine engine)

Returns a string name of the engine.

◆ engineNameT()

template<Engine engine>
QString engineNameT ( )

String name of the engine.

◆ isEngineT()

template<Engine engine>
bool isEngineT ( atlas::utils::FileScanner & scanner)

Function to be specialized for each Engine to return true if the engine is valid.

◆ scoreExecutables()

std::vector< std::filesystem::path > scoreExecutables ( std::vector< std::filesystem::path > paths,
const Engine engine_type )
Warning
Provides no MIME checking. CHECK YOURSELF
Parameters
paths
Returns