VERY experimental Nintendo Switch 2 emulator
C++
video_core/ast: Make ShowCurrentState() take a string_view instead of std::string
Lioncash2d2dd7bf7b4d
diff --git a/src/video_core/shader/ast.cpp b/src/video_core/shader/ast.cppindex 6eba780252..436d45f4bb 100644--- a/src/video_core/shader/ast.cpp+++ b/src/video_core/shader/ast.cpp@@ -549,7 +549,7 @@ bool ASTManager::DirectlyRelated(const ASTNode& first, const ASTNode& second) coreturn min->GetParent() == max->GetParent();}-void ASTManager::ShowCurrentState(std::string state) {+void ASTManager::ShowCurrentState(std::string_view state) {LOG_CRITICAL(HW_GPU, "\nState {}:\n\n{}\n", state, Print());SanityCheck();}diff --git a/src/video_core/shader/ast.h b/src/video_core/shader/ast.hindex d280ed1435..5a77c60cb0 100644--- a/src/video_core/shader/ast.h+++ b/src/video_core/shader/ast.h@@ -332,7 +332,7 @@ public:void Decompile();- void ShowCurrentState(std::string state);+ void ShowCurrentState(std::string_view state);void SanityCheck();