Includes a change to jar mods, where they gain an 'originalName' attribute used only for display
		
			
				
	
	
		
			17 lines
		
	
	
		
			368 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			368 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #pragma once
 | |
| #include <QString>
 | |
| #include <QJsonObject>
 | |
| #include <memory>
 | |
| class Jarmod;
 | |
| typedef std::shared_ptr<Jarmod> JarmodPtr;
 | |
| class Jarmod
 | |
| {
 | |
| public: /* methods */
 | |
| 	static JarmodPtr fromJson(const QJsonObject &libObj, const QString &filename,
 | |
| 							  const QString &originalName);
 | |
| 	QJsonObject toJson();
 | |
| public: /* data */
 | |
| 	QString name;
 | |
| 	QString originalName;
 | |
| };
 |