game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
Loading...
Searching...
No Matches
SaveFile Struct Reference

Information about a specific save file. More...

#include <cloud_save_service.h>

Public Member Functions

std::string getFormattedSize () const
std::string getFormattedTime () const

Public Attributes

std::string checksum
 SHA-256 hash for comparison.
std::chrono::system_clock::time_point modifiedTime
std::filesystem::path path
 Full path to file.
std::string relativePath
 Path relative to save root.
int64_t size = 0
 File size in bytes.

Detailed Description

Information about a specific save file.

Definition at line 97 of file cloud_save_service.h.

Member Function Documentation

◆ getFormattedSize()

std::string SaveFile::getFormattedSize ( ) const

Definition at line 208 of file cloud_save_service.cpp.

References size.

◆ getFormattedTime()

std::string SaveFile::getFormattedTime ( ) const

Definition at line 213 of file cloud_save_service.cpp.

References modifiedTime.

Member Data Documentation

◆ checksum

std::string SaveFile::checksum

SHA-256 hash for comparison.

Definition at line 103 of file cloud_save_service.h.

◆ modifiedTime

std::chrono::system_clock::time_point SaveFile::modifiedTime

Definition at line 102 of file cloud_save_service.h.

Referenced by getFormattedTime().

◆ path

std::filesystem::path SaveFile::path

Full path to file.

Definition at line 99 of file cloud_save_service.h.

Referenced by CloudSaveService::createSnapshot().

◆ relativePath

std::string SaveFile::relativePath

Path relative to save root.

Definition at line 100 of file cloud_save_service.h.

◆ size

int64_t SaveFile::size = 0

File size in bytes.

Definition at line 101 of file cloud_save_service.h.

Referenced by getFormattedSize().


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