refactor(#8): update LoadMMKVOrDefault function to use MMKVLoaderOptions and implement platform-specific loading for Windows

This commit is contained in:
鲁树人
2026-10-18 08:11:35 +09:00
parent 107aa2c3a8
commit 061876f9bf
6 changed files with 200 additions and 19 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
//go:build !darwin
//go:build !darwin && !windows
package qmc
@@ -7,7 +7,7 @@ import (
"go.uber.org/zap"
)
func LoadMMKVOrDefault(path string, key string, logger *zap.Logger) (result common.QMCKeys, err error) {
// Stub: do nothing
func LoadMMKVOrDefault(opts MMKVLoaderOptions, logger *zap.Logger) (result common.QMCKeys, err error) {
// No platform-default QMC keys on this OS.
return nil, nil
}