-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathFileHandler.c
More file actions
41 lines (35 loc) · 893 Bytes
/
Copy pathFileHandler.c
File metadata and controls
41 lines (35 loc) · 893 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
purpose: This file contains the main file handler that calls other file handlers (input readers) depending on what game was selected in the UI
*/
#include "GameFunctions.c"
extern float mouseResetWait, buttonWait, swapWait, keyWait;
int totalInputs;
extern int gameSelected;
#include "Config_FIle_Handler.c"
#include "COD_File_Handler.c"
#include "MPH_File_Handler.c"
#include "DEM_File_Handler.c"
//run the config reader then run input readers dependingo n what game was selected
struct Input* FileHandle()
{
ConfigReader();
switch (gameSelected)
{
case 0:
case 1:
case 2:
case 3:
case 4:
return COD_Input_Reader();
break;
case 5:
case 6:
return DEM_Input_Reader();
break;
case 7:
return MPH_Input_Reader();
break;
default:
break;
}
}