Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- +void Sys_DefaultConfig(void)
- +{
- + Cbuf_AddText ("bind ABUTTON +right\n");
- + Cbuf_AddText ("bind BBUTTON +lookdown\n");
- + Cbuf_AddText ("bind XBUTTON +lookup\n");
- + Cbuf_AddText ("bind YBUTTON +left\n");
- + Cbuf_AddText ("bind LTRIGGER +jump\n");
- + Cbuf_AddText ("bind RTRIGGER +attack\n");
- + Cbuf_AddText ("bind PADUP \"impulse 10\"\n");
- + Cbuf_AddText ("bind PADDOWN \"impulse 12\"\n");
- + Cbuf_AddText ("lookstrafe \"1.000000\"\n");
- + Cbuf_AddText ("lookspring \"1.000000\"\n");
- + Cbuf_AddText ("gamma \"0.700000\"\n");
- +
- +}
- +
- void Sys_Init(void)
- {
- hostInitialized = true;
- aptHook(&sysAptCookie, sysAptHook, NULL);
- Touch_Init();
- Touch_DrawOverlay();
- +
- + char configPath[200];
- + sprintf(configPath, "%s/config.cfg", gameFolder);
- +
- + FILE *config = fopen(configPath, "r");
- +
- + if(!config)
- + Sys_DefaultConfig();
- + else
- + fclose(config);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement