Mercurial > mercurial > hgweb_madnm.cgi
diff src/appconf.cpp @ 1:f40a65687079
small fix.
author | pyon@macmini |
---|---|
date | Mon, 10 Jun 2019 05:56:36 +0900 |
parents | 2f5584f0d127 |
children |
line wrap: on
line diff
--- a/src/appconf.cpp Sat Jun 08 16:21:40 2019 +0900 +++ b/src/appconf.cpp Mon Jun 10 05:56:36 2019 +0900 @@ -1,5 +1,5 @@ // Filename : appconf.cpp -// Last Change: 2019-06-07 ‹à 14:38:53. +// Last Change: 2019-06-09 Sun 16:56:39. // #include "appconf.h" #include "util.h" @@ -48,6 +48,28 @@ return Geo2Rect( buf ); } +wxString AppConf::LoadWork( void ) +{ + wxString dir; + config->SetPath( "/Misc" ); + config->Read( "workdir", &dir ); + + delete config; + + return dir; +} + +wxString AppConf::LoadScanner( void ) +{ + wxString scan; + config->SetPath( "/Misc" ); + config->Read( "scanner", &scan ); + + delete config; + + return scan; +} + /* Save */ void AppConf::SaveRect( wxRect rect ) @@ -58,3 +80,11 @@ delete config; } +void AppConf::SaveWork( wxString dir ) +{ + config->SetPath( "/Misc" ); + config->Write( "workdir", dir ); + + delete config; +} +