mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-03-05 05:00:20 +00:00
Add resource directories and config/
This commit is contained in:
parent
35a592476f
commit
1168022db9
3 changed files with 23 additions and 5 deletions
|
|
@ -1,5 +1,6 @@
|
|||
// Copyright (c) 2016 PSForever.net to present
|
||||
import java.net.InetAddress
|
||||
import java.io.File
|
||||
|
||||
import akka.actor.{ActorSystem, Props}
|
||||
import ch.qos.logback.classic.LoggerContext
|
||||
|
|
@ -98,7 +99,16 @@ object PsLogin {
|
|||
banner()
|
||||
println(systemInformation)
|
||||
|
||||
initializeLogging("logback.xml")
|
||||
// Config directory
|
||||
// Assume a default of the current directory
|
||||
var configDirectory = "config"
|
||||
|
||||
// This is defined when we are running from SBT pack
|
||||
if(System.getProperty("prog.home") != null) {
|
||||
configDirectory = System.getProperty("prog.home") + File.separator + "config"
|
||||
}
|
||||
|
||||
initializeLogging(configDirectory + File.separator + "logback.xml")
|
||||
parseArgs(args)
|
||||
|
||||
/** Initialize the PSCrypto native library
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue