Commit c6d2edbc authored by 神楽坂玲奈's avatar 神楽坂玲奈

temp

parent 3bdc6566
...@@ -58,7 +58,7 @@ class Window_LobbyButtons < Window_List ...@@ -58,7 +58,7 @@ class Window_LobbyButtons < Window_List
if f.read =~ /^mycard:\/\/([\d\.]+):(\d+)\/(.*)$/ if f.read =~ /^mycard:\/\/([\d\.]+):(\d+)\/(.*)$/
room = Room.new(nil, $3.to_s) room = Room.new(nil, $3.to_s)
room.server = Server.new(nil, nil, $1, $2.to_i, false) room.server = Server.new(nil, nil, $1, $2.to_i, false)
$game.join(room) $game.run_ygocore(room, true)
else else
$log.error('自动匹配非法回复'){f.read} $log.error('自动匹配非法回复'){f.read}
Widget_Msgbox.new("自动匹配", "错误: #{exception}", ok: "确定") Widget_Msgbox.new("自动匹配", "错误: #{exception}", ok: "确定")
......
...@@ -368,7 +368,7 @@ class Ygocore < Game ...@@ -368,7 +368,7 @@ class Ygocore < Game
Config.save Config.save
end end
rescue Exception => exception rescue Exception => exception
$log.error('公告读取失败') { [exception.inspect, *exception.backtrace].collect { |str| str.encode("UTF-8") }.join("\n") } $log.error('公告读取失败') { [exception.inspect, *exception.backtrace].collect { |str| str.force_encoding("UTF-8") }.join("\n") }
end end
end end
end end
......
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