New file with constants. And we're now 0.1-beta :).
This commit is contained in:
parent
8cfbca284e
commit
e87d51b1e3
14
common/const.go
Normal file
14
common/const.go
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
// URTator - Urban Terror server browser and game launcher, written in
|
||||||
|
// Go.
|
||||||
|
//
|
||||||
|
// Copyright (c) 2016, Stanslav N. a.k.a pztrn (or p0z1tr0n)
|
||||||
|
// All rights reserved.
|
||||||
|
//
|
||||||
|
// Licensed under Terms and Conditions of GNU General Public License
|
||||||
|
// version 3 or any higher.
|
||||||
|
// ToDo: put full text of license here.
|
||||||
|
package common
|
||||||
|
|
||||||
|
const (
|
||||||
|
URTRATOR_VERSION = "0.1-beta"
|
||||||
|
)
|
@ -10,6 +10,10 @@
|
|||||||
package ui
|
package ui
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
// local
|
||||||
|
"github.com/pztrn/urtrator/common"
|
||||||
|
|
||||||
|
// other
|
||||||
"github.com/mattn/go-gtk/gtk"
|
"github.com/mattn/go-gtk/gtk"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -18,7 +22,7 @@ func ShowAboutDialog() {
|
|||||||
|
|
||||||
ad.SetProgramName("URTrator")
|
ad.SetProgramName("URTrator")
|
||||||
ad.SetComments("Urban Terror servers browser and game launcher")
|
ad.SetComments("Urban Terror servers browser and game launcher")
|
||||||
ad.SetVersion("0.1")
|
ad.SetVersion(common.URTRATOR_VERSION)
|
||||||
ad.SetWebsite("http://urtrator.pztrn.name")
|
ad.SetWebsite("http://urtrator.pztrn.name")
|
||||||
ad.SetLogo(logo)
|
ad.SetLogo(logo)
|
||||||
|
|
||||||
|
@ -11,6 +11,7 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
// local
|
// local
|
||||||
|
"github.com/pztrn/urtrator/common"
|
||||||
"github.com/pztrn/urtrator/context"
|
"github.com/pztrn/urtrator/context"
|
||||||
"github.com/pztrn/urtrator/ui"
|
"github.com/pztrn/urtrator/ui"
|
||||||
|
|
||||||
@ -20,7 +21,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
fmt.Println("This is URTrator, version 0.1")
|
fmt.Println("This is URTrator, version " + common.URTRATOR_VERSION)
|
||||||
|
|
||||||
numCPUs := runtime.NumCPU()
|
numCPUs := runtime.NumCPU()
|
||||||
runtime.GOMAXPROCS(numCPUs)
|
runtime.GOMAXPROCS(numCPUs)
|
||||||
|
Reference in New Issue
Block a user