@@ -67,14 +67,13 @@ private static bool CheckSignatures(Action action, Il2CppSystem.Guid gameId)
6767 }
6868 if ( ! doChecksumsMatch )
6969 {
70- BasicPopup popup = PopupManager . GetBasicPopup ( ) ;
71- popup . Header = Localization . Get ( "polymod.signature.mismatch" ) ;
72- popup . Description = Localization . Get ( "polymod.signature.incompatible" ) ;
73- popup . buttonData = new PopupBase . PopupButtonData [ ] {
74- new ( "OK" )
75- } ;
76-
77- popup . Show ( ) ;
70+ PopupManager . GetBasicPopupWithData ( new (
71+ Localization . Get ( "polymod.signature.mismatch" ) ,
72+ Localization . Get ( "polymod.signature.incompatible" ) ,
73+ new ( new PopupBase . PopupButtonData [ ] {
74+ new ( "OK" )
75+ } )
76+ ) ) . Show ( ) ;
7877
7978 return false ;
8079 }
@@ -116,20 +115,21 @@ private static void StartScreen_UI2_OnShow()
116115 ) ;
117116 PlayerPrefs . Save ( ) ;
118117
119- BasicPopup popup = PopupManager . GetBasicPopup ( ) ;
120- popup . Header = Localization . Get ( "polymod.version.mismatch" ) ;
121- popup . Description = Localization . Get ( "polymod.version.mismatch.description" ) ;
122- popup . buttonData = new PopupBase . PopupButtonData [ ] {
123- new ( "buttons.stay" , customColorStates : ColorConstants . redButtonColorStates ) ,
124- new (
125- "buttons.exitgame" ,
126- PopupBase . PopupButtonData . States . None ,
127- ( Il2CppSystem . Action ) Application . Quit ,
128- closesPopup : false
129- )
130- } ;
131-
132- popup . Show ( ) ;
118+ PopupManager . GetBasicPopupWithData (
119+ new (
120+ Localization . Get ( "polymod.version.mismatch" ) ,
121+ Localization . Get ( "polymod.version.mismatch.description" ) ,
122+ new PopupBase . PopupButtonData [ ] {
123+ new ( "buttons.stay" , customColorStates : ColorConstants . redButtonColorStates ) ,
124+ new (
125+ "buttons.exitgame" ,
126+ PopupBase . PopupButtonData . States . None ,
127+ ( Il2CppSystem . Action ) Application . Quit ,
128+ closesPopup : false
129+ )
130+ }
131+ )
132+ ) . Show ( ) ;
133133 }
134134 }
135135
0 commit comments