Skip to content

Commit 34cbbac

Browse files
committed
fix GCC warning in DEV7Launcher
1 parent bf0a764 commit 34cbbac

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tools/DEV7Launcher/DEV7Launcher.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,13 @@ void openLicenceFile() {
209209
}
210210
}
211211

212-
int runUNINST() {
212+
void runUNINST() {
213213
std::string uninst = "UNINST.EXE";
214214

215215
if (!fileExists(uninst)) {
216216
std::cout << "Error: " << uninst << " not found in directory.\n" << std::endl;
217217
TaskExecution::pressEnterToExit();
218-
return 1;
218+
return;
219219
}
220220
#ifdef _WIN32
221221
if (system("UNINST.EXE") != 0) {
@@ -228,14 +228,14 @@ int runUNINST() {
228228
#endif
229229
}
230230

231-
int Ed4Intro() {
231+
void Ed4Intro() {
232232
std::string Ed4IntroEXE = "Ed4Intro.exe";
233233

234234
// Check if Ed4Intro.exe exists
235235
if (!fs::exists("Ed4Intro.exe")) {
236236
printf("Error: This directory does not seem to be an Le Pays des pierres magiques game directory.\n");
237237
TaskExecution::pressEnterToExit();
238-
return 1;
238+
return;
239239
}
240240
#ifdef _WIN32
241241
int Ed4Intro = system("Ed4Intro.exe");

0 commit comments

Comments
 (0)