Skip to content
Snippets Groups Projects
Verified Commit afc2d3de authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

chore: support for tuning display frequency

parent 02fd8a88
No related branches found
No related tags found
No related merge requests found
Pipeline #4565 passed
......@@ -455,6 +455,7 @@ export class GameboyEmulator extends EmulatorLogic implements Emulator {
...(this.extraSettings?.debug ?? false
? [
Feature.LoopMode,
Feature.DisplayFrequency,
Feature.BootRomInfo,
Feature.RomTypeInfo,
Feature.Cyclerate,
......@@ -592,6 +593,16 @@ export class GameboyEmulator extends EmulatorLogic implements Emulator {
this.trigger("frequency", value);
}
get displayFrequency(): number {
return this.visualFrequency;
}
set displayFrequency(value: number) {
value = Math.max(value, 0);
this.visualFrequency = value;
this.trigger("display-frequency", value);
}
get frequencySpecs(): FrequencySpecs {
return {
unit: Frequency.MHz,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment