summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2012-01-26 16:39:48 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2012-01-26 16:39:48 (GMT)
commit7bcec72d69c5350678ed6350636687c3c29bbc61 (patch)
treed796bd80a21da3c757a1aec798bb9a2e9fd94ff3 /src/main.c
parentd761eddfd4b5a27620aaa5e67a0e2e2bc5d55cb1 (diff)
Rewritten the way projects are managed.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@229 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main.c b/src/main.c
index 9430541..4146b0a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2,7 +2,7 @@
/* OpenIDA - Outil d'analyse de fichiers binaires
* main.c - fichier d'entrée du programme
*
- * Copyright (C) 2009-2011 Cyrille Bagard
+ * Copyright (C) 2009-2012 Cyrille Bagard
*
* This file is part of OpenIDA.
*
@@ -56,7 +56,7 @@
* *
******************************************************************************/
-static show_version(void)
+static void show_version(void)
{
printf("\n");
@@ -92,7 +92,7 @@ int main(int argc, char **argv)
configuration *config; /* Configuration principale */
GtkWidget *editor; /* Fenêtre graphique */
const char *filename; /* Chemin du dernier projet */
- openida_project *project; /* Nouveau projet courant */
+ GStudyProject *project; /* Nouveau projet courant */
if (argc > 1 && strcmp(argv[1], "--version") == 0)
@@ -149,10 +149,10 @@ int main(int argc, char **argv)
filename = get_string_config_value(config, MPT_RECENT_PROJECT_1);
- if (filename == NULL) project = create_empty_openida_project(G_OBJECT(editor));
- else project = g_openida_project_new_from_xml(G_OBJECT(editor), filename);
+ if (filename == NULL) project = g_study_project_new();
+ else project = g_study_project_open(filename);
- set_current_openida_project(project);
+ set_current_project(project);
/* Exécution du programme */