New file with constants. And we're now 0.1-beta :).

This commit is contained in:
Stanislav Nikitin 2016-10-06 21:45:09 +05:00
parent 8cfbca284e
commit e87d51b1e3
3 changed files with 21 additions and 2 deletions

14
common/const.go Normal file
View 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"
)

View File

@ -10,6 +10,10 @@
package ui
import (
// local
"github.com/pztrn/urtrator/common"
// other
"github.com/mattn/go-gtk/gtk"
)
@ -18,7 +22,7 @@ func ShowAboutDialog() {
ad.SetProgramName("URTrator")
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.SetLogo(logo)

View File

@ -11,6 +11,7 @@ package main
import (
// local
"github.com/pztrn/urtrator/common"
"github.com/pztrn/urtrator/context"
"github.com/pztrn/urtrator/ui"
@ -20,7 +21,7 @@ import (
)
func main() {
fmt.Println("This is URTrator, version 0.1")
fmt.Println("This is URTrator, version " + common.URTRATOR_VERSION)
numCPUs := runtime.NumCPU()
runtime.GOMAXPROCS(numCPUs)