Fix box art caching location and cleanup of cache directory by the uninstaller
This commit is contained in:
parent
856318f947
commit
957a2b2169
2 changed files with 8 additions and 6 deletions
12
app/main.cpp
12
app/main.cpp
|
|
@ -131,6 +131,13 @@ void qtLogToDiskHandler(QtMsgType type, const QMessageLogContext&, const QString
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
// Set these here to allow us to use the default QSettings constructor.
|
||||||
|
// These also ensure that our cache directory is named correctly. As such,
|
||||||
|
// it is critical that these be called before Path::initialize().
|
||||||
|
QCoreApplication::setOrganizationName("Moonlight Game Streaming Project");
|
||||||
|
QCoreApplication::setOrganizationDomain("moonlight-stream.com");
|
||||||
|
QCoreApplication::setApplicationName("Moonlight");
|
||||||
|
|
||||||
if (QFile(QDir::currentPath() + "/portable.dat").exists()) {
|
if (QFile(QDir::currentPath() + "/portable.dat").exists()) {
|
||||||
qInfo() << "Running in portable mode from:" << QDir::currentPath();
|
qInfo() << "Running in portable mode from:" << QDir::currentPath();
|
||||||
QSettings::setDefaultFormat(QSettings::IniFormat);
|
QSettings::setDefaultFormat(QSettings::IniFormat);
|
||||||
|
|
@ -172,11 +179,6 @@ int main(int argc, char *argv[])
|
||||||
qputenv("QT_OPENGL", "angle");
|
qputenv("QT_OPENGL", "angle");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Set these here to allow us to use the default QSettings constructor
|
|
||||||
QCoreApplication::setOrganizationName("Moonlight Game Streaming Project");
|
|
||||||
QCoreApplication::setOrganizationDomain("moonlight-stream.com");
|
|
||||||
QCoreApplication::setApplicationName("Moonlight");
|
|
||||||
|
|
||||||
// Register custom metatypes for use in signals
|
// Register custom metatypes for use in signals
|
||||||
qRegisterMetaType<NvApp>("NvApp");
|
qRegisterMetaType<NvApp>("NvApp");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@
|
||||||
</Directory>
|
</Directory>
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
<Property Id="APPDATAFOLDER">%LOCALAPPDATA%\Moonlight Game Streaming</Property>
|
<Property Id="APPDATAFOLDER">%LOCALAPPDATA%\Moonlight Game Streaming Project</Property>
|
||||||
|
|
||||||
<!-- There's no way to delete a registry key on uninstall but not major upgrade, so
|
<!-- There's no way to delete a registry key on uninstall but not major upgrade, so
|
||||||
we have to roll our own deletion via custom action -->
|
we have to roll our own deletion via custom action -->
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue