Class: Gamerom::GameInfo
- Inherits:
-
Object
- Object
- Gamerom::GameInfo
- Defined in:
- lib/gamerom/game_info.rb
Overview
GameInfo - Extracts region and tags from game name
Constant Summary collapse
- REGIONS =
{ '1' => 'Japan & Korea', '4' => 'USA & Brazil - NTSC', '5' => 'NTSC', '8' => 'PAL', 'A' => 'Australia', 'As' => 'Asia', 'B' => 'Brazil', 'C' => 'Canada', 'Ch' => 'China', 'D' => 'Netherlands (Dutch)', 'E' => 'Europe', 'F' => 'France', 'FC' => 'French Canadian', 'FN' => 'Finland', 'G' => 'Germany', 'GR' => 'Greece', 'H' => 'Holland', 'HK' => 'Hong Kong', 'I' => 'Italy', 'J' => 'Japan', 'JUE' => 'Japan & USA & Europe', 'K' => 'Korea', 'Nl' => 'Netherlands', 'NL' => 'Netherlands', 'No' => 'Norway', 'PD' => 'Public Domain', 'R' => 'Russia', 'S' => 'Spain', 'Sw' => 'Sweden', 'SW' => 'Sweden', 'U' => 'USA', 'UK' => 'England', 'Unk' => 'Unknown Country', 'Unl' => 'Unlicensed', 'PAL' => 'PAL regions (Australia, Europe)', 'NTSC' => 'NTSC regions (Japan, USA, Latin America)', }.freeze
- TAGS =
{ '!' => :good, '!p' => :pending, 'a' => :alternate, 'b' => :bad, 'BF' => :bung, 'c' => :checksum, 'C' => :color, 'f' => :fixed, 'h' => :hack, 'J' => :japanese_translation, 'o' => :overdump, 'p' => :pirate, 'PC10' => :pc10, 'S' => :super, 'T-' => :old_translation, 't' => :trained, 'T+' => :newer_translation, 'VS' => :vs, 'x' => :bad_checksum, }.freeze
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ GameInfo
constructor
A new instance of GameInfo.
- #region ⇒ Object
- #tags ⇒ Object
Constructor Details
#initialize(name) ⇒ GameInfo
Returns a new instance of GameInfo.
69 70 71 |
# File 'lib/gamerom/game_info.rb', line 69 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
67 68 69 |
# File 'lib/gamerom/game_info.rb', line 67 def name @name end |