1129 registry_hkcr.setValue("Hedgewars.Save/Default", tr("Hedgewars Save File", "File Types")); |
1129 registry_hkcr.setValue("Hedgewars.Save/Default", tr("Hedgewars Save File", "File Types")); |
1130 registry_hkcr.setValue("Hedgewars.Demo/DefaultIcon/Default", "\"" + bindir->absolutePath().replace("/", "\\") + "\\hwdfile.ico\",0"); |
1130 registry_hkcr.setValue("Hedgewars.Demo/DefaultIcon/Default", "\"" + bindir->absolutePath().replace("/", "\\") + "\\hwdfile.ico\",0"); |
1131 registry_hkcr.setValue("Hedgewars.Save/DefaultIcon/Default", "\"" + bindir->absolutePath().replace("/", "\\") + "\\hwsfile.ico\",0"); |
1131 registry_hkcr.setValue("Hedgewars.Save/DefaultIcon/Default", "\"" + bindir->absolutePath().replace("/", "\\") + "\\hwsfile.ico\",0"); |
1132 registry_hkcr.setValue("Hedgewars.Demo/Shell/Open/Command/Default", "\"" + bindir->absolutePath().replace("/", "\\") + "\\hwengine.exe\" \"" + datadir->absolutePath().replace("/", "\\") + "\" \"%1\""); |
1132 registry_hkcr.setValue("Hedgewars.Demo/Shell/Open/Command/Default", "\"" + bindir->absolutePath().replace("/", "\\") + "\\hwengine.exe\" \"" + datadir->absolutePath().replace("/", "\\") + "\" \"%1\""); |
1133 registry_hkcr.setValue("Hedgewars.Save/Shell/Open/Command/Default", "\"" + bindir->absolutePath().replace("/", "\\") + "\\hwengine.exe\" \"" + datadir->absolutePath().replace("/", "\\") + "\" \"%1\""); |
1133 registry_hkcr.setValue("Hedgewars.Save/Shell/Open/Command/Default", "\"" + bindir->absolutePath().replace("/", "\\") + "\\hwengine.exe\" \"" + datadir->absolutePath().replace("/", "\\") + "\" \"%1\""); |
|
1134 #elif defined __APPLE__ |
|
1135 success = false; |
|
1136 // TODO; also reenable button in pages.cpp |
1134 #else |
1137 #else |
1135 if (success) success = checkForDir(QDir::home().absolutePath() + "/.local"); |
1138 if (success) success = checkForDir(QDir::home().absolutePath() + "/.local"); |
1136 if (success) success = checkForDir(QDir::home().absolutePath() + "/.local/share"); |
1139 if (success) success = checkForDir(QDir::home().absolutePath() + "/.local/share"); |
1137 if (success) success = checkForDir(QDir::home().absolutePath() + "/.local/share/mime"); |
1140 if (success) success = checkForDir(QDir::home().absolutePath() + "/.local/share/mime"); |
1138 if (success) success = checkForDir(QDir::home().absolutePath() + "/.local/share/mime/packages"); |
1141 if (success) success = checkForDir(QDir::home().absolutePath() + "/.local/share/mime/packages"); |