Jamie Reece Wilson
f049053776
(because the previous iteration was using a pointer, dereference and operator bool() semantics still apply. no changes required, except for direct access of the string buffer, but no instances of the -> operator were found)
36 lines
855 B
C++
36 lines
855 B
C++
/***
|
|
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
File: Paths.hpp
|
|
Date: 2021-6-10
|
|
Author: Reece
|
|
***/
|
|
#pragma once
|
|
|
|
namespace Aurora::Process
|
|
{
|
|
/**
|
|
* @brief Fetches the applications current working directory
|
|
* @param path
|
|
* @return
|
|
*/
|
|
AUKN_SYM bool GetWorkingDirectory(AuString &path);
|
|
|
|
/**
|
|
* @brief Fetches the applications binary or package directory
|
|
* @return
|
|
*/
|
|
AUKN_SYM AuOptional<const AuString &> GetProcessDirectory();
|
|
|
|
/**
|
|
* @brief Fetches the full-path of the applications binary, if known
|
|
* @return
|
|
*/
|
|
AUKN_SYM AuOptional<const AuString &> GetProcessFullPath();
|
|
|
|
/**
|
|
* @brief Fetches the applications primary module name
|
|
* @return
|
|
*/
|
|
AUKN_SYM AuOptional<const AuString &> GetProcessName();
|
|
} |