Skip to content

Commit de4b9c4

Browse files
authored
Remove flash injection feature (#655)
1 parent 41526d4 commit de4b9c4

79 files changed

Lines changed: 22 additions & 10361 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

IntelPresentMon/AppCef/ipm-ui-vue/src/App.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function cyclePreset() {
4141
// === Computed ===
4242
const inSettings = computed(() => {
4343
const routeName = typeof route.name === 'symbol' ? route.name.toString() : route.name;
44-
return ['capture-config', 'overlay-config', 'data-config', 'other-config', 'flash-config', 'logging-config', 'about-config']
44+
return ['capture-config', 'overlay-config', 'data-config', 'other-config', 'logging-config', 'about-config']
4545
.includes(routeName ?? '')
4646
});
4747
const targetName = computed(() => {
@@ -173,9 +173,6 @@ watch(() => loadout.widgets, async () => {
173173
<v-list-item color="primary" :to="{ name: 'capture-config' }">
174174
<v-list-item-title class="nav-item">Capture</v-list-item-title>
175175
</v-list-item>
176-
<v-list-item color="primary" :to="{ name: 'flash-config' }">
177-
<v-list-item-title class="nav-item">Flash</v-list-item-title>
178-
</v-list-item>
179176
<v-list-item color="primary" :to="{ name: 'logging-config' }">
180177
<v-list-item-title class="nav-item">Logging</v-list-item-title>
181178
</v-list-item>

IntelPresentMon/AppCef/ipm-ui-vue/src/core/preferences.ts

Lines changed: 20 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,6 @@ export interface Preferences {
5555
readonly axisSize: 10.0;
5656
};
5757
adapterId: number;
58-
enableFlashInjection:boolean;
59-
flashInjectionEnableTargetOverride:boolean,
60-
flashInjectionTargetOverride:string;
61-
flashInjectionSize:number;
62-
flashInjectionColor:RgbaColor;
63-
flashInjectionBackgroundEnable:boolean;
64-
flashInjectionBackgroundColor:RgbaColor;
65-
flashInjectionRightShift:number;
66-
flashInjectionFlashDuration:number;
67-
flashInjectionUseRainbow:boolean;
68-
flashInjectionBackgroundSize:number;
6958
};
7059

7160
export function makeDefaultPreferences(): Preferences {
@@ -118,33 +107,12 @@ export function makeDefaultPreferences(): Preferences {
118107
enableAutotargetting: false,
119108
upscaleFactor: 2,
120109
adapterId: 0,
121-
enableFlashInjection: false,
122-
flashInjectionEnableTargetOverride: false,
123-
flashInjectionTargetOverride: '',
124-
flashInjectionSize: 0.25,
125-
flashInjectionColor: {
126-
r: 255,
127-
g: 255,
128-
b: 255,
129-
a: 255,
130-
},
131-
flashInjectionBackgroundEnable: false,
132-
flashInjectionBackgroundColor: {
133-
r: 0,
134-
g: 0,
135-
b: 0,
136-
a: 255,
137-
},
138-
flashInjectionRightShift: 0.5,
139-
flashInjectionFlashDuration: 0.05,
140-
flashInjectionUseRainbow: false,
141-
flashInjectionBackgroundSize:0.25,
142110
};
143111
}
144112

145113
export const signature: Signature = {
146114
code: "p2c-cap-pref",
147-
version: "1.0.1",
115+
version: "1.1.0",
148116
};
149117

150118
export interface PreferenceFile {
@@ -192,19 +160,6 @@ const migrations: Migration[] = [
192160
prefs.metricsOffset = def.metricsOffset;
193161
}
194162
},
195-
{
196-
version: '0.19.0',
197-
migrate: (prefs: Preferences, _intro: PreferenceMigrationIntrospection | null) => {
198-
console.info('Migrating preferences to 0.19.0 (flash injection)');
199-
const def = makeDefaultPreferences();
200-
prefs.enableFlashInjection = def.enableFlashInjection;
201-
prefs.flashInjectionSize = def.flashInjectionSize;
202-
prefs.flashInjectionColor = def.flashInjectionColor;
203-
prefs.flashInjectionBackgroundEnable = def.flashInjectionBackgroundEnable;
204-
prefs.flashInjectionBackgroundColor = def.flashInjectionBackgroundColor;
205-
prefs.flashInjectionRightShift = def.flashInjectionRightShift;
206-
}
207-
},
208163
{
209164
version: '0.20.0',
210165
migrate: (prefs: Preferences, _intro: PreferenceMigrationIntrospection | null) => {
@@ -223,7 +178,7 @@ const migrations: Migration[] = [
223178
console.info(`Migrating preferences to 0.21.0 (metricsOffset: ${prefs.metricsOffset} => ${def.metricsOffset})`);
224179
prefs.metricsOffset = def.metricsOffset;
225180
}
226-
}
181+
},
227182
},
228183
{
229184
version: '1.0.0',
@@ -257,6 +212,24 @@ const migrations: Migration[] = [
257212
}
258213
},
259214
},
215+
{
216+
version: '1.1.0',
217+
migrate: (prefs: Preferences, _intro: PreferenceMigrationIntrospection | null) => {
218+
console.info('Migrating preferences to 1.1.0 (remove flash injection)');
219+
const legacy = prefs as unknown as Record<string, unknown>;
220+
delete legacy.enableFlashInjection;
221+
delete legacy.flashInjectionEnableTargetOverride;
222+
delete legacy.flashInjectionTargetOverride;
223+
delete legacy.flashInjectionSize;
224+
delete legacy.flashInjectionColor;
225+
delete legacy.flashInjectionBackgroundEnable;
226+
delete legacy.flashInjectionBackgroundColor;
227+
delete legacy.flashInjectionRightShift;
228+
delete legacy.flashInjectionFlashDuration;
229+
delete legacy.flashInjectionUseRainbow;
230+
delete legacy.flashInjectionBackgroundSize;
231+
},
232+
},
260233
];
261234

262235
migrations.sort((a, b) => compareVersions(a.version, b.version));

IntelPresentMon/AppCef/ipm-ui-vue/src/router/index.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import ReadoutConfigView from '@/views/ReadoutConfigView.vue'
66
import DataConfigView from '@/views/DataConfigView.vue'
77
import OverlayConfigView from '@/views/OverlayConfigView.vue'
88
import CaptureConfigView from '@/views/CaptureConfigView.vue'
9-
import FlashConfigView from '@/views/FlashConfigView.vue'
109
import OtherConfigView from '@/views/OtherConfigView.vue'
1110
import LoggingConfigView from '@/views/LoggingConfigView.vue'
1211
import AboutConfigView from '@/views/AboutConfigView.vue'
@@ -70,11 +69,6 @@ const router = createRouter({
7069
name: 'about-config',
7170
component: AboutConfigView,
7271
},
73-
{
74-
path: '/flash',
75-
name: 'flash-config',
76-
component: FlashConfigView,
77-
},
7872
],
7973
})
8074

IntelPresentMon/AppCef/ipm-ui-vue/src/views/FlashConfigView.vue

Lines changed: 0 additions & 206 deletions
This file was deleted.

IntelPresentMon/Core/Core.vcxproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,11 @@
5252
<ClInclude Include="source\gfx\prim\RectPrimitive.h" />
5353
<ClInclude Include="source\gfx\prim\TextPrimitive.h" />
5454
<ClInclude Include="source\gfx\prim\TextStylePrimitive.h" />
55-
<ClInclude Include="source\iact\ActionClient.h" />
5655
<ClInclude Include="source\infra\Logging.h" />
5756
<ClInclude Include="source\infra\LogSetup.h" />
5857
<ClInclude Include="source\infra\util\CooldownTimer.h" />
5958
<ClInclude Include="source\infra\util\FolderResolver.h" />
6059
<ClInclude Include="source\kernel\DataFetchPack.h" />
61-
<ClInclude Include="source\kernel\InjectorComplex.h" />
6260
<ClInclude Include="source\kernel\MetricPackMapper.h" />
6361
<ClInclude Include="source\pmon\DynamicQuery.h" />
6462
<ClInclude Include="source\pmon\metric\DynamicPollingFetcher.h" />
@@ -123,11 +121,9 @@
123121
<ClCompile Include="source\gfx\prim\RetainedPrimitive.cpp" />
124122
<ClCompile Include="source\gfx\prim\TextPrimitive.cpp" />
125123
<ClCompile Include="source\gfx\prim\TextStylePrimitive.cpp" />
126-
<ClCompile Include="source\iact\ActionClient.cpp" />
127124
<ClCompile Include="source\infra\LogSetup.cpp" />
128125
<ClCompile Include="source\infra\util\CooldownTimer.cpp" />
129126
<ClCompile Include="source\infra\util\FolderResolver.cpp" />
130-
<ClCompile Include="source\kernel\InjectorComplex.cpp" />
131127
<ClCompile Include="source\pmon\DynamicQuery.cpp" />
132128
<ClCompile Include="source\pmon\metric\DynamicPollingFetcher.cpp" />
133129
<ClCompile Include="source\pmon\StatisticsTracker.cpp" />

IntelPresentMon/Core/Core.vcxproj.filters

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,6 @@
8484
<ClInclude Include="source\infra\LogSetup.h" />
8585
<ClInclude Include="source\infra\Logging.h" />
8686
<ClInclude Include="source\win\HotkeyListener.h" />
87-
<ClInclude Include="source\iact\ActionClient.h" />
88-
<ClInclude Include="source\kernel\InjectorComplex.h" />
8987
</ItemGroup>
9088
<ItemGroup>
9189
<ClCompile Include="source\win\MessageMap.cpp" />
@@ -142,8 +140,6 @@
142140
<ClCompile Include="source\pmon\metric\DynamicPollingFetcher.cpp" />
143141
<ClCompile Include="source\infra\LogSetup.cpp" />
144142
<ClCompile Include="source\win\HotkeyListener.cpp" />
145-
<ClCompile Include="source\iact\ActionClient.cpp" />
146-
<ClCompile Include="source\kernel\InjectorComplex.cpp" />
147143
</ItemGroup>
148144
<ItemGroup>
149145
<None Include="cpp.hint" />

0 commit comments

Comments
 (0)