SaveCommandMap( path.c_str() );
}
+void add_local_rc_files(){
+ {
+ StringOutputStream path( 512 );
+ path << AppPath_get() << ".gtkrc-2.0.radiant";
+ gtk_rc_add_default_file( path.c_str() );
+ }
+#ifdef WIN32
+ {
+ StringOutputStream path( 512 );
+ path << AppPath_get() << ".gtkrc-2.0.win";
+ gtk_rc_add_default_file( path.c_str() );
+ }
+#endif
+}
+
int main( int argc, char* argv[] ){
crt_init();
#endif
gtk_disable_setlocale();
+
gtk_init( &argc, &argv );
// redirect Gtk warnings to the console
paths_init();
+ add_local_rc_files();
+
if ( !check_version() ) {
return EXIT_FAILURE;
}
hide_splash();
-#ifdef WIN32
- if( openCmdMap[0] != '\0' ){
+ if( openCmdMap && *openCmdMap ){
Map_LoadFile( openCmdMap );
}
- else
-#endif // WIN32
- if ( g_bLoadLastMap && !g_strLastMap.empty() ) {
+ else if ( g_bLoadLastMap && !g_strLastMap.empty() ) {
Map_LoadFile( g_strLastMap.c_str() );
}
else