File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -217,10 +217,12 @@ private static void Migrate(string path)
217217 continue ;
218218
219219 case ( Version . V_2_11_1 ) : // https://github.com/CnCNet/xna-cncnet-client/releases/tag/2.11.1.0
220- // Add ClientDefinitions.ini->[Settings]->RecommendedResolutions
221- AddKeyWithLog ( clientDefsIni , "Settings" , "RecommendedResolutions" , "1280x720" ) ;
220+ // Add ClientDefinitions.ini->[Settings]->RecommendedResolutions, MaximumRenderWidth, MaximumRenderHeight
222221 AddKeyWithLog ( clientDefsIni , "Settings" , "MaximumRenderWidth" , "1280" ) ;
223222 AddKeyWithLog ( clientDefsIni , "Settings" , "MaximumRenderHeight" , "720" ) ;
223+ var width = clientDefsIni . GetStringValue ( "Settings" , "MaximumRenderWidth" , "1280" ) ;
224+ var height = clientDefsIni . GetStringValue ( "Settings" , "MaximumRenderHeight" , "720" ) ;
225+ AddKeyWithLog ( clientDefsIni , "Settings" , "RecommendedResolutions" , $ "{ width } x{ height } ") ;
224226 clientDefsIni . WriteIniFile ( ) ;
225227 continue ;
226228
You can’t perform that action at this time.
0 commit comments