summaryrefslogtreecommitdiffstats
path: root/mmc_updater/src/AppInfo.cpp
blob: a5a9bb632498f001b5ad05e270f9b3761f92d7f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "AppInfo.h"

#include "FileUtils.h"
#include "Platform.h"
#include "StringUtils.h"
#include "StandardDirs.h"

#include <iostream>

std::string AppInfo::logFilePath()
{
	return StandardDirs::appDataPath(organizationName(),appName())  + '/' + "update-log.txt";
}

std::string AppInfo::updateErrorMessage(const std::string& details)
{
	std::string result = "There was a problem installing the update:\n\n";
	result += details;
	result += "\n\nYou can try downloading and installing the latest version of "
	          "MultiMC from http://multimc.org/";
	return result;
}