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:
@@ -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 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user