For
my DOL code manager, I'm working on adding support for adding/managing Gecko codes in the DOL, à la
Dan's new code injection method. I think this'll make things real nice & easy. If you think so too, read on.
As I've mentioned before, codes for the program's library are in .txt files, so any user can add new ones. Right now I'm considering how the format should be for Gecko codes.
For a moment I thought I would just have the program use the Gecko .ini file that Dolphin uses. And I could do that, but it has a big drawback in that the file would only work for one game version. There could be several ini files, one for each game version, but then that would be annoying when you wanted to add a code that's available for multiple versions, so I don't think I like that.
achilles' format in the OP is like this (which of course is pretty similar to how most people share them):
Code:
Unlock All 293 Trophies (1.02) [Datel]
0245C390 00000125
0245C395 01266363
Unlock All 293 Trophies (1.01) [Datel]
0245B6B0 00000125
0245B6B5 01266363
Unlock All 293 Trophies (1.00) [Datel]
0245A3C8 00000125
0245A3CD 01266363
Code:
Disable Name Tag Reset After Closing Character Port (1.02) [Ato]
04261B1C 60000000
04261B30 60000000
Disable Name Tag Reset After Closing Character Port (1.01) [Ato]
04261380 60000000
04261394 60000000
Disable Name Tag Reset After Closing Character Port (1.00) [Ato]
04260810 60000000
04260824 60000000
Disable Name Tag Reset After Closing Character Port (PAL) [Ato]
042622C8 60000000
042622DC 60000000
The reason I'm asking is because I'm hoping people would then consistently share them in the same format. That way, codes can easily be copy/pasted for use with the program when new codes come out. (I think I know what I want to do, so I'm kinda just thinking out loud here, but also I wanted to see if anyone had any opinions or other ideas.)
Couple issues I have with the above though:
Sometimes a description is a really good thing to include.
A little redundant to have the name and author described for every version, isn't it? Seems like it'd be simpler to just have it once at the start.
So it could be just like above, but with an optional description:
Code:
Unlock All 293 Trophies (1.02) [Datel]
- Example description
0245C390 00000125
0245C395 01266363
Unlock All 293 Trophies (1.01) [Datel]
0245B6B0 00000125
0245B6B5 01266363
Unlock All 293 Trophies (1.00) [Datel]
0245A3C8 00000125
0245A3CD 01266363
or changed up a bit (IMO better):
Code:
Unlock All 293 Trophies
- Example description
[Datel]
(1.02)
0245C390 00000125
0245C395 01266363
(1.01)
0245B6B0 00000125
0245B6B5 01266363
(1.00)
0245A3C8 00000125
0245A3CD 01266363
What do you guys think? This would also be easier to parse. But I'm open to suggestions.