mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-30 21:15:35 +00:00
1f2bed2ef1
Just running the Java process and giving it params on the command line
43 lines
682 B
C++
43 lines
682 B
C++
#pragma once
|
|
|
|
#include "multimc_logic_export.h"
|
|
#include <QString>
|
|
|
|
class MULTIMC_LOGIC_EXPORT JavaVersion
|
|
{
|
|
friend class JavaVersionTest;
|
|
public:
|
|
JavaVersion() {};
|
|
JavaVersion(const QString & rhs);
|
|
|
|
JavaVersion & operator=(const QString & rhs);
|
|
|
|
bool operator<(const JavaVersion & rhs);
|
|
bool operator==(const JavaVersion & rhs);
|
|
bool operator>(const JavaVersion & rhs);
|
|
|
|
bool requiresPermGen();
|
|
|
|
QString toString();
|
|
|
|
int major()
|
|
{
|
|
return m_major;
|
|
}
|
|
int minor()
|
|
{
|
|
return m_minor;
|
|
}
|
|
int security()
|
|
{
|
|
return m_security;
|
|
}
|
|
private:
|
|
QString m_string;
|
|
int m_major = 0;
|
|
int m_minor = 0;
|
|
int m_security = 0;
|
|
bool m_parseable = false;
|
|
QString m_prerelease;
|
|
};
|