diff --git a/EnforceBindingDLL/EnforceBindings.h b/EnforceBindingDLL/EnforceBindings.h index 9528922..020a197 100644 --- a/EnforceBindingDLL/EnforceBindings.h +++ b/EnforceBindingDLL/EnforceBindings.h @@ -13,7 +13,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ - #pragma once diff --git a/GloSC/GloSC.cpp b/GloSC/GloSC.cpp index d5985a7..1876c4c 100644 --- a/GloSC/GloSC.cpp +++ b/GloSC/GloSC.cpp @@ -88,9 +88,11 @@ void GloSC::updateTargetsToNewVersion() settings.endGroup(); if (!newVersion) - settings.endGroup(); - - on_pbSave_clicked(); + { + QFile file(name + "\\" + name + ".exe"); + file.remove(); + on_pbSave_clicked(); + } } } @@ -142,6 +144,9 @@ void GloSC::on_pbSave_clicked() if (!platformdir.exists()) platformdir.mkdir("."); + QFile file(dir.path() + "\\" + name + ".exe"); + file.remove(); + QFile::copy("platforms\\qwindows.dll", dir.path() + "\\" + "platforms\\qwindows.dll"); QFile::copy("SteamTarget.exe", dir.path() + "\\" + name + ".exe");