ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/src/Daodan.c
(Generate patch)

Comparing Daodan/src/Daodan.c (file contents):
Revision 466 by rossy, Sat Oct 17 11:49:49 2009 UTC vs.
Revision 468 by rossy, Sun Oct 18 02:26:30 2009 UTC

# Line 53 | Line 53 | bool patch_bsl = true;
53   bool patch_cheater = true;
54  
55   bool opt_usedaodanbsl = true;
56 + bool opt_border = true;
57 + bool opt_shadow = true;
58 + bool opt_topmost = false;
59  
60   bool DDrPatch_Init()
61   {
# Line 212 | Line 215 | bool DDrIniCallback(char* section, bool
215                  case s_options:
216                          if (!stricmp(name, "usedaodanbsl"))
217                                  opt_usedaodanbsl = !stricmp(inifile_cleanstr(value), "true");
218 +                        else if (!stricmp(name, "border"))
219 +                                opt_border = !stricmp(inifile_cleanstr(value), "true");
220 +                        else if (!stricmp(name, "shadow"))
221 +                                opt_shadow = !stricmp(inifile_cleanstr(value), "true");
222 +                        else if (!stricmp(name, "topmost"))
223 +                                opt_topmost = !stricmp(inifile_cleanstr(value), "true");
224 +                        else if (!stricmp(name, "multibyte"))
225 +                                patch_multibyte = !stricmp(inifile_cleanstr(value), "true");
226                          else if (!stricmp(name, "debug"))
227                                  AKgDebug_DebugMaps = !stricmp(inifile_cleanstr(value), "true");
228                          else if (!stricmp(name, "debugfiles"))
# Line 449 | Line 460 | void __cdecl DDrMain(int argc, char* arg
460                                  *option = '\0';
461                                  falseoption = (option[1] == 'n' || option[1] == 'N') && (option[2] = 'o' || option[2] == 'O');
462                                  if (i < (argc - 1) && argv[i + 1][0] != '-')
463 <                                        DDrIniCallback(section, true, option + (falseoption ? 3 : 1), argv[++i]);
463 >                                        DDrIniCallback(section, true, option + 1, argv[++i]);
464                                  else
465                                          DDrIniCallback(section, true, option + (falseoption ? 3 : 1), (falseoption ? "false" : "true"));
466                                  *option = '.';
# Line 459 | Line 470 | void __cdecl DDrMain(int argc, char* arg
470                                  falseoption = (section[0] == 'n' || section[0] == 'N') && (section[1] = 'o' || section[1] == 'O');
471                                  ini_section = s_options;
472                                  if (i < (argc - 1) && argv[i + 1][0] != '-')
473 <                                        DDrIniCallback(NULL, false, section + (falseoption ? 2 : 0), argv[++i]);
473 >                                        DDrIniCallback(NULL, false, section, argv[++i]);
474                                  else
475                                          DDrIniCallback(NULL, false, section + (falseoption ? 2 : 0), (falseoption ? "false" : "true"));
476                          }

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)