| 337 | } |
| 338 | |
| 339 | static void LoadOptions(void) { |
| 340 | Game_ClassicMode = Options_GetBool(OPT_CLASSIC_MODE, false); |
| 341 | Game_ClassicHacks = Options_GetBool(OPT_CLASSIC_HACKS, false); |
| 342 | Game_Anaglyph3D = Options_GetBool(OPT_ANAGLYPH3D, false); |
| 343 | #if defined CC_BUILD_PS1 || defined CC_BUILD_SATURN |
| 344 | /* View bobbing requires per-frame matrix multiplications - costly on FPU less systems */ |
| 345 | Game_ViewBobbing = Options_GetBool(OPT_VIEW_BOBBING, false); |
| 346 | #else |
| 347 | Game_ViewBobbing = Options_GetBool(OPT_VIEW_BOBBING, true); |
| 348 | #endif |
| 349 | |
| 350 | Game_AllowCustomBlocks = !Game_ClassicMode && Options_GetBool(OPT_CUSTOM_BLOCKS, true); |
| 351 | Game_SimpleArmsAnim = !Game_ClassicMode && Options_GetBool(OPT_SIMPLE_ARMS_ANIM, false); |
| 352 | Game_BreakableLiquids = !Game_ClassicMode && Options_GetBool(OPT_MODIFIABLE_LIQUIDS, false); |
| 353 | Game_AllowServerTextures = !Game_ClassicMode && Options_GetBool(OPT_SERVER_TEXTURES, true); |
| 354 | |
| 355 | Game_ViewDistance = Options_GetInt(OPT_VIEW_DISTANCE, 8, 4096, DEFAULT_VIEWDIST); |
| 356 | Game_UserViewDistance = Game_ViewDistance; |
| 357 | /* TODO: Do we need to support option to skip SSL */ |
| 358 | /*cc_bool skipSsl = Options_GetBool("skip-ssl-check", false); |
| 359 | if (skipSsl) { |
| 360 | ServicePointManager.ServerCertificateValidationCallback = delegate { return true; }; |
| 361 | Options.Set("skip-ssl-check", false); |
| 362 | }*/ |
| 363 | autoPause = Options_GetBool(OPT_AUTO_PAUSE, true); |
| 364 | } |
| 365 | |
| 366 | #ifdef CC_BUILD_PLUGINS |
| 367 | static void LoadPlugin(const cc_string* path, void* obj, int isDirectory) { |
no test coverage detected