> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PFGameSaveInitArgs

> Init args used by PFGameSave

Init args used by PFGameSave

## Syntax

```cpp theme={null}
typedef struct PFGameSaveInitArgs {  
    XTaskQueueHandle backgroundQueue;  
    uint64_t options;  
    const char* saveFolder;  
} PFGameSaveInitArgs;  
```

### Members

**`backgroundQueue`**   XTaskQueueHandle

An XTaskQueue that should be used for background work. If no queue is provided then a default (threadpool) queue will be used.

**`options`**   uint64\_t

Options from PFGameSaveInitOptions to use when initializing the game save system. Set to PFGameSaveInitOptions::None for default behavior.

**`saveFolder`**   const char\*

On some platforms, the game can store save files in various locations (e.g. My Docs, local app data, etc) On those platforms, this lets the game specify where save files are stored. This should be the root folder of where the game save files are stored. All its files and subfolders will be synchronized with the cloud. This param is ignored on platforms such as XBOX where the game save files are stored in a fixed location. On other platforms such as Steam Deck, it is required to be set to a valid path.

## Requirements

**Header:** PFGameSaveFilesTypes.h

## See also

[PFGameSaveFilesTypes members](/services/playfab/api-references/c/pfgamesavefilestypes/pfgamesavefilestypes_members)
