Git Product home page Git Product logo

make_game_xml's Introduction

make game xml

일부 휴대용 게임기는 게임명, 게임경로, 비디오 파일 경로, 이미지경로를 하나하나 입력 해 줘야 합니다. 이 프로젝트를 이를 자동으로 만들어 주기 위해 제작 하였습니다.

template.xml 파일은 결과물로 나오게 될 xml 템플릿 입니다.

<contents>
    <gameList>
    {{range $val := .}} 
        <!--▼ 이 부분만 수정이 가능합니다 ▼-->
        <game>
            <path>./{{.FilePath}}</path>
            <name>{{.Name}}</name>
            <ImagePath>./downloaded_images/{{.ImagePath}}</ImagePath>
            <VideoPath>./downloaded_videos/{{.VideoPath}}</VideoPath> 
            <rating>0</rating>
            <releasedate>{{.CreateTime}}</releasedate>
            <playcount>0</playcount>
            <lastplayed>{{.CreateTime}}</lastplayed>
        <game>
        <!--▲ 이 부분만 수정이 가능합니다 ▲-->
    {{end}}
    </gameList> 
</contents>

Name : 파일명

FilePath : 파일 경로

ImagePath : 이미지 파일 경로

VideoPath : 비디오 파일 경로

CreateTime : 파일 생성 일자


setting.ini 파일은 게임, 비디오파일, 이미지 폴더 경로를 설정 할 수 있습니다.

[info]
game_folder = ./psp
image_folder = ./psp/downloaded_images
video_folder = ./psp/downloaded_videos
CreateTime= %Y%m%dT%H%M%S

game_folder : 게임폴더 경로

image_folder : 이미지폴더 경로

video_folder : 비디오폴더 경로

CreateTime : 파일 생성일 포멧 형식

시간 포멧은 링크를 참고 해주세요 : https://github.com/itchyny/timefmt-go

make_game_xml's People

Contributors

khjde1207 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.