• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Go で書き直した Ikemen


Commit MetaInfo

Révision878f5a36c2426c3f1f3847851a8ae712f9afe35c (tree)
l'heure2019-08-16 18:00:53
Auteurneatunsou <sisiy4excite@gmai...>
Commiterneatunsou

Message de Log

Windblade氏の更新に対応

Change Summary

Modification

--- a/src/main.go
+++ b/src/main.go
@@ -35,6 +35,8 @@ func closeLog(f *os.File) {
3535 f.Close()
3636 }
3737 func main() {
38+ os.Mkdir("save", os.ModeSticky|0755)
39+ os.Mkdir("save/replays", os.ModeSticky|0755)
3840 if len(os.Args[1:]) > 0 {
3941 sys.cmdFlags = make(map[string]string)
4042 key := ""
@@ -115,6 +117,7 @@ func main() {
115117 "ZoomMax":1.1,
116118 "ZoomSpeed":1,
117119 "RoundTime":99,
120+ "SingleTeamMode":true,
118121 "NumTurns":4,
119122 "NumSimul":4,
120123 "NumTag":4,
@@ -175,7 +178,7 @@ func main() {
175178 QuickLaunch int
176179 }{}
177180 chk(json.Unmarshal(defcfg, &tmp))
178- const configFile = "data/config.json"
181+ const configFile = "save/config.json"
179182 if bytes, err := ioutil.ReadFile(configFile); err != nil {
180183 f, err := os.Create(configFile)
181184 chk(err)
--- a/src/script.go
+++ b/src/script.go
@@ -473,7 +473,7 @@ func systemScriptInit(l *lua.LState) {
473473 l.RaiseError("すでに通信中です。")
474474 }
475475 sys.chars = [len(sys.chars)][]*Char{}
476- sys.netInput = NewNetInput("replay/netplay.replay")
476+ sys.netInput = NewNetInput("save/replays/netplay.replay")
477477 if host := strArg(l, 1); host != "" {
478478 sys.netInput.Connect(host, sys.listenPort)
479479 } else {
--- a/src/system.go
+++ b/src/system.go
@@ -52,7 +52,7 @@ var sys = System{
5252 ignoreMostErrors: true,
5353 superpmap: *newPalFX(),
5454 wincnt: wincntMap(make(map[string][]int32)),
55- wincntFileName: "autolevel.txt",
55+ wincntFileName: "save/autolevel.save",
5656 powerShare: [...]bool{true, true},
5757 oldNextAddTime: 1,
5858 commandLine: make(chan string),
@@ -64,15 +64,15 @@ var sys = System{
6464 keyInput: glfw.KeyUnknown,
6565 keyString: "",
6666 // Localcoord sceenpack
67- luaSpriteScale: 1,
68- luaSmallPortraitScale: 1,
69- luaBigPortraitScale: 1,
70- luaSpriteOffsetX: 0,
71- lifebarScale: 1,
72- lifebarOffsetX: 0,
67+ luaSpriteScale: 1,
68+ luaSmallPortraitScale: 1,
69+ luaBigPortraitScale: 1,
70+ luaSpriteOffsetX: 0,
71+ lifebarScale: 1,
72+ lifebarOffsetX: 0,
7373 //Shader vars
7474 MultisampleAntialiasing: false,
75- PostProcessingShader: 0,
75+ PostProcessingShader: 0,
7676 }
7777
7878 type TeamMode int32