aboutsummaryrefslogtreecommitdiff
path: root/Source/System.h
diff options
context:
space:
mode:
authorXaviDCR92 <xavi.dcr@gmail.com>2017-06-06 06:52:46 +0200
committerXaviDCR92 <xavi.dcr@gmail.com>2017-06-06 06:52:46 +0200
commit1244505327009142c80140e44c86138f4fd6ae07 (patch)
treed11878572385583e5e2fd3d05ae3349dd46d45e6 /Source/System.h
parentc43347edb7d422b902360a44a7bd0b0a20f941f2 (diff)
downloadairport-1244505327009142c80140e44c86138f4fd6ae07.tar.gz
* Implemented aircraft collision. But it would not detect collision in some cases.
* Remove unneeded whitespace character on pointer variables (unary operators should not have any whitespaces). * SelectedAircraft index now increases or decreases automatically on aircraft added/removed. * Started writing Plt generation routines. Still a lot of work TODO.
Diffstat (limited to 'Source/System.h')
-rw-r--r--Source/System.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/System.h b/Source/System.h
index dda7c01..2030117 100644
--- a/Source/System.h
+++ b/Source/System.h
@@ -34,10 +34,10 @@ void SystemSetRandSeed(void);
bool SystemRefreshNeeded(void);
// Loads a file into system's internal buffer
-bool SystemLoadFile(char *fname);
+bool SystemLoadFile(char*fname);
// Loads a file into desired buffer
-bool SystemLoadFileToBuffer(char * fname, uint8_t* buffer, uint32_t szBuffer);
+bool SystemLoadFileToBuffer(char* fname, uint8_t* buffer, uint32_t szBuffer);
// Clears VSync flag after each frame
void SystemDisableScreenRefresh(void);
@@ -116,7 +116,7 @@ void SystemCheckStack(void);
// Looks for string "str" inside a string array pointed to by "array".
// Returns index inside string array on success, -1 if not found.
-int32_t SystemIndexOfStringArray(char * str, char ** array);
+int32_t SystemIndexOfStringArray(char* str, char** array);
// Function overload for uint16_t data type.
int32_t SystemIndexOf_U16(uint16_t value, uint16_t* array, uint32_t sz);
@@ -126,6 +126,8 @@ int32_t SystemIndexOf_U8(uint8_t value, uint8_t* array, uint32_t from, uint32_t
void SystemCyclicHandler(void);
+void SystemClearBuffer(void);
+
/* **************************************
* Global Variables *
* **************************************/