File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ class SyringeDebugger
3333 static constexpr BYTE NOP = 0x90 ;
3434
3535 static constexpr std::string_view INCLUDE_FLAG = " -i=" ;
36+ static constexpr std::string_view DETACH_FLAG = " --detach" ;
3637 static constexpr std::string_view NODETACH_FLAG = " --nodetach" ;
3738 static constexpr std::string_view NOWAIT_FLAG = " --nowait" ;
3839 static constexpr std::string_view HANDSHAKES_FLAG = " --handshakes" ;
@@ -50,6 +51,10 @@ class SyringeDebugger
5051 {
5152 dlls.emplace_back (flagView.begin () + pos + INCLUDE_FLAG .size (), flagView.end ());
5253 }
54+ else if (auto const pos = flagView.find (DETACH_FLAG ); pos != std::string_view::npos)
55+ {
56+ bDetachWhenDone = true ;
57+ }
5358 else if (auto const pos = flagView.find (NODETACH_FLAG ); pos != std::string_view::npos)
5459 {
5560 bDetachWhenDone = false ;
@@ -186,7 +191,7 @@ class SyringeDebugger
186191 DWORD dwExeSize{ 0u };
187192 DWORD dwExeCRC{ 0u };
188193
189- bool bDetachWhenDone{ true };
194+ bool bDetachWhenDone{ false };
190195 bool bWaitForProcessEnd{ true };
191196 bool bHandshakes{ false };
192197
You can’t perform that action at this time.
0 commit comments