diff options
Diffstat (limited to 'src/lib/etrophy.c')
-rw-r--r-- | src/lib/etrophy.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/etrophy.c b/src/lib/etrophy.c index 9443a3c..d621856 100644 --- a/src/lib/etrophy.c +++ b/src/lib/etrophy.c | |||
@@ -145,7 +145,7 @@ etrophy_trophy_new(const char *name, const char *description, Etrophy_Trophy_Vis | |||
145 | trophy->name = eina_stringshare_add(name); | 145 | trophy->name = eina_stringshare_add(name); |
146 | trophy->description = eina_stringshare_add(description); | 146 | trophy->description = eina_stringshare_add(description); |
147 | trophy->visibility = visibility; | 147 | trophy->visibility = visibility; |
148 | trophy->date = (unsigned int)ecore_time_get(); | 148 | trophy->date = (unsigned int)ecore_time_unix_get(); |
149 | trophy->goal = goal; | 149 | trophy->goal = goal; |
150 | trophy->points = points; | 150 | trophy->points = points; |
151 | 151 | ||
@@ -210,7 +210,7 @@ etrophy_trophy_counter_set(Etrophy_Trophy *trophy, unsigned int value) | |||
210 | if (trophy->counter > trophy->goal) | 210 | if (trophy->counter > trophy->goal) |
211 | trophy->counter = trophy->goal; | 211 | trophy->counter = trophy->goal; |
212 | 212 | ||
213 | trophy->date = (unsigned int)ecore_time_get(); | 213 | trophy->date = (unsigned int)ecore_time_unix_get(); |
214 | } | 214 | } |
215 | 215 | ||
216 | EAPI inline void | 216 | EAPI inline void |
@@ -224,7 +224,7 @@ etrophy_trophy_counter_increment(Etrophy_Trophy *trophy, unsigned int value) | |||
224 | if (trophy->counter > trophy->goal) | 224 | if (trophy->counter > trophy->goal) |
225 | trophy->counter = trophy->goal; | 225 | trophy->counter = trophy->goal; |
226 | 226 | ||
227 | trophy->date = (unsigned int)ecore_time_get(); | 227 | trophy->date = (unsigned int)ecore_time_unix_get(); |
228 | } | 228 | } |
229 | 229 | ||
230 | EAPI inline Eina_Bool | 230 | EAPI inline Eina_Bool |
@@ -283,7 +283,7 @@ etrophy_lock_new(const char *name, Etrophy_Lock_State state) | |||
283 | 283 | ||
284 | lock->name = eina_stringshare_add(name); | 284 | lock->name = eina_stringshare_add(name); |
285 | lock->state = state; | 285 | lock->state = state; |
286 | lock->date = (unsigned int)ecore_time_get(); | 286 | lock->date = (unsigned int)ecore_time_unix_get(); |
287 | 287 | ||
288 | return lock; | 288 | return lock; |
289 | } | 289 | } |
@@ -316,7 +316,7 @@ etrophy_lock_state_set(Etrophy_Lock *lock, Etrophy_Lock_State state) | |||
316 | EINA_SAFETY_ON_NULL_RETURN(lock); | 316 | EINA_SAFETY_ON_NULL_RETURN(lock); |
317 | if (state >= ETROPHY_LOCK_STATE_LAST_VALUE) return; | 317 | if (state >= ETROPHY_LOCK_STATE_LAST_VALUE) return; |
318 | lock->state = state; | 318 | lock->state = state; |
319 | lock->date = (unsigned int)ecore_time_get(); | 319 | lock->date = (unsigned int)ecore_time_unix_get(); |
320 | } | 320 | } |
321 | 321 | ||
322 | EAPI inline unsigned int | 322 | EAPI inline unsigned int |
@@ -365,7 +365,7 @@ etrophy_score_new(const char *player_name, int score) | |||
365 | 365 | ||
366 | escore->player_name = eina_stringshare_add(player_name); | 366 | escore->player_name = eina_stringshare_add(player_name); |
367 | escore->score = score; | 367 | escore->score = score; |
368 | escore->date = (unsigned int)ecore_time_get(); | 368 | escore->date = (unsigned int)ecore_time_unix_get(); |
369 | 369 | ||
370 | DBG("Score created. Player: %s, score: %i", player_name, score); | 370 | DBG("Score created. Player: %s, score: %i", player_name, score); |
371 | 371 | ||