Commit 70d97d71 authored by 神楽坂玲奈's avatar 神楽坂玲奈

0.9.9

parent add67496
/Gemfile.lock
/nbproject/
/.idea/
/ruby/
/pkg/
Thumbs.db
/fonts/
/replay/
/ygocore/
/mycard.exe
/config.yml
/log.log
/profile.log
/replay/
/mycard/
/mycard.exe
/7z.exe
/ygocore/
/images/
/error-程序出错请到论坛反馈.txt
Thumbs.db
\ No newline at end of file
/ruby/
/pkg/
/Gemfile.lock
\ No newline at end of file
source 'http://rubygems.org'
source 'https://rubygems.org'
ruby '1.9.3'
gem 'rubysdl', :platform => :ruby
......@@ -13,3 +13,8 @@ gem 'sqlite3'
gem 'zip'
gem 'websocket'
gem 'net-http-pipeline'
group :development do
gem 'rake'
gem 'bundler'
end
......@@ -20,7 +20,7 @@ end
spec = Gem::Specification.new do |s|
s.name = 'mycard'
s.version = '0.9.8'
s.version = '0.9.9'
s.extra_rdoc_files = ['README.txt', 'LICENSE.txt']
s.summary = 'a card game platform'
s.description = s.summary
......@@ -31,7 +31,7 @@ spec = Gem::Specification.new do |s|
s.files = %w(LICENSE.txt README.txt replay)
%w{lib audio data locales graphics ygocore}.each{|dir|s.files.concat list(dir)}
if Windows
s.files += %w(fonts ruby mycard.exe)
s.files += %w(mycard.exe) + list("ruby") + list("fonts")
else
s.files += %w(mycard.sh)
s.platform = Gem::Platform::CURRENT
......
No preview for this file type
......@@ -2,7 +2,7 @@
require "fileutils"
require_relative 'card'
module Update
Version = '0.9.8'
Version = '0.9.9'
URL = "http://my-card.in/mycard/update.json?version=#{Version}"
class <<self
attr_reader :thumbnails, :images, :status
......
......@@ -121,7 +121,7 @@ class Ygocore < Game
connected = false
if @@im.jid.domain == "my-card.in"
begin
@@im.connect("ygopro-server.my-card.in", 5223)
@@im.connect("chat.my-card.in", 5223)
connected = true
rescue
Game_Event.push Game_Event::Error.new('登录', '连接服务器失败')
......@@ -278,11 +278,11 @@ class Ygocore < Game
end
font, size = system_conf['textfont'].split(' ')
if !File.file?(font) or size.to_i.to_s != size
if !File.file?(File.expand_path(font, File.dirname(ygocore_path))) or size.to_i.to_s != size
require 'pathname'
font_path = Pathname.new(Font)
font_path = font_path.relative_path_from(Pathname.new(File.dirname(ygocore_path))) if font_path.relative?
system_conf['textfont'] = font_path + ' 14'
system_conf['textfont'] = "#{font_path} 14"
end
if !File.file?(system_conf['numfont'])
system_conf['textfont'] = Windows ? 'c:/windows/fonts/arialbd.ttf' : '/usr/share/fonts/gnu-free/FreeSansBold.ttf'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment