Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

core: Mark GetInstance() as deprecated

Lioncashdba567cfbfb2
diff --git a/src/core/core.h b/src/core/core.h
index 83ded63a58..27efe30bb4 100644
--- a/src/core/core.h
+++ b/src/core/core.h
@@ -120,7 +120,7 @@ public:
* Gets the instance of the System singleton class.
* @returns Reference to the instance of the System singleton class.
*/
- static System& GetInstance() {
+ [[deprecated("Use of the global system instance is deprecated")]] static System& GetInstance() {
return s_instance;
}