Sane C++ Libraries
C++ Platform Abstraction Libraries
SC::FileSystemDirectories Struct Reference

Reports location of system directories (executable / application root) More...

#include <FileSystemDirectories.h>

Public Member Functions

StringView getExecutablePath () const
 Absolute executable path with extension (UTF16 on Windows, UTF8 elsewhere) More...
 
StringView getApplicationPath () const
 Absolute Application path with extension (UTF16 on Windows, UTF8 elsewhere) More...
 
bool init ()
 Initializes the paths. More...
 

Detailed Description

Reports location of system directories (executable / application root)

Member Function Documentation

◆ getApplicationPath()

StringView SC::FileSystemDirectories::getApplicationPath ( ) const
inline

Absolute Application path with extension (UTF16 on Windows, UTF8 elsewhere)

Note
on macOS this is different from FileSystemDirectories::getExecutablePath

◆ getExecutablePath()

StringView SC::FileSystemDirectories::getExecutablePath ( ) const
inline

Absolute executable path with extension (UTF16 on Windows, UTF8 elsewhere)

◆ init()

bool SC::FileSystemDirectories::init ( )

Initializes the paths.

Returns
true if paths have been initialized correctly

The documentation for this struct was generated from the following file: