mirror of
https://github.com/romychs/Ocean-240.2-Emulator.git
synced 2026-04-21 11:03:21 +03:00
Turn on logging to file
This commit is contained in:
parent
b3b76b0645
commit
2adffb5a21
3
okemu.log
Normal file
3
okemu.log
Normal file
@ -0,0 +1,3 @@
|
||||
2026-04-02T14:27:10[I][zrcp.go:117]: Ready for debugger connections on localhost:10001
|
||||
2026-04-02T14:29:15[I][zrcp.go:117]: Ready for debugger connections on localhost:10001
|
||||
2026-04-02T14:30:16[I][zrcp.go:117]: Ready for debugger connections on localhost:10001
|
||||
@ -55,7 +55,8 @@ func main() {
|
||||
conf := config.GetConfig()
|
||||
|
||||
// Reconfigure logging by config values
|
||||
// logger.ReconfigureLogging(conf)
|
||||
logger.ReconfigureLogging(conf)
|
||||
|
||||
if runtime.GOOS == "windows" {
|
||||
cpuClkPeriod.Store(windowsCpuClkPeriod)
|
||||
timerClkPeriod.Store(windowsTimerClkPeriod)
|
||||
@ -86,6 +87,7 @@ func main() {
|
||||
|
||||
(*w).ShowAndRun()
|
||||
computer.AutoSaveFloppy()
|
||||
logger.CloseLogs()
|
||||
}
|
||||
|
||||
func screen(ctx context.Context, computer *okean240.ComputerType, raster *canvas.Raster, label *widget.Label) {
|
||||
@ -158,8 +160,8 @@ func calcDelta(currentFreq float64, destFreq float64) int64 {
|
||||
delta := int64(math.Round(math.Abs(destFreq-currentFreq) * 100))
|
||||
if delta < 1 {
|
||||
return 1
|
||||
} else if delta > 10 {
|
||||
return 10
|
||||
} else if delta > 8 {
|
||||
return 8
|
||||
}
|
||||
return delta
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user