GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
Static Public Member Functions | List of all members

Copy all resources files of a project to a directory. More...

#include <ProjectResourcesCopier.h>

Static Public Member Functions

static bool CopyAllResourcesTo (gd::Project &project, gd::AbstractFileSystem &fs, gd::String destinationDirectory, bool updateOriginalProject, bool preserveAbsoluteFilenames=true, bool preserveDirectoryStructure=true)
 Copy all resources files of a project to the specified destinationDirectory. More...
 

Detailed Description

Copy all resources files of a project to a directory.

Member Function Documentation

◆ CopyAllResourcesTo()

bool gd::ProjectResourcesCopier::CopyAllResourcesTo ( gd::Project project,
gd::AbstractFileSystem fs,
gd::String  destinationDirectory,
bool  updateOriginalProject,
bool  preserveAbsoluteFilenames = true,
bool  preserveDirectoryStructure = true 
)
static

Copy all resources files of a project to the specified destinationDirectory.

Parameters
projectThe project to be used
fsThe abstract file system to be used
destinationDirectoryThe directory where resources must be copied to
updateOriginalProjectIf set to true, the project will be updated with the new resources filenames.
preserveAbsoluteFilenamesIf set to true (default), resources with absolute filenames won't be changed. Otherwise, resources with absolute filenames will be copied into the destination directory and their filenames updated.
preserveDirectoryStructureIf set to true (default), the directories of the resources will be preserved when copying. Otherwise, everything will be send in the destinationDirectory.
Returns
true if no error happened

The documentation for this class was generated from the following files: