Changeset ad14a89d0fbcca30225e6d33c6f40c35e7eb45e4

Show
Ignore:
Timestamp:
03/04/02 01:22:32 (7 years ago)
Author:
Olivier Teulière <ipkiss@videolan.org>
git-committer:
Olivier Teulière <ipkiss@videolan.org> 1017789752 +0000
git-parent:

[75824aafc4f8fec873f148769a1fac53c6761a1f]

git-author:
Olivier Teulière <ipkiss@videolan.org> 1017789752 +0000
Message:
  • ./include/config.h: fixed config directory name for windows
  • ./plugins/win32: the network dialog now respects the preferences settings
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • include/config.h

    r87b7319 rad14a89  
    5050/* The configuration file and directory */ 
    5151#ifdef SYS_BEOS 
    52 #define CONFIG_DIR                      "config/settings" 
     52#  define CONFIG_DIR                    "config/settings" 
     53#elif defined( WIN32 ) 
     54#  define CONFIG_DIR            "videolan" 
    5355#else 
    54 #define CONFIG_DIR                      ".videolan" 
     56#  define CONFIG_DIR                    ".videolan" 
    5557#endif 
    5658#define CONFIG_FILE                     "vlcrc" 
  • plugins/win32/network.cpp

    r8092e41 rad14a89  
    4747        : TForm( Owner ) 
    4848{ 
     49        char *psz_channel_server; 
     50 
     51        /* server port */ 
     52        UpDownPort->Position = config_GetIntVariable( "server_port" ); 
     53 
     54        /* channel server */ 
     55        if( config_GetIntVariable( "network_channel" ) ) 
     56        { 
     57            CheckBoxChannel->Checked = true; 
     58        } 
     59 
     60        psz_channel_server = config_GetPszVariable( "channel_server" ); 
     61        if( psz_channel_server ) 
     62        { 
     63            ComboBoxChannel->Text = psz_channel_server; 
     64            free( psz_channel_server ); 
     65        } 
     66 
     67        UpDownPortCS->Position = config_GetIntVariable( "channel_port" ); 
    4968} 
    5069//--------------------------------------------------------------------------- 
  • plugins/win32/network.dfm

    r8092e41 rad14a89  
    11object NetworkDlg: TNetworkDlg 
    2   Left = 368 
    3   Top = 266 
     2  Left = 419 
     3  Top = 281 
    44  BorderStyle = bsDialog 
    55  Caption = 'Open network' 
     
    307307      TabOrder = 2 
    308308      Text = '138.195.131.10' 
     309      Items.Strings = ( 
     310        '138.195.131.10') 
    309311    end 
    310312    object ComboBoxBroadcast: TComboBox 
     
    317319      TabOrder = 3 
    318320      Text = '138.195.143.255' 
     321      Items.Strings = ( 
     322        '138.195.143.255') 
    319323    end 
    320324    object UpDownPort: TUpDown 
     
    365369      TabOrder = 1 
    366370      Text = '138.195.156.232' 
     371      Items.Strings = ( 
     372        '138.195.156.232') 
    367373    end 
    368374    object EditPortCS: TEdit