Skip to content

Commit

Permalink
fix: SteamTarget not beeing updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Alia5 committed Nov 26, 2016
1 parent c7e0d37 commit 3dbd4de
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
1 change: 0 additions & 1 deletion EnforceBindingDLL/EnforceBindings.h
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
11 changes: 8 additions & 3 deletions GloSC/GloSC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
}

Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit 3dbd4de

Please sign in to comment.