Save types in the project file

This commit is contained in:
Maijin 2016-03-23 09:08:26 +01:00
parent 8e726d0376
commit 1a3e09d1e8

View File

@ -1,4 +1,4 @@
/* radare - LGPL - Copyright 2010-2015 - pancake */
/* radare - LGPL - Copyright 2010-2015 - pancake, maijin */
#include <r_types.h>
#include <r_list.h>
@ -330,6 +330,9 @@ R_API int r_core_project_save(RCore *core, const char *file) {
r_cons_flush ();
r_core_cmd (core, "ah*", 0);
r_cons_flush ();
r_str_write (fd, "# types\n");
r_core_cmd (core, "t*", 0);
r_cons_flush ();
r_str_write (fd, "# macros\n");
r_core_cmd (core, "(*", 0);
r_cons_flush ();