batocera吧 关注:20,551贴子:42,822
  • 5回复贴,共1

Batocera列表生成工具

只看楼主收藏回复

::复制下面内容到批处理文件:
::将本批处理放到游戏存放目录中执行
::本批处理需要dos2unix.exe和iconv.exe来执行文件重新编码,请网上自行下载
@璐村惂鐢ㄦ埛_000076K馃惥 off & color 0A
echo ^<?xml version="1.0"?^>> gamelist.txt
echo ^<gameList^>>> gamelist.txt
::将下面的*.zip改为你rom的后缀,例如:*.nes、*.gba等等
for /f "delims=" %%B in ('dir /a-d /b /on *.zip') do (
echo ^<game^>>> gamelist.txt
echo ^<path^>./%%B^</path^>>>gamelist.txt
for %%a in ("%%B") do echo ^<name^>%%~na^</name^>>> gamelist.txt
for %%a in ("%%B") do echo ^<image^>./images/%%~na.jpg^</image^>>> gamelist.txt
for %%a in ("%%B") do echo ^<video^>./images/%%~na.mp4^</video^>>> gamelist.txt
echo ^</game^>>> gamelist.txt
)
echo ^</gameList^>>> gamelist.txt
dos2unix gamelist.txt
iconv -c -f gbk -t utf-8 gamelist.txt> gamelist.xml
del gamelist.txt
del dos2unix.exe
del iconv.exe
del del %0
::如果游戏的游戏文件为英文文件名,在生成的gamelist.xml文件中可将 <name>和</name> 中间的内容改为游戏的中文名称
::例如: <name>超级马里奥</name>


IP属地:河北1楼2020-02-09 14:21回复
    好东西


    IP属地:江苏来自Android客户端2楼2020-02-09 15:34
    回复
      你的列表脚本还没修正啊?我不是发群上了吗?
      要不要我发我的那份出来


      IP属地:广东3楼2020-02-11 12:15
      回复
        你好楼主,我是编程小白,你能说的在具体一点吗??我按你的方法试了好多次都没反应,估计我哪里不合适!能否具体方法发我邮箱,我将非常谢谢你了??491790441@qq.com 谢谢你了


        4楼2020-02-16 01:53
        回复
          能不能发个视频教程?搞不懂啊 还有那2个软件也不会用。


          5楼2020-07-13 09:40
          回复
            ::将本批处理放到游戏存放目录中执行
            ::本批处理需要dos2unix.exe和iconv.exe来执行文件重新编码,请网上自行下载
            del gamelist.xml
            del gamelist.txt
            @璐村惂鐢ㄦ埛_000076K馃惥 off & color 0A
            echo ^<?xml version="1.0" encoding="UTF-8"?^>> gamelist.txt
            echo ^<gameList^>>> gamelist.txt
            ::将下面的*.zip改为你rom的后缀,例如:*.nes、*.gba等等
            for /f "delims=" %%B in ('dir /a-d /b /on *.zip') do (
            echo ^<game^>>> gamelist.txt
            echo ^<path^>./%%B^</path^>>>gamelist.txt
            for %%a in ("%%B") do echo ^<name^>%%~na^</name^>>> gamelist.txt
            echo ^<desc/^>>> gamelist.txt
            for %%a in ("%%B") do echo ^<image^>./images/%%~na.png^</image^>>> gamelist.txt
            for %%a in ("%%B") do echo ^<marquee^>./images/%%~na.png^</marquee^>>> gamelist.txt
            for %%a in ("%%B") do echo ^<video^>./snap/%%~na.mp4^</video^>>> gamelist.txt
            echo ^<releasedate^>发行日期 ^</releasedate^>>> gamelist.txt
            echo ^<developer^>厂商 ^</developer^>>> gamelist.txt
            echo ^<publisher^>机种 ^</publisher^>>> gamelist.txt
            echo ^</game^>>> gamelist.txt
            )
            echo ^</gameList^>>> gamelist.txt
            dos2unix gamelist.txt
            iconv -c -f gbk -t utf-8 gamelist.txt> gamelist.xml


            IP属地:北京6楼2020-08-07 20:14
            回复