From 58a4a8a909a9f7eca50688daed40a1b15cd2d157 Mon Sep 17 00:00:00 2001 From: Jan125 <13677685+Jan125@users.noreply.github.com> Date: Tue, 2 Dec 2025 21:37:44 +0100 Subject: [PATCH] Add platform identifier to save files (#8116) Adds `creatorplatform` and `creatorplatformtype` attributes to save files, which is useful for troubleshooting among other things. --- src/core/DataFile.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/DataFile.cpp b/src/core/DataFile.cpp index 48d7613a0..652805470 100644 --- a/src/core/DataFile.cpp +++ b/src/core/DataFile.cpp @@ -138,6 +138,8 @@ DataFile::DataFile( Type type ) : root.setAttribute( "type", typeName( type ) ); root.setAttribute( "creator", "LMMS" ); root.setAttribute( "creatorversion", LMMS_VERSION ); + root.setAttribute("creatorplatform", QSysInfo::kernelType()); + root.setAttribute("creatorplatformtype", QSysInfo::productType()); appendChild( root ); m_head = createElement( "head" ); @@ -2101,6 +2103,8 @@ void DataFile::upgrade() documentElement().setAttribute( "type", typeName( type() ) ); documentElement().setAttribute( "creator", "LMMS" ); documentElement().setAttribute( "creatorversion", LMMS_VERSION ); + documentElement().setAttribute("creatorplatform", QSysInfo::kernelType()); + documentElement().setAttribute("creatorplatformtype", QSysInfo::productType()); if( type() == Type::SongProject || type() == Type::SongProjectTemplate ) {