diff --git a/UpdCheck/main.cpp b/UpdCheck/main.cpp index ab471aa..8189d60 100644 --- a/UpdCheck/main.cpp +++ b/UpdCheck/main.cpp @@ -50,8 +50,7 @@ wxUpdCheckInitializer::wxUpdCheckInitializer() : if (wxLocale::IsAvailable(language)) wxVERIFY(m_locale.Init(language)); - if (!m_config.Read(wxT("CachePath"), &m_path)) - m_path = wxFileName::GetTempDir(); + m_path = wxFileName::GetTempDir(); if (!wxEndsWithPathSeparator(m_path)) m_path += wxFILE_SEP_PATH; diff --git a/Updater.mak b/Updater.mak deleted file mode 100644 index b4347d7..0000000 --- a/Updater.mak +++ /dev/null @@ -1,50 +0,0 @@ -# -# Copyright 2016 Amebis -# -# This file is part of Updater. -# -# Updater is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Updater is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Updater. If not, see . -# - -!IFNDEF UPDATER_CFG -UPDATER_CFG=HKLM\Software\Amebis\ZRCola\Updater -!ENDIF - -!IFNDEF UPDATER_OUTPUT_DIR -UPDATER_OUTPUT_DIR=output\update -!ENDIF - -!IF "$(PROCESSOR_ARCHITECTURE)" == "AMD64" -UPDATER_REG_FLAGS=/f /reg:64 -UPDATER_REG_FLAGS32=/f /reg:32 -!ELSE -UPDATER_REG_FLAGS=/f -!ENDIF - - -###################################################################### -# Main targets -###################################################################### - -UpdaterRegisterSettings :: - reg.exe add "$(UPDATER_CFG)" /v "CachePath" /t REG_SZ /d "$(MAKEDIR)\$(UPDATER_OUTPUT_DIR)" $(UPDATER_REG_FLAGS) > NUL -!IF "$(PROCESSOR_ARCHITECTURE)" == "AMD64" - reg.exe add "$(UPDATER_CFG)" /v "CachePath" /t REG_SZ /d "$(MAKEDIR)\$(UPDATER_OUTPUT_DIR)" $(UPDATER_REG_FLAGS32) > NUL -!ENDIF - -UpdaterUnregisterSettings :: - -reg.exe delete "$(UPDATER_CFG)" /v "CachePath" $(UPDATER_REG_FLAGS) > NUL -!IF "$(PROCESSOR_ARCHITECTURE)" == "AMD64" - -reg.exe delete "$(UPDATER_CFG)" /v "CachePath" $(UPDATER_REG_FLAGS32) > NUL -!ENDIF