Skip to content

Commit

Permalink
Checkin. First release for development of client distribution system.
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Löpke committed Dec 9, 2018
1 parent 3776255 commit 51a3f17
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Launcher/OpenGMPLauncher.pro
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ SOURCES += main.cpp \
../../lib/ZenLib/utils/logger.cpp \
Systems/jsonFile.cpp \
Systems/serverCommunicator.cpp \
Systems/clientInstallation.cpp \
Objects/lserver.cpp \
frmMainSettings.cpp \
frmMain.cpp
Expand All @@ -49,6 +50,7 @@ HEADERS += \
../Shared/Objects/server.hpp \
Systems/jsonFile.hpp \
Systems/serverCommunicator.hpp \
Systems/clientInstallation.hpp \
Objects/lserver.hpp \
frmMainSettings.h \
frmMain.h
Expand Down
11 changes: 11 additions & 0 deletions src/Launcher/Systems/clientInstallation.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#include "clientInstallation.hpp"
#include <ZenLib/utils/logger.h>
#include <QStandardPaths>

using namespace OpenGMP;

ClientInstallation::ClientInstallation(Version &version)
: version(version)
{
//LogInfo() << "Will install clients here: " << QStandardPaths::writableLocation(QStandardPaths::AppDataLocation).toStdString();
}
20 changes: 20 additions & 0 deletions src/Launcher/Systems/clientInstallation.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#pragma once

#include <Shared/Components/version.hpp>
#include <string>

namespace OpenGMP
{
/**
* @brief The ClientInstallation class manages installations.
* Intended to check installations, get new versions, etc.
*/
class ClientInstallation
{
public:
ClientInstallation(Version &version);

std::string installationDirectory;
Version version;
};
}
1 change: 1 addition & 0 deletions src/Launcher/frmMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ FrmMain::FrmMain(QWidget *parent)
if(ServerStorage::LoadWebServerlist("raw.githubusercontent.com", "/ErrorFlexXx/OpenGMP/master/ServerList/serverList.json", serverList))
ServerStorage::StoreCachedServerList("Serverlist.json", serverList); //Save to local cache.
UpdateFrmServerList(); //Insert treeView items to form.
//Create Updater Thread:
serverCommunicator = new QThread();
serverCommunicatorTask = new ServerCommunicator(parent);
serverCommunicatorTask->SetServerList(serverList);
Expand Down

0 comments on commit 51a3f17

Please sign in to comment.