Skip to content

解析东方Project的replay文件的Go语言版本

License

Unknown and 2 other licenses found

Licenses found

Unknown
LICENSE
Unknown
LICENSE.md
LGPL-3.0
LICENSE.LGPLv3
Notifications You must be signed in to change notification settings

CuteReimu/threp

Repository files navigation

threp

解析东方Project的replay文件的Go语言版本

这个仓库是在score.royalflare.net即将关站前夕,为纪念它而写的。现将该网站上开源的python解析replay文件的代码转化为Go语言版本。

安装方法

go get github.com/CuteReimu/threp

使用方法

package main

import (
	"fmt"
	"github.com/CuteReimu/threp"
	"os"
)

func main() {
	f, _ := os.Open(`th12_ud0001.rpy`)
	defer f.Close()
	result, _ := threp.DecodeNewReplay(f)
	fmt.Println(result.String())
}

函数说明

  • DecodeTh6ReplayDecodeTh7ReplayDecodeTh8Replay分别用来解析th6、th7、th8三作的rpy文件。
  • DecodeNewReplay用来解析th95及以后各作的rpy文件
  • DecodeReplay用来解析任意一作的rpy文件,返回RepInfo接口

进度

  • 东方红魔乡
  • 东方妖妖梦
  • 东方永夜抄
  • 东方文花帖
  • 东方风神录
  • 东方地灵殿
  • 东方星莲船
  • 东方文花帖DS
  • 妖精大战争
  • 东方神灵庙
  • 东方辉针城
  • 东方绀珠传
  • 东方天空璋
  • 秘封噩梦日记
  • 东方鬼形兽
  • 东方虹龙洞
  • 黄昏酒场