diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-07-28 08:40:15 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-07-28 08:40:15 +0200 |
commit | 9d99b539bfaabe45a43948edf37e900401288f65 (patch) | |
tree | b583a7649dfa59597f352a41ed641b373f130436 /libmultimc/src/fullversion.cpp | |
parent | a7a84d4dbb58565f108cb0886da6cb786e34d10d (diff) | |
download | MultiMC-9d99b539bfaabe45a43948edf37e900401288f65.tar MultiMC-9d99b539bfaabe45a43948edf37e900401288f65.tar.gz MultiMC-9d99b539bfaabe45a43948edf37e900401288f65.tar.lz MultiMC-9d99b539bfaabe45a43948edf37e900401288f65.tar.xz MultiMC-9d99b539bfaabe45a43948edf37e900401288f65.zip |
Parsing the version files, part IV
Also, start of big refactors.
Diffstat (limited to 'libmultimc/src/fullversion.cpp')
-rw-r--r-- | libmultimc/src/fullversion.cpp | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/libmultimc/src/fullversion.cpp b/libmultimc/src/fullversion.cpp index 53664c2a..24047c9f 100644 --- a/libmultimc/src/fullversion.cpp +++ b/libmultimc/src/fullversion.cpp @@ -2,4 +2,28 @@ #include "fullversion.h" #include <library.h> -// ECHO, echo, echo, ....
\ No newline at end of file +QList<QSharedPointer<Library> > FullVersion::getActiveNormalLibs() +{ + QList<QSharedPointer<Library> > output; + for ( auto lib: libraries ) + { + if (lib->getIsActive() && !lib->getIsNative()) + { + output.append(lib); + } + } + return output; +} + +QList<QSharedPointer<Library> > FullVersion::getActiveNativeLibs() +{ + QList<QSharedPointer<Library> > output; + for ( auto lib: libraries ) + { + if (lib->getIsActive() && lib->getIsNative()) + { + output.append(lib); + } + } + return output; +} |