Advertisement
Guest User

Untitled

a guest
Jul 29th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. +void Sys_DefaultConfig(void)
  2. +{
  3. + Cbuf_AddText ("bind ABUTTON +right\n");
  4. + Cbuf_AddText ("bind BBUTTON +lookdown\n");
  5. + Cbuf_AddText ("bind XBUTTON +lookup\n");
  6. + Cbuf_AddText ("bind YBUTTON +left\n");
  7. + Cbuf_AddText ("bind LTRIGGER +jump\n");
  8. + Cbuf_AddText ("bind RTRIGGER +attack\n");
  9. + Cbuf_AddText ("bind PADUP \"impulse 10\"\n");
  10. + Cbuf_AddText ("bind PADDOWN \"impulse 12\"\n");
  11. + Cbuf_AddText ("lookstrafe \"1.000000\"\n");
  12. + Cbuf_AddText ("lookspring \"1.000000\"\n");
  13. + Cbuf_AddText ("gamma \"0.700000\"\n");
  14. +
  15. +}
  16. +
  17. void Sys_Init(void)
  18. {
  19. hostInitialized = true;
  20. aptHook(&sysAptCookie, sysAptHook, NULL);
  21. Touch_Init();
  22. Touch_DrawOverlay();
  23. +
  24. + char configPath[200];
  25. + sprintf(configPath, "%s/config.cfg", gameFolder);
  26. +
  27. + FILE *config = fopen(configPath, "r");
  28. +
  29. + if(!config)
  30. + Sys_DefaultConfig();
  31. + else
  32. + fclose(config);
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement