49cb564d14
* par is kept at -Np0 ```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
42 lines
1.2 KiB
Diff
42 lines
1.2 KiB
Diff
From 6b7f20a9e048e4bd9d7760cb72e6335aee8155d4 Mon Sep 17 00:00:00 2001
|
|
From: John Zimmermann <me@johnnynator.dev>
|
|
Date: Thu, 2 Jul 2020 12:24:45 +0200
|
|
Subject: [PATCH] Allow running on systems without wx stackwalkler
|
|
|
|
closes #2796
|
|
---
|
|
pcsx2/gui/AppAssert.cpp | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
diff --git pcsx2/gui/AppAssert.cpp pcsx2/gui/AppAssert.cpp
|
|
index a282715c4e..4ce151f86f 100644
|
|
--- a/pcsx2/gui/AppAssert.cpp
|
|
+++ b/pcsx2/gui/AppAssert.cpp
|
|
@@ -19,6 +19,7 @@
|
|
|
|
#include <wx/stackwalk.h>
|
|
|
|
+#if wxUSE_STACKWALKER
|
|
class StackDump : public wxStackWalker
|
|
{
|
|
protected:
|
|
@@ -94,6 +95,7 @@ static wxString pxGetStackTrace( const FnChar_t* calledFrom )
|
|
dump.Walk( 3 );
|
|
return dump.GetStackTrace();
|
|
}
|
|
+#endif
|
|
|
|
#ifdef __WXDEBUG__
|
|
|
|
@@ -122,7 +124,11 @@ bool AppDoAssert( const DiagnosticOrigin& origin, const wxChar *msg )
|
|
static bool disableAsserts = false;
|
|
if( disableAsserts ) return false;
|
|
|
|
+#if wxUSE_STACKWALKER
|
|
wxString trace( pxGetStackTrace(origin.function) );
|
|
+#else
|
|
+ wxString trace( "Warning: Platform doesn't support wx stackwalker" );
|
|
+#endif
|
|
wxString dbgmsg( origin.ToString( msg ) );
|
|
|
|
wxMessageOutputDebug().Printf( L"%s", WX_STR(dbgmsg) );
|