mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 09:59:59 +03:00
minor clean up and add some docs
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
parent
13c7efa058
commit
e9d4793b1e
6 changed files with 38 additions and 23 deletions
|
|
@ -163,6 +163,10 @@ bool ensureFolderPathExists(QString foldernamepath)
|
|||
return success;
|
||||
}
|
||||
|
||||
/// @brief Copy file at src to dest, ensures the full filepath exsists
|
||||
/// @param src srouce file path
|
||||
/// @param dst destination file path
|
||||
/// @return boolean: was there an error during the filecopy?
|
||||
bool copyFile(QString &src, QString &dst) {
|
||||
using copy_opts = fs::copy_options;
|
||||
|
||||
|
|
@ -185,6 +189,9 @@ bool copyFile(QString &src, QString &dst) {
|
|||
|
||||
}
|
||||
|
||||
/// @brief Copies a directory and it's contents from src to dest
|
||||
/// @param offset subdirectory form src to copy to dest
|
||||
/// @return if there was an error during the filecopy
|
||||
bool copy::operator()(const QString& offset)
|
||||
{
|
||||
using copy_opts = fs::copy_options;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue