#!/usr/bin/env ruby
-# $Id: db.rb,v 1.1 2003-11-10 08:31:26 eto Exp $
+# $Id: db.rb,v 1.2 2003-11-30 13:16:38 eto Exp $
# Copyright (C) 2002-2003 Kouichirou Eto, All rights reserved.
# This is free software with ABSOLUTELY NO WARRANTY.
# You can redistribute it and/or modify it under the terms of the GNU GPL2.
include Singleton
def initialize()
super
- @glob, @pre, @post = "#{DB_DIR}/system-char-id/*", "#{DB_DIR}/system-char-id/", ""
+ @db_dir = Config.instance.db_dir
+ @glob, @pre, @post = "#{@db_dir}/system-char-id/*", "#{@db_dir}/system-char-id/", ""
open_dbs()
end
def get_all(u8) #全データベースのu8キーを引いてHashにまとめて返す