VGamepad PC
The PC app for the virtual game controller.
Loading...
Searching...
No Matches
appdir.hpp File Reference
#include <QApplication>
#include <QDir>
#include <QFileInfo>
Include dependency graph for appdir.hpp:
This graph shows which files directly or indirectly include this file:

Functions

auto getAppDataDir ()
 Returns the application data directory, based on the platform and build type.

Function Documentation

◆ getAppDataDir()

auto getAppDataDir ( )
inline

Returns the application data directory, based on the platform and build type.

  • On Windows, it returns the application directory. (portable app)
  • On Linux, it returns the parent of the application directory. (portable app)
  • In debug builds, it returns the application directory.
Warning
Instantiate the QApplication object first