|
game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
|
Record of a single game play session. More...
#include <game.h>
Public Member Functions | |
| std::string | getFormattedDuration () const |
| Get formatted duration string. | |
| bool | isActive () const |
| Check if session is still active. | |
Public Attributes | |
| float | avgFps = 0.0f |
| Average FPS during session (0 if not captured). | |
| float | avgFrametime = 0.0f |
| Average frametime in ms. | |
| double | durationSeconds = 0 |
| Session duration in seconds. | |
| time_t | endTime = 0 |
| Unix timestamp when session ended (0 if still running). | |
| int | exitCode = 0 |
| Process exit code. | |
| std::string | exitReason |
| "normal", "crash", "timeout", "force_stop" | |
| float | minFps = 0.0f |
| Minimum FPS during session. | |
| std::string | protonVersion |
| Proton/Wine version used. | |
| int64_t | sessionId = 0 |
| Unique session ID (auto-generated). | |
| time_t | startTime = 0 |
| Unix timestamp when session started. | |
Record of a single game play session.
Tracks individual play sessions with start/end times, duration, and metadata about the session. Enables detailed playtime analytics and session history viewing (like Playnite).
| std::string PlaySession::getFormattedDuration | ( | ) | const |
Get formatted duration string.
Definition at line 391 of file game.cpp.
References durationSeconds.
|
inline |
| float PlaySession::avgFps = 0.0f |
| float PlaySession::avgFrametime = 0.0f |
| double PlaySession::durationSeconds = 0 |
Session duration in seconds.
Definition at line 634 of file game.h.
Referenced by getFormattedDuration().
| time_t PlaySession::endTime = 0 |
Unix timestamp when session ended (0 if still running).
Definition at line 633 of file game.h.
Referenced by isActive().
| std::string PlaySession::exitReason |
| std::string PlaySession::protonVersion |
| int64_t PlaySession::sessionId = 0 |
| time_t PlaySession::startTime = 0 |