Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
FynnTW committed Oct 6, 2024
2 parents 64b709c + 9a650d6 commit d635e80
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions M2TWEOP Code/M2TWEOP GUI/gameRunnerUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ namespace gameRunnerUI

void maintainGUI()
{
if ((startProcess.isRunEnded == true && startProcess.isGetResponse == true))
if (startProcess.isRunEnded == true && startProcess.isGetResponse == true)
{
std::this_thread::sleep_for(std::chrono::seconds(3));
if (helpers::isProcessRunning(dataG::data.gameData.exeName) == false)
Expand All @@ -109,7 +109,7 @@ namespace gameRunnerUI
exit(0);
}
}
if ((dataG::data.gameData.freecamIntegration == true && dataG::data.gameData.freecamStarted == false && helpers::isProcessRunning(dataG::data.gameData.exeName) == true))
if ((dataG::data.gameData.freecamIntegration == true) && (dataG::data.gameData.freecamStarted == false) && (helpers::isProcessRunning(dataG::data.gameData.exeName) == true))
{
std::this_thread::sleep_for(std::chrono::seconds(5));
// Open Freecam if we are using the integration after waiting a bit for the game to start
Expand Down
6 changes: 3 additions & 3 deletions M2TWEOP Code/M2TWEOP GUI/mainUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace mainUI
bool isModSettingsUIOpen = false;

bool isGameRunnerUIOpen = false;
bool isDiscordUIOpen = false;
bool keepGuiOpen = false;
} childs;

void tryJustStartMod()
Expand Down Expand Up @@ -63,11 +63,11 @@ namespace mainUI
{
int openStatus = gameRunnerUI::drawUI(&childs.isGameRunnerUIOpen);
if (openStatus == 2) {
childs.isDiscordUIOpen = true;
childs.keepGuiOpen = true;
}
return 0;
}
else if (childs.isDiscordUIOpen == true || dataG::data.gameData.freecamIntegration == true)
else if (childs.keepGuiOpen == true)
{
gameRunnerUI::maintainGUI();
return 0;
Expand Down
1 change: 1 addition & 0 deletions buildEOP.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ new-item ./M2TWEOPGenerated -itemtype directory -erroraction 'silentlycontinue'

Copy-Item -Path "M2TWEOP DataFiles\*" -Destination "./M2TWEOPGenerated" -recurse

Remove-Item -Path "documentationGenerator\EOPDocs\build\html\.buildinfo" -recurse -erroraction 'silentlycontinue' -Force
Get-ChildItem -Path "documentationGenerator\EOPDocs\build\html\*" -erroraction 'continue'
CopyFilesToFolder "documentationGenerator\EOPDocs\build\html" "./M2TWEOPGenerated/eopData/documentation"

Expand Down
1 change: 1 addition & 0 deletions buildEOPDev_release.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ Remove-Item -Path "./M2TWEOPGenerated/eopData/eopScripts/luaPluginScript.lua" -F
Remove-Item -Path "./M2TWEOPGenerated/eopData/eopScripts/redist" -Force -Recurse -erroraction 'silentlycontinue'
Remove-Item -Path "./M2TWEOPGenerated/eopData/eopScripts/helpers" -Force -Recurse -erroraction 'silentlycontinue'
Remove-Item -Path "./M2TWEOPGenerated/eopData/config" -recurse -erroraction 'silentlycontinue' -Force
Remove-Item -Path "documentationGenerator\EOPDocs\build\html\.buildinfo" -recurse -erroraction 'silentlycontinue' -Force
Remove-Item -Path "./.vs" -recurse -erroraction 'silentlycontinue' -Force

Get-ChildItem -Path "documentationGenerator\EOPDocs\build\html\*" -erroraction 'continue'
Expand Down

0 comments on commit d635e80

Please sign in to comment.