Display time played correctly.
This commit is contained in:
parent
2634a6fd97
commit
7037b40c7b
14
src/main.h
14
src/main.h
|
@ -21,13 +21,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
App app;
|
|
||||||
Camera camera;
|
|
||||||
Colors colors;
|
|
||||||
Dev dev;
|
|
||||||
Entity *self;
|
|
||||||
Game game;
|
|
||||||
World world;
|
|
||||||
extern void awardTrophies(void);
|
extern void awardTrophies(void);
|
||||||
extern void cleanup(void);
|
extern void cleanup(void);
|
||||||
extern void doTrophyAlerts(void);
|
extern void doTrophyAlerts(void);
|
||||||
|
@ -44,3 +37,10 @@ extern void presentScene(void);
|
||||||
extern void saveScreenshot(char *name);
|
extern void saveScreenshot(char *name);
|
||||||
extern void saveTrophyScreenshot(void);
|
extern void saveTrophyScreenshot(void);
|
||||||
|
|
||||||
|
App app;
|
||||||
|
Camera camera;
|
||||||
|
Colors colors;
|
||||||
|
Dev dev;
|
||||||
|
Entity *self;
|
||||||
|
Game game;
|
||||||
|
World world;
|
||||||
|
|
|
@ -19,12 +19,15 @@ Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
|
||||||
|
|
||||||
#include "i18n.h"
|
#include "i18n.h"
|
||||||
|
|
||||||
static HashTable table;
|
char *getTranslatedString(char *);
|
||||||
|
void setLanguage(char *, char *);
|
||||||
|
void cleanupLanguage(void);
|
||||||
static int hashCode(char *);
|
static int hashCode(char *);
|
||||||
static void put(char *, char *);
|
static void put(char *, char *);
|
||||||
static void initTable(void);
|
static void initTable(void);
|
||||||
|
|
||||||
|
static HashTable table;
|
||||||
|
|
||||||
void setLanguage(char *applicationName, char *languageCode)
|
void setLanguage(char *applicationName, char *languageCode)
|
||||||
{
|
{
|
||||||
char language[MAX_LINE_LENGTH], c[MAX_LINE_LENGTH];
|
char language[MAX_LINE_LENGTH], c[MAX_LINE_LENGTH];
|
||||||
|
|
|
@ -23,8 +23,4 @@ Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
char *getTranslatedString(char *);
|
|
||||||
void setLanguage(char *, char *);
|
|
||||||
void cleanupLanguage(void);
|
|
||||||
#define TABLE_SIZE 255
|
#define TABLE_SIZE 255
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ void initAtlasTest(void)
|
||||||
|
|
||||||
createScreenshotFolder();
|
createScreenshotFolder();
|
||||||
|
|
||||||
test = 1;
|
test = 2;
|
||||||
|
|
||||||
switch (test)
|
switch (test)
|
||||||
{
|
{
|
||||||
|
|
|
@ -65,8 +65,8 @@ char *timeToString(int seconds, int showHours)
|
||||||
{
|
{
|
||||||
int hours, minutes;
|
int hours, minutes;
|
||||||
|
|
||||||
minutes = seconds / 60;
|
|
||||||
hours = seconds / (FPS * FPS);
|
hours = seconds / (FPS * FPS);
|
||||||
|
minutes = (seconds / FPS) % FPS;
|
||||||
seconds %= FPS;
|
seconds %= FPS;
|
||||||
|
|
||||||
if (showHours)
|
if (showHours)
|
||||||
|
|
|
@ -230,7 +230,7 @@ function recurseDir($dir)
|
||||||
{
|
{
|
||||||
recurseDir("$dir/$file");
|
recurseDir("$dir/$file");
|
||||||
}
|
}
|
||||||
else if (strstr($file, ".h") !== FALSE)
|
else if (strstr($file, ".h") !== FALSE && strstr($file, "main.h") === FALSE)
|
||||||
{
|
{
|
||||||
cleanHeader("$dir/$file");
|
cleanHeader("$dir/$file");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue