mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-06 21:28:27 +02:00
14 lines
468 B
TypeScript
14 lines
468 B
TypeScript
import { StorageKey, type StreamPref } from "@/enums/pref-keys";
|
|
import { BaseSettingsStorage } from "./base-settings-storage";
|
|
import { StreamSettingsStorage } from "./stream-settings-storage";
|
|
|
|
export class GameSettingsStorage extends BaseSettingsStorage<StreamPref> {
|
|
constructor(id: number) {
|
|
super(`${StorageKey.STREAM}.${id}`, StreamSettingsStorage.DEFINITIONS);
|
|
}
|
|
|
|
isEmpty() {
|
|
return Object.keys(this.settings).length === 0;
|
|
}
|
|
}
|