Skip to content

Commit

Permalink
Don't spam with not found errors when searching for saves.
Browse files Browse the repository at this point in the history
  • Loading branch information
dennwc committed Dec 18, 2021
1 parent 1f01d39 commit d87e82b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/cryptfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import "C"
import (
"encoding/binary"
"io"
"os"
"unsafe"

"nox/v1/common/memmap"
Expand Down Expand Up @@ -39,7 +40,9 @@ func nox_xxx_cryptSetTypeMB_426A50(a1 C.int) {
//export nox_xxx_cryptOpen_426910
func nox_xxx_cryptOpen_426910(a1 *C.char, cmode, key C.int) int32 {
if err := cryptFileOpen(GoString(a1), int(cmode), int(key)); err != nil {
binFileLog.Println(err)
if !os.IsNotExist(err) {
binFileLog.Println(err)
}
return 0
}
return 1
Expand Down

0 comments on commit d87e82b

Please sign in to comment.