Make animations work in the options screen
This commit is contained in:
@@ -1,19 +1,25 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"flag"
|
||||
"log"
|
||||
"os"
|
||||
|
||||
"code.ur.gs/lupine/ordoor/internal/ordoor"
|
||||
)
|
||||
|
||||
var (
|
||||
winX = flag.Int("win-x", 0, "Pre-scaled window X dimension override")
|
||||
winY = flag.Int("win-y", 0, "Pre-scaled window Y dimension override")
|
||||
)
|
||||
|
||||
func main() {
|
||||
configFile := "config.toml"
|
||||
if len(os.Args) == 2 {
|
||||
configFile = os.Args[1]
|
||||
}
|
||||
|
||||
if err := ordoor.Run(configFile); err != nil {
|
||||
if err := ordoor.Run(configFile, *winX, *winY); err != nil {
|
||||
log.Fatalf(err.Error())
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user