summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-10-19 19:15:58 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-10-19 19:15:58 +0000
commit57883450b86f02a53f08c630141bf8d7db55c358 (patch)
tree2029f0bb5aeacd552b6399d449667f95084be2d6
parent2f0f69d325341dfc8e7595adb86944b09c1b0710 (diff)
provide etrophy gamescore edd to allow embedding trophies in external configs
SVN revision: 78266
-rw-r--r--src/lib/Etrophy.h1
-rw-r--r--src/lib/etrophy.c6
2 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/Etrophy.h b/src/lib/Etrophy.h
index 31b3d07..c2998d2 100644
--- a/src/lib/Etrophy.h
+++ b/src/lib/Etrophy.h
@@ -95,6 +95,7 @@ EAPI void etrophy_level_scores_list_clear(Etrophy_Level *level);
95/* Etrophy_Gamescore */ 95/* Etrophy_Gamescore */
96EAPI Etrophy_Gamescore *etrophy_gamescore_new(const char *gamename); 96EAPI Etrophy_Gamescore *etrophy_gamescore_new(const char *gamename);
97EAPI void etrophy_gamescore_free(Etrophy_Gamescore *gamescore); 97EAPI void etrophy_gamescore_free(Etrophy_Gamescore *gamescore);
98EAPI Eet_Data_Descriptor *etrophy_gamescore_edd_get(void);
98EAPI Etrophy_Gamescore *etrophy_gamescore_path_load(const char *filename); 99EAPI Etrophy_Gamescore *etrophy_gamescore_path_load(const char *filename);
99EAPI Etrophy_Gamescore *etrophy_gamescore_load(const char *gamename); 100EAPI Etrophy_Gamescore *etrophy_gamescore_load(const char *gamename);
100EAPI Eina_Bool etrophy_gamescore_save(Etrophy_Gamescore *gamescore, const char *filename); 101EAPI Eina_Bool etrophy_gamescore_save(Etrophy_Gamescore *gamescore, const char *filename);
diff --git a/src/lib/etrophy.c b/src/lib/etrophy.c
index ff65f8f..b98de74 100644
--- a/src/lib/etrophy.c
+++ b/src/lib/etrophy.c
@@ -804,6 +804,12 @@ etrophy_gamescore_level_score_add(Etrophy_Gamescore *gamescore, const char *leve
804 return escore; 804 return escore;
805} 805}
806 806
807EAPI Eet_Data_Descriptor *
808etrophy_gamescore_edd_get(void)
809{
810 return _gamescore_descriptor;
811}
812
807EAPI Etrophy_Gamescore * 813EAPI Etrophy_Gamescore *
808etrophy_gamescore_path_load(const char *filename) 814etrophy_gamescore_path_load(const char *filename)
809{ 815{