returns a config structure with default options also creates config base directory (ie: /home/user/.fceux as well as subdirs
| 490 | // returns a config structure with default options |
| 491 | // also creates config base directory (ie: /home/user/.fceux as well as subdirs |
| 492 | Config * |
| 493 | InitConfig() |
| 494 | { |
| 495 | TASEDITOR_CONFIG tasCfg; |
| 496 | std::string dir, prefix, savPath, movPath; |
| 497 | Config *config; |
| 498 | |
| 499 | GetBaseDirectory(dir); |
| 500 | |
| 501 | FCEUI_SetBaseDirectory(dir.c_str()); |
| 502 | CreateDirs(dir); |
| 503 | |
| 504 | config = new Config(dir); |
| 505 | |
| 506 | // sound options |
| 507 | config->addOption('s', "sound", "SDL.Sound", 1); |
| 508 | config->addOption("soundMute", "SDL.Sound.Mute", 0); |
| 509 | config->addOption("volume", "SDL.Sound.Volume", 255); |
| 510 | config->addOption("trianglevol", "SDL.Sound.TriangleVolume", 255); |
| 511 | config->addOption("square1vol", "SDL.Sound.Square1Volume", 255); |
| 512 | config->addOption("square2vol", "SDL.Sound.Square2Volume", 255); |
| 513 | config->addOption("noisevol", "SDL.Sound.NoiseVolume", 255); |
| 514 | config->addOption("pcmvol", "SDL.Sound.PCMVolume", 255); |
| 515 | config->addOption("soundrate", "SDL.Sound.Rate", 44100); |
| 516 | config->addOption("soundq", "SDL.Sound.Quality", 1); |
| 517 | config->addOption("soundrecord", "SDL.Sound.RecordFile", ""); |
| 518 | config->addOption("soundbufsize", "SDL.Sound.BufSize", 128); |
| 519 | config->addOption("lowpass", "SDL.Sound.LowPass", 0); |
| 520 | config->addOption("SDL.Sound.UseGlobalFocus", 1); |
| 521 | |
| 522 | config->addOption('g', "gamegenie", "SDL.GameGenie", 0); |
| 523 | config->addOption("pal", "SDL.PAL", 0); |
| 524 | config->addOption("autoPal", "SDL.AutoDetectPAL", 1); |
| 525 | config->addOption("frameskip", "SDL.Frameskip", 0); |
| 526 | config->addOption("intFrameRate", "SDL.IntFrameRate", 0); |
| 527 | config->addOption("clipsides", "SDL.ClipSides", 0); |
| 528 | config->addOption("nospritelim", "SDL.DisableSpriteLimit", 0); |
| 529 | config->addOption("swapduty", "SDL.SwapDuty", 0); |
| 530 | config->addOption("ramInit", "SDL.RamInitMethod", 0); |
| 531 | config->addOption("SDL.FrameAdvanceDelay", 40); |
| 532 | |
| 533 | // color control |
| 534 | config->addOption('p', "palette", "SDL.Palette", ""); |
| 535 | config->addOption("tint", "SDL.Tint", 56); |
| 536 | config->addOption("hue", "SDL.Hue", 72); |
| 537 | config->addOption("ntsccolor", "SDL.NTSCpalette", 0); |
| 538 | config->addOption("SDL.ForceGrayScale", 0); |
| 539 | config->addOption("SDL.DeempBitSwap", 0); |
| 540 | config->addOption("SDL.PalNotch", 100); |
| 541 | config->addOption("SDL.PalSaturation", 100); |
| 542 | config->addOption("SDL.PalSharpness", 0); |
| 543 | config->addOption("SDL.PalContrast", 100); |
| 544 | config->addOption("SDL.PalBrightness", 50); |
| 545 | |
| 546 | // scanline settings |
| 547 | config->addOption("SDL.ScanLineStartNTSC", 0+8); |
| 548 | config->addOption("SDL.ScanLineEndNTSC", 239-8); |
| 549 | config->addOption("SDL.ScanLineStartPAL", 0); |
no test coverage detected