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,11 @@ 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
220+ // Add ClientDefinitions.ini->[Settings]->RecommendedResolutions, MaximumRenderWidth, MaximumRenderHeight
221221 AddKeyWithLog ( clientDefsIni , "Settings" , "RecommendedResolutions" , "1280x720" ) ;
222- AddKeyWithLog ( clientDefsIni , "Settings" , "MaximumRenderWidth" , "1280" ) ;
223- AddKeyWithLog ( clientDefsIni , "Settings" , "MaximumRenderHeight" , "720" ) ;
222+ var rr = clientDefsIni . GetStringValue ( "Settings" , "RecommendedResolutions" , "1280x720" ) ;
223+ AddKeyWithLog ( clientDefsIni , "Settings" , "MaximumRenderWidth" , rr . Split ( 'x' ) [ 0 ] ) ;
224+ AddKeyWithLog ( clientDefsIni , "Settings" , "MaximumRenderHeight" , rr . Split ( 'x' ) [ 1 ] ) ;
224225 clientDefsIni . WriteIniFile ( ) ;
225226 continue ;
226227
You can’t perform that action at this time.
0 commit comments