From c54681df8cd5fa4b5e5aeefc7ae8f424efc695d5 Mon Sep 17 00:00:00 2001 From: JiWoong Sul Date: Thu, 19 Mar 2026 17:38:05 +0900 Subject: [PATCH] =?UTF-8?q?fix(security):=20=EB=A6=B4=EB=A6=AC=EC=A6=88=20?= =?UTF-8?q?=EB=B9=8C=EB=93=9C=EC=97=90=EC=84=9C=20=EC=B9=98=ED=8A=B8=20?= =?UTF-8?q?=EB=A9=94=EB=89=B4=20=EC=99=84=EC=A0=84=20=EC=B0=A8=EB=8B=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - cheatsEnabled getter에 kDebugMode 가드 추가 - 세이브 파일에 cheatsEnabled=true가 저장되어도 릴리즈에서 무조건 false - tree-shaking으로 릴리즈 바이너리에서 치트 코드 완전 제거 --- lib/src/features/game/game_session_controller.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/features/game/game_session_controller.dart b/lib/src/features/game/game_session_controller.dart index 7176d3e..ec6aa05 100644 --- a/lib/src/features/game/game_session_controller.dart +++ b/lib/src/features/game/game_session_controller.dart @@ -94,7 +94,7 @@ class GameSessionController extends ChangeNotifier { GameState? get state => _state; String? get error => _error; bool get isRunning => _status == GameSessionStatus.running; - bool get cheatsEnabled => _cheatsEnabled; + bool get cheatsEnabled => kDebugMode && _cheatsEnabled; /// 자동 부활 활성화 여부 bool get autoResurrect => _resurrectionManager.autoResurrect;