config

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// PictureDirPath: 写真の保存先のパス
	PictureDirPath string
	// VRCLogDirPath: VRChatのログディレクトリのパス
	VRCLogDirPath string
	// ConvertToJpeg: JPEGに変換するかどうか
	ConvertToJpeg bool
	// JpegQuality: JPEGの品質設定 (1-100)
	JpegQuality int
	// ConfigDirPath: 設定ディレクトリのパス
	ConfigDirPath string
	// contains filtered or unexported fields
}

func New

func New(appName string) (*Config, error)

New: 作成

func (*Config) CheckDirectoriesExist

func (c *Config) CheckDirectoriesExist() (bool, bool)

CheckDirectoriesExist: 設定されたディレクトリが存在するか確認する

func (*Config) Save

func (c *Config) Save() error

Save: 設定を保存する

func (*Config) SetConvertToJpeg added in v1.0.0

func (c *Config) SetConvertToJpeg(convert bool) error

SetConvertToJpeg: JPEG変換の設定を変更

func (*Config) SetJpegQuality added in v1.0.0

func (c *Config) SetJpegQuality(quality int) error

SetJpegQuality: JPEG品質の設定を変更

func (*Config) SetRootDirPath

func (c *Config) SetRootDirPath(path string) error

SetRootDirPath: 監視対象のルートディレクトリのパスを設定

func (*Config) SetVRCLogDirPath

func (c *Config) SetVRCLogDirPath(path string) error

SetVRCLogDirPath: VRChatのログディレクトリのパスを設定

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL