Main > Software Forum

HiToText (Version 2010.11.4).

<< < (23/117) > >>

headkaze:

--- Quote from: Fyrecrypts on November 23, 2008, 01:30:13 pm ---Mine might be a little weird to understand, but after you add a new "game".cs file it'll be able to read GamesSupported without changing anything else, as long as it has the same namespace as the other games.

--- End quote ---

Yes but in mine you don't have to have a massive switch block to test each name, you simply add the new game to the m_game array and it will use GamesSupported for everything. Easier to maintain IMHO.

EDIT: Okay just read your edit, I think it's easier but interesting use of reflection I would have never have thought of that one ;)

EDIT2: There was a minor error that I fixed and it doesn't seem like you downloaded the last one I upped so you might want to grab that just in case.

Fyrecrypts:
Yeah, I believe your version to be the easier version to maintain, so I'll use that as I move forward.

headkaze:
Okay I think we should remove our attachments now and keep everything in the first post to avoid confusion  :cheers:

EDIT: Found another bug..

In Program.cs


--- Code: ---game = m_games[j];
--- End code ---

Should be


--- Code: ---game = m_games[i];
--- End code ---

Fyrecrypts:
Done.

Edit: Bug fixed.

headkaze:
Another bug lol this will not effect the execution of the program but anyway..


--- Code: ---Console.WriteLine(String.Format("Error: No ROM Specified", romName));
--- End code ---

Should be


--- Code: ---Console.WriteLine("Error: No ROM Specified");
--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version