ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/DC/Main.pm
(Generate patch)

Comparing deliantra/Deliantra-Client/DC/Main.pm (file contents):
Revision 1.20 by root, Thu Apr 5 04:38:43 2012 UTC vs.
Revision 1.31 by root, Mon Nov 19 00:56:08 2018 UTC

25BEGIN { *time = \&EV::time } 25BEGIN { *time = \&EV::time }
26 26
27use List::Util qw(max min); 27use List::Util qw(max min);
28 28
29use Deliantra; 29use Deliantra;
30use Deliantra::Util;
30use Deliantra::Protocol::Constants; 31use Deliantra::Protocol::Constants;
31 32
32use AnyEvent::Util (); 33use AnyEvent::Util ();
33use AnyEvent::Socket (); 34use AnyEvent::Socket ();
34use AnyEvent::DNS (); 35use AnyEvent::DNS ();
73use DC::MessageDistributor; 74use DC::MessageDistributor;
74use DC::Pod; 75use DC::Pod;
75use DC::MapWidget; 76use DC::MapWidget;
76use DC::Macro; 77use DC::Macro;
77 78
79# printf "%5d %5d %5d %5d\n", $_, DC::minpot $_, DC::ld32 $_, 2 << ((DC::ld32 $_ - 1));
80
78$SIG{QUIT} = sub { Carp::cluck "QUIT" }; 81$SIG{QUIT} = sub { Carp::cluck "QUIT" };
79$SIG{PIPE} = 'IGNORE'; 82$SIG{PIPE} = 'IGNORE';
80 83
81$EV::DIED = sub { 84$EV::DIED = sub {
82 crash "CRASH/EV::DIED: $@" => 0; 85 crash "CRASH/EV::DIED: $@" => 0;
128our $MENUBAR; # the hbox at the top 131our $MENUBAR; # the hbox at the top
129our $MENUPOPUP; 132our $MENUPOPUP;
130our $BUTTONBAR; # the menu buttons 133our $BUTTONBAR; # the menu buttons
131our $METASERVER; 134our $METASERVER;
132our $LOGIN_BUTTON; 135our $LOGIN_BUTTON;
136our $LOGIN_ERROR;
133our $QUIT_DIALOG; 137our $QUIT_DIALOG;
134our $HOST_ENTRY; 138our $HOST_ENTRY;
135our $FULLSCREEN_ENABLE; 139our $FULLSCREEN_ENABLE;
136our $PICKUP_ENABLE; 140our $PICKUP_ENABLE;
137our $SERVER_INFO; 141our $SERVER_INFO;
251 : "[<span foreground='#888'>num</span>]"; 255 : "[<span foreground='#888'>num</span>]";
252 256
253 # <tt> around next statement works around some bug that keeps the 257 # <tt> around next statement works around some bug that keeps the
254 # "font =>" from being used on windows 258 # "font =>" from being used on windows
255 $MODBOX->set_markup ("<tt>$markup</tt>"); 259 $MODBOX->set_markup ("<tt>$markup</tt>");
260}
261
262sub errorbox {
263 my ($msg) = @_;
264
265 status $msg;
266
267 my $dialog = new DC::UI::Toplevel
268 x => "center",
269 y => "center",
270 z => 200,
271 title => "Error",
272 child => my $vbox = new DC::UI::VBox,
273 has_close_button => 1,
274 on_delete => sub {
275 $_[0]->destroy;
276 },
277 ;
278
279 add $vbox new DC::UI::Label
280 align => 0.5,
281 ellipsise => 0,
282 text => $msg;
283
284 add $vbox new DC::UI::Button
285 expand => 1,
286 text => "OK",
287 on_activate => sub {
288 $dialog->destroy;
289 0
290 }
291 ;
292
293 $dialog->show;
256} 294}
257 295
258############################################################################# 296#############################################################################
259#TODO: maybe move into own audio module... 297#TODO: maybe move into own audio module...
260 298
475 audio_music_push; 513 audio_music_push;
476} 514}
477 515
478sub audio_init { 516sub audio_init {
479 if ($CFG->{audio_enable}) { 517 if ($CFG->{audio_enable}) {
480 DC::Audio::init $CFG->{audio_driver}; 518 DC::Audio::init;
481 519
482 if ($SDL_MIXER) { 520 if ($SDL_MIXER) {
483 audio_music_finished; 521 audio_music_finished;
484 } else { 522 } else {
485 status "Unable to open sound device: there will be no sound"; 523 status "Unable to open sound device: there will be no sound";
689 ::message { markup => "Server has no newer version." }; 727 ::message { markup => "Server has no newer version." };
690 } 728 }
691 } else { 729 } else {
692 ::message { markup => "Server does not support software update." }; 730 ::message { markup => "Server does not support software update." };
693 } 731 }
694
695# $self->register_face_handler ($exp_table, sub {
696# my ($face) = @_;
697
698# $self->{exp_table} = $self->{json_coder}->decode (delete $face->{data});
699# $_->() for values %{ $self->{on_exp_update} || {} };
700# });
701 732
702 () 733 ()
703 }); 734 });
704} 735}
705 736
935 $vbox->add (@dialog); 966 $vbox->add (@dialog);
936 $dialog->show; 967 $dialog->show;
937} 968}
938 969
939sub dc_connect { 970sub dc_connect {
940 my ($host, $port) = @_; 971 my ($host, $port, $create) = @_;
941 972
942 my $mapw = List::Util::min 48, List::Util::max 11, int 1.5 + $WIDTH * $CFG->{mapsize} * 0.01 / 32; 973 my $mapw = List::Util::min 48, List::Util::max 11, int 1.5 + $WIDTH * $CFG->{mapsize} * 0.01 / 32;
943 my $maph = List::Util::min 48, List::Util::max 11, int 1.5 + $HEIGHT * $CFG->{mapsize} * 0.01 / 32; 974 my $maph = List::Util::min 48, List::Util::max 11, int 1.5 + $HEIGHT * $CFG->{mapsize} * 0.01 / 32;
944 975
945 $CONN = 976 $CONN =
946 new DC::Protocol 977 new DC::Protocol
947 host => $host, 978 host => $host,
948 port => $port, 979 port => $port,
980 create_login => $create,
949 user => $PROFILE->{user}, 981 user => $PROFILE->{user},
950 pass => $PROFILE->{password}, 982 pass => (pack "H*", $PROFILE->{password}),
951 mapw => $mapw, 983 mapw => $mapw,
952 maph => $maph, 984 maph => $maph,
953 985
954 c_version => { 986 c_version => {
955 client => "deliantra", 987 client => "deliantra",
975 ota_update_check; 1007 ota_update_check;
976 1008
977 status "successfully connected to the server"; 1009 status "successfully connected to the server";
978 } else { 1010 } else {
979 undef $CONN; 1011 undef $CONN;
980 status "unable to connect: $!"; 1012 $LOGIN_ERROR->{fg} = [1, 0, 0];
1013 $LOGIN_ERROR->set_text ("Unable to connect to server: $!");
981 stop_game(); 1014 stop_game();
982 } 1015 }
983 }, 1016 },
1017
1018 on_addme => sub {
1019 my ($ok, $msg) = @_;
1020
1021 $LOGIN_ERROR->{fg} = $ok ? [0, 1, 0] : [1, 0, 0];
1022 $LOGIN_ERROR->set_text ($msg);
1023 },
984 ; 1024 ;
985} 1025}
986 1026
987sub start_game { 1027sub start_game($) {
1028 my ($create) = @_;
1029
988 status "logging in..."; 1030 status "logging in...";
989 1031
990 my $server = $PROFILE->{host} || $DEFAULT_SERVER; 1032 my $server = $PROFILE->{host} || $DEFAULT_SERVER;
991 my ($host, $port) = AnyEvent::Socket::parse_hostport $server, "deliantra=13327" 1033 my ($host, $port) = AnyEvent::Socket::parse_hostport $server, "deliantra=13327"
992 or return status "$server: unable to parse server address, try an empty field."; 1034 or return status "$server: unable to parse server address, try an empty field.";
1007 status "dns failure, using hardcoded address"; 1049 status "dns failure, using hardcoded address";
1008 $host = "194.126.175.154"; 1050 $host = "194.126.175.154";
1009 } 1051 }
1010 } 1052 }
1011 1053
1012 dc_connect $host, $port; 1054 dc_connect $host, $port, $create;
1013 }; 1055 };
1014 } else { 1056 } else {
1015 dc_connect $host, $port; 1057 dc_connect $host, $port, $create;
1016 } 1058 }
1017} 1059}
1018 1060
1019sub stop_game { 1061sub stop_game {
1020 crash "stop_game"; 1062 crash "stop_game";
1138 $table->add_at (0, $row, new DC::UI::Label align => 1, text => "Compress Textures"); 1180 $table->add_at (0, $row, new DC::UI::Label align => 1, text => "Compress Textures");
1139 $table->add_at (1, $row++, new DC::UI::CheckBox 1181 $table->add_at (1, $row++, new DC::UI::CheckBox
1140 state => $CFG->{texture_compression}, 1182 state => $CFG->{texture_compression},
1141 tooltip => "Use texture compression. Normally this will not reduce visual quality noticable but " 1183 tooltip => "Use texture compression. Normally this will not reduce visual quality noticable but "
1142 . "will save a lot of memory and increase performance (and also fall prey to the ever-buggy Mac OS X software renderer). " 1184 . "will save a lot of memory and increase performance (and also fall prey to the ever-buggy Mac OS X software renderer). "
1143 . "The compression algorithm can differ form card to card, so your mileage may vary. This setting is ignored in " 1185 . "The compression algorithm can differ from card to card, so your mileage may vary. This setting is ignored in "
1144 . "forced OpenGL 1.1 mode and when using the Apple renderer.", 1186 . "forced OpenGL 1.1 mode and when using the Apple renderer.",
1145 on_changed => sub { my ($self, $value) = @_; $CFG->{texture_compression} = $value; 0 } 1187 on_changed => sub { my ($self, $value) = @_; $CFG->{texture_compression} = $value; 0 }
1146 ); 1188 );
1147 1189
1148 $table->add_at (0, $row, new DC::UI::Label align => 1, text => "Fast & Ugly"); 1190 $table->add_at (0, $row, new DC::UI::Label align => 1, text => "Fast & Ugly");
1500 $DELIANTRA_DEBUG ^= $_[0]; 1542 $DELIANTRA_DEBUG ^= $_[0];
1501 1543
1502 if ($DELIANTRA_DEBUG & 16) { 1544 if ($DELIANTRA_DEBUG & 16) {
1503 $BW_WATCHER = EV::periodic 0, 1, 0, sub { 1545 $BW_WATCHER = EV::periodic 0, 1, 0, sub {
1504 return unless $CONN; 1546 return unless $CONN;
1505 debug sprintf "%8.2gKB/s", $CONN->{octets_in} / 1e3; 1547 debug sprintf "%8.2gkB/s", $CONN->{octets_in} / 1e3;
1506 $CONN->{octets_in} = 0; 1548 $CONN->{octets_in} = 0;
1507 }; 1549 };
1508 } else { 1550 } else {
1509 undef $BW_WATCHER; 1551 undef $BW_WATCHER;
1510 } 1552 }
1853 $vbox->add (new DC::UI::FancyFrame 1895 $vbox->add (new DC::UI::FancyFrame
1854 label => "Login Settings", 1896 label => "Login Settings",
1855 child => (my $table = new DC::UI::Table expand => 1, col_expand => [0, 1]), 1897 child => (my $table = new DC::UI::Table expand => 1, col_expand => [0, 1]),
1856 ); 1898 );
1857 1899
1900 my $nullpw = "\x00" x 16;
1901
1858 $table->add_at (0, 4, new DC::UI::Label align => 1, text => "Username"); 1902 $table->add_at (0, 0, new DC::UI::Label align => 1, text => "Username");
1859 $table->add_at (1, 4, new DC::UI::Entry 1903 $table->add_at (1, 0, new DC::UI::Entry
1860 text => $PROFILE->{user}, 1904 text => $PROFILE->{user},
1861 tooltip => "The name of your character on the server. The name is case-sensitive!", 1905 tooltip => "The name of your character on the server. The name is case-sensitive!",
1862 on_changed => sub { my ($self, $value) = @_; $PROFILE->{user} = $value; 1 } 1906 on_changed => sub { my ($self, $value) = @_; $PROFILE->{user} = $value; 1 }
1863 ); 1907 );
1864 1908
1865 $table->add_at (0, 5, new DC::UI::Label align => 1, text => "Password"); 1909 $table->add_at (0, 1, new DC::UI::Label align => 1, text => "Password");
1866 $table->add_at (1, 5, new DC::UI::Entry 1910 $table->add_at (1, 1, my $pw1 = new DC::UI::Entry
1867 text => $PROFILE->{password}, 1911 text => $PROFILE->{password} ? $nullpw : "",
1868 hidden => 1, 1912 hidden => 1,
1869 tooltip => "The password for your character.", 1913 tooltip => "The password for your character.",
1870 on_changed => sub { my ($self, $value) = @_; $PROFILE->{password} = $value; 1 } 1914 on_focus_in => sub {
1915 my ($self) = @_;
1916 $self->set_text ("")
1917 if $self->{text} eq $nullpw;
1918 0
1919 },
1920 on_changed => sub {
1921 my ($self, $value) = @_;
1922 $PROFILE->{password} = unpack "H*", Deliantra::Util::hash_pw $value
1923 if length $value && $value ne $nullpw;
1924 1
1925 },
1871 ); 1926 );
1872 1927
1873 $table->add_at (1, 11, $LOGIN_BUTTON = new DC::UI::Button 1928 $table->add_at (1, 2, $LOGIN_BUTTON = new DC::UI::Button
1874 expand => 1, 1929 expand => 1,
1875 text => "Login / Register", 1930 text => "Login to Existing Account",
1876 tooltip => "This button will either login to the account configured above or register a new account.", 1931 tooltip => "This button will login to the account given by the <b>Username</b> and <b>Password</b> fields above.",
1877 on_activate => sub { 1932 on_activate => sub {
1878 $CONN ? stop_game 1933 $CONN ? stop_game
1879 : start_game; 1934 : start_game 0;
1880 1 1935 1
1881 }, 1936 },
1882 ); 1937 );
1883 1938
1939 $table->add_at (0, 3, new DC::UI::Label align => 1, text => "Password");
1940 $table->add_at (1, 3, my $pw2 = new DC::UI::Entry
1941 hidden => 1,
1942 tooltip => "The new password for your character",
1943 );
1944
1945 $table->add_at (1, 4, new DC::UI::Button
1946 expand => 1,
1947 text => "Create New Account",
1948 tooltip => "This button will try to create a new account - you need to fill out the <b>Username</b> and the two <b>Password</b> fields above, using the same password for both <b>Password</b> fields.",
1949 on_activate => sub {
1950 if ($pw1->{text} ne $pw2->{text}) {
1951 $LOGIN_ERROR->{fg} = [1, 0, 0];
1952 $LOGIN_ERROR->set_text ("The passwords do not match - try to enter them again.");
1953 } else {
1954 $CONN or start_game 1;
1955 }
1956 1
1957 },
1958 );
1959
1960 $vbox->add (new DC::UI::FancyFrame
1961 label => "Server Message",
1962 tooltip => "The last message, or error, from the server.",
1963 child => ($LOGIN_ERROR = new DC::UI::Label valign => 0, ellipsise => 0),
1964 );
1965
1884 $vbox->add (new DC::UI::FancyFrame 1966 $vbox->add (new DC::UI::FancyFrame
1885 label => "How to Play", 1967 label => "How to Play",
1886 min_h => 240, 1968 min_h => 240,#d# should not be necessary - widget bug
1887 child => (new DC::UI::Label valign => 0, ellipsise => 0, 1969 child => (new DC::UI::Label valign => 0, ellipsise => 0,
1888 markup => 1970 markup =>
1889 "First select a suitable video resolution in the <b>Graphics</b> tab, above.\n\n" 1971 "First select a suitable video resolution in the <b>Graphics</b> tab, above.\n\n"
1890 . "Then register a new account (or use an existing one if you have one). " 1972 . "Then create a new account (or use an existing one if you have one).\n\n"
1891 . "To register an account, choose a username that hasn't been taken yet (just guess) and " 1973 . "To create an account, choose a username that hasn't been taken yet (just guess) and "
1892 . "try to log-in. Follow the instructions in the Log tab in the message window.", 1974 . "fill out the top two <b>Password</b> fields using the same password, then press <b>Create New Account</b>.",
1893 ), 1975 ),
1894 ); 1976 );
1895 1977
1896 $vbox 1978 $vbox
1897} 1979}
1948 $table->add_at (0, ++$row, new DC::UI::Label align => 1, text => "Output-Rate"); 2030 $table->add_at (0, ++$row, new DC::UI::Label align => 1, text => "Output-Rate");
1949 $table->add_at (1, $row, new DC::UI::Entry 2031 $table->add_at (1, $row, new DC::UI::Entry
1950 text => $CFG->{output_rate}, 2032 text => $CFG->{output_rate},
1951 tooltip => "The maximum bandwidth in bytes per second that the server should not exceed " 2033 tooltip => "The maximum bandwidth in bytes per second that the server should not exceed "
1952 . "when sending data. When 0 or unset, the server " 2034 . "when sending data. When 0 or unset, the server "
1953 . "default will be used, which is usually around 100kb/s. Most servers will " 2035 . "default will be used, which is usually around 100kB/s. Most servers will "
1954 . "dynamically find an optimal rate, so adjust this only when necessary.", 2036 . "dynamically find an optimal rate, so adjust this only when necessary.",
1955 on_changed => sub { $CFG->{output_rate} = $_[1]; 1 }, 2037 on_changed => sub { $CFG->{output_rate} = $_[1]; 1 },
1956 ); 2038 );
1957 2039
1958 $vbox->add (new DC::UI::FancyFrame 2040 $vbox->add (new DC::UI::FancyFrame
2515 make_playerbook; 2597 make_playerbook;
2516 2598
2517 $MENUPOPUP = DC::UI::Menu->new (items => [ 2599 $MENUPOPUP = DC::UI::Menu->new (items => [
2518 ["Setup…\tF9" , sub { $SETUP_DIALOG->toggle_visibility }], 2600 ["Setup…\tF9" , sub { $SETUP_DIALOG->toggle_visibility }],
2519 ["Playerbook…\tTab" , sub { $PL_WINDOW ->toggle_visibility }], 2601 ["Playerbook…\tTab" , sub { $PL_WINDOW ->toggle_visibility }],
2520 ["…Statistics\tF2" , sub { toggle_player_page ($::STATS_PAGE) }], 2602 ["…Statistics\tF2" , sub { toggle_player_page ($::STATS_PAGE) }],
2521 ["…Skills\tF3" , sub { toggle_player_page ($::SKILL_PAGE) }], 2603 ["…Skills\tF3" , sub { toggle_player_page ($::SKILL_PAGE) }],
2522 ["…Spells\tF4" , sub { toggle_player_page ($::SPELL_PAGE) }], 2604 ["…Spells\tF4" , sub { toggle_player_page ($::SPELL_PAGE) }],
2523 ["…Inventory\tF5" , sub { toggle_player_page ($::INVENTORY_PAGE) }], 2605 ["…Inventory\tF5" , sub { toggle_player_page ($::INVENTORY_PAGE) }],
2524 ["Help Browser…\tF1" , sub { $HELP_WINDOW ->toggle_visibility }], 2606 ["Help Browser…\tF1" , sub { $HELP_WINDOW ->toggle_visibility }],
2525 ["Quit…" , sub { 2607 ["Quit…" , sub {
2526 if ($CONN) { 2608 if ($CONN) {
2527 open_quit_dialog; 2609 open_quit_dialog;
2528 } else { 2610 } else {
2529 EV::unloop EV::UNLOOP_ALL; 2611 EV::break EV::BREAK_ALL;
2530 } 2612 }
2531 }], 2613 }],
2532 ]); 2614 ]);
2533 2615
2534 $BUTTONBAR->add (new DC::UI::Button text => "Menu…", 2616 $BUTTONBAR->add (new DC::UI::Button text => "Menu…",
2661 DC::set_theme $CFG->{uitheme}; 2743 DC::set_theme $CFG->{uitheme};
2662 2744
2663 DC::SDL_InitSubSystem DC::SDL_INIT_VIDEO if $SDL_REINIT; 2745 DC::SDL_InitSubSystem DC::SDL_INIT_VIDEO if $SDL_REINIT;
2664 $SDL_REINIT = 0; 2746 $SDL_REINIT = 0;
2665 2747
2666 @SDL_MODES = DC::SDL_ListModes 8, $CFG->{disable_alpha} ? 0 : 8; 2748 @SDL_MODES = DC::SDL_ListModes 8, $CFG->{disable_alpha} ? 0 : 2;
2667 @SDL_MODES = DC::SDL_ListModes 8, 8 unless @SDL_MODES; 2749 @SDL_MODES = DC::SDL_ListModes 8, 8 unless @SDL_MODES;
2668 @SDL_MODES = DC::SDL_ListModes 5, 0 unless @SDL_MODES; 2750 @SDL_MODES = DC::SDL_ListModes 5, 0 unless @SDL_MODES;
2669 @SDL_MODES or DC::fatal "Unable to find a usable video mode\n(hardware accelerated opengl fullscreen)"; 2751 @SDL_MODES or DC::fatal "Unable to find a usable video mode\n(hardware accelerated opengl fullscreen)";
2670 2752
2671 @SDL_MODES = sort { $a->[0] * $a->[1] <=> $b->[0] * $b->[1] } @SDL_MODES; 2753 @SDL_MODES = sort { $a->[0] * $a->[1] <=> $b->[0] * $b->[1] } @SDL_MODES;
2905 delete $animate_object{$widget}; 2987 delete $animate_object{$widget};
2906} 2988}
2907 2989
2908$SDL_CB[DC::SDL_QUIT] = sub { 2990$SDL_CB[DC::SDL_QUIT] = sub {
2909 crash "SDL_QUIT"; 2991 crash "SDL_QUIT";
2910 EV::unloop EV::UNLOOP_ALL; 2992 EV::break EV::BREAK_ALL;
2911}; 2993};
2912$SDL_CB[DC::SDL_VIDEORESIZE] = sub { }; 2994$SDL_CB[DC::SDL_VIDEORESIZE] = sub { };
2913$SDL_CB[DC::SDL_VIDEOEXPOSE] = sub { 2995$SDL_CB[DC::SDL_VIDEOEXPOSE] = sub {
2914 DC::UI::full_refresh; 2996 DC::UI::full_refresh;
2915}; 2997};
2948}; 3030};
2949 3031
2950############################################################################# 3032#############################################################################
2951 3033
2952$SIG{INT} = $SIG{TERM} = sub { 3034$SIG{INT} = $SIG{TERM} = sub {
2953 EV::unloop; 3035 EV::break;
2954 #d# TODO calling exit here hangs the process in some futex 3036 #d# TODO calling exit here hangs the process in some futex
2955}; 3037};
2956 3038
2957# due to mac os x + sdl combined braindamage, we need this contortion 3039# due to mac os x + sdl combined braindamage, we need this contortion
2958sub DC::Main::run { 3040sub DC::Main::run {
3000 3082
3001 $CFG->{profile}{$profile} ||= {}; 3083 $CFG->{profile}{$profile} ||= {};
3002 $PROFILE = $CFG->{profile}{$profile}; 3084 $PROFILE = $CFG->{profile}{$profile};
3003 $PROFILE->{host} ||= "gameserver.deliantra.net"; 3085 $PROFILE->{host} ||= "gameserver.deliantra.net";
3004 3086
3005 $PROFILE->{host} = $args[0] if @args > 0; 3087 $PROFILE->{host} = $args[0] if @args > 0;
3006 $PROFILE->{user} = $args[1] if @args > 1; 3088 $PROFILE->{user} = $args[1] if @args > 1;
3007 $PROFILE->{password} = $args[2] if @args > 2; 3089 $PROFILE->{password} = unpack "H*", Deliantra::Util::hash_pw $args[2] if @args > 2;
3008 3090
3009 # convert old bindings (only default profile matters) 3091 # convert old bindings (only default profile matters)
3010 if (my $bindings = delete $PROFILE->{bindings}) { 3092 if (my $bindings = delete $PROFILE->{bindings}) {
3011 while (my ($mod, $syms) = each %$bindings) { 3093 while (my ($mod, $syms) = each %$bindings) {
3012 while (my ($sym, $cmds) = each %$syms) { 3094 while (my ($sym, $cmds) = each %$syms) {
3075 }; 3157 };
3076 3158
3077 debug_toggle 0; 3159 debug_toggle 0;
3078 3160
3079 delete $SIG{__DIE__}; 3161 delete $SIG{__DIE__};
3080 EV::loop; 3162 EV::run;
3081 3163
3082 DC::save_cfg if $CFG->{config_autosave}; 3164 DC::save_cfg if $CFG->{config_autosave};
3083 3165
3084 #video_shutdown; 3166 #video_shutdown;
3085 #audio_shutdown; 3167 #audio_shutdown;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines