summaryrefslogtreecommitdiffstats
path: root/Gui/cfg.c
diff options
context:
space:
mode:
authorpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-01-21 13:33:40 +0000
committerpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-01-21 13:33:40 +0000
commit337542a33163ccb9d836219f8ed202db65401efd (patch)
treea97fa3ba73741c313064c62ffc78a66e576a42ba /Gui/cfg.c
parentcaf9e7d7b3551a3d2f9198526d7d0ffcd8d5b25b (diff)
downloadmpv-337542a33163ccb9d836219f8ed202db65401efd.tar.bz2
mpv-337542a33163ccb9d836219f8ed202db65401efd.tar.xz
- rewrite sub_fps
- add fps support - rewrite history git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9056 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/cfg.c')
-rw-r--r--Gui/cfg.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/Gui/cfg.c b/Gui/cfg.c
index b46a56c551..17cca48eb6 100644
--- a/Gui/cfg.c
+++ b/Gui/cfg.c
@@ -230,6 +230,21 @@ int cfg_read( void )
}
free( cfg );
+// -- reade file loader history
+ cfg=get_path( "gui.history" );
+ if ( (f=fopen( cfg,"rt+" )) )
+ {
+ int i = 0;
+ while ( !feof( f ) )
+ {
+ char tmp[512];
+ if ( gfgets( tmp,512,f ) == NULL ) continue;
+ fsHistory[i++]=gstrdup( tmp );
+ }
+ fclose( f );
+ }
+ free( cfg );
+
#ifdef USE_SETLOCALE
setlocale( LC_ALL,"" );
#endif
@@ -315,6 +330,18 @@ int cfg_write( void )
}
free( cfg );
+// -- save file loader history
+ cfg=get_path( "gui.history" );
+ if ( (f=fopen( cfg,"wt+" )) )
+ {
+ int i = 0;
+// while ( fsHistory[i] != NULL )
+ for ( i=0;i < 5; i++)
+ if( fsHistory[i] ) fprintf( f,"%s\n",fsHistory[i] );
+ fclose( f );
+ }
+ free( cfg );
+
#ifdef USE_SETLOCALE
setlocale( LC_ALL,"" );
#endif