Add platform identifier to save files (#8116)

Adds `creatorplatform` and `creatorplatformtype` attributes to save files, which is useful for troubleshooting among other things.
This commit is contained in:
Jan125
2025-12-02 21:37:44 +01:00
committed by GitHub
parent 91517282c8
commit 58a4a8a909

View File

@@ -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 )
{