Open 3D Engine EMotionFX Gem API Reference  24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
MCore::FileSystem Class Reference

#include <FileSystem.h>

Static Public Member Functions

static bool SaveToFileSecured (const char *filename, const AZStd::function< bool()> &saveFunction, CommandManager *commandManager=nullptr)
 

Static Public Attributes

static StaticString s_secureSavePath
 

Detailed Description

The file system class. This currently contains some utility classes to deal with files on disk.

Member Function Documentation

◆ SaveToFileSecured()

static bool MCore::FileSystem::SaveToFileSecured ( const char *  filename,
const AZStd::function< bool()> &  saveFunction,
CommandManager commandManager = nullptr 
)
static

Save to file secured by a backup file.

Parameters
[in]fileNameThe filename of the file.
[in]saveFunctionSave function used to save the file.
[in]commandManagerCommand manager used to add error.
Returns
True in case everything went fine, false it something wrong happened. Check log for these cases.

Member Data Documentation

◆ s_secureSavePath

StaticString MCore::FileSystem::s_secureSavePath
static

The folder path used to keep a backup in SaveToFileSecured.


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