Skip to content

Commit 557879e

Browse files
committed
Remove flash injection feature
1 parent 0767d2a commit 557879e

79 files changed

Lines changed: 21 additions & 10360 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: 19 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,6 @@ export interface Preferences {
5252
readonly axisSize: 10.0;
5353
};
5454
adapterId:number|null;
55-
enableFlashInjection:boolean;
56-
flashInjectionEnableTargetOverride:boolean,
57-
flashInjectionTargetOverride:string;
58-
flashInjectionSize:number;
59-
flashInjectionColor:RgbaColor;
60-
flashInjectionBackgroundEnable:boolean;
61-
flashInjectionBackgroundColor:RgbaColor;
62-
flashInjectionRightShift:number;
63-
flashInjectionFlashDuration:number;
64-
flashInjectionUseRainbow:boolean;
65-
flashInjectionBackgroundSize:number;
6655
};
6756

6857
export function makeDefaultPreferences(): Preferences {
@@ -114,33 +103,12 @@ export function makeDefaultPreferences(): Preferences {
114103
enableAutotargetting: false,
115104
upscaleFactor: 2,
116105
adapterId: null,
117-
enableFlashInjection: false,
118-
flashInjectionEnableTargetOverride: false,
119-
flashInjectionTargetOverride: '',
120-
flashInjectionSize: 0.25,
121-
flashInjectionColor: {
122-
r: 255,
123-
g: 255,
124-
b: 255,
125-
a: 255,
126-
},
127-
flashInjectionBackgroundEnable: false,
128-
flashInjectionBackgroundColor: {
129-
r: 0,
130-
g: 0,
131-
b: 0,
132-
a: 255,
133-
},
134-
flashInjectionRightShift: 0.5,
135-
flashInjectionFlashDuration: 0.05,
136-
flashInjectionUseRainbow: false,
137-
flashInjectionBackgroundSize:0.25,
138106
};
139107
}
140108

141109
export const signature: Signature = {
142110
code: "p2c-cap-pref",
143-
version: "0.21.0",
111+
version: "0.22.0",
144112
};
145113

146114
export interface PreferenceFile {
@@ -184,19 +152,6 @@ const migrations: Migration[] = [
184152
prefs.metricsOffset = def.metricsOffset;
185153
}
186154
},
187-
{
188-
version: '0.19.0',
189-
migrate: (prefs: Preferences) => {
190-
console.info('Migrating preferences to 0.19.0 (flash injection)');
191-
const def = makeDefaultPreferences();
192-
prefs.enableFlashInjection = def.enableFlashInjection;
193-
prefs.flashInjectionSize = def.flashInjectionSize;
194-
prefs.flashInjectionColor = def.flashInjectionColor;
195-
prefs.flashInjectionBackgroundEnable = def.flashInjectionBackgroundEnable;
196-
prefs.flashInjectionBackgroundColor = def.flashInjectionBackgroundColor;
197-
prefs.flashInjectionRightShift = def.flashInjectionRightShift;
198-
}
199-
},
200155
{
201156
version: '0.20.0',
202157
migrate: (prefs: Preferences) => {
@@ -217,6 +172,24 @@ const migrations: Migration[] = [
217172
}
218173
}
219174
},
175+
{
176+
version: '0.22.0',
177+
migrate: (prefs: Preferences) => {
178+
console.info('Migrating preferences to 0.22.0 (remove flash injection)');
179+
const legacy = prefs as unknown as Record<string, unknown>;
180+
delete legacy.enableFlashInjection;
181+
delete legacy.flashInjectionEnableTargetOverride;
182+
delete legacy.flashInjectionTargetOverride;
183+
delete legacy.flashInjectionSize;
184+
delete legacy.flashInjectionColor;
185+
delete legacy.flashInjectionBackgroundEnable;
186+
delete legacy.flashInjectionBackgroundColor;
187+
delete legacy.flashInjectionRightShift;
188+
delete legacy.flashInjectionFlashDuration;
189+
delete legacy.flashInjectionUseRainbow;
190+
delete legacy.flashInjectionBackgroundSize;
191+
}
192+
},
220193
];
221194

222195
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" />
@@ -121,11 +119,9 @@
121119
<ClCompile Include="source\gfx\prim\RetainedPrimitive.cpp" />
122120
<ClCompile Include="source\gfx\prim\TextPrimitive.cpp" />
123121
<ClCompile Include="source\gfx\prim\TextStylePrimitive.cpp" />
124-
<ClCompile Include="source\iact\ActionClient.cpp" />
125122
<ClCompile Include="source\infra\LogSetup.cpp" />
126123
<ClCompile Include="source\infra\util\CooldownTimer.cpp" />
127124
<ClCompile Include="source\infra\util\FolderResolver.cpp" />
128-
<ClCompile Include="source\kernel\InjectorComplex.cpp" />
129125
<ClCompile Include="source\pmon\DynamicQuery.cpp" />
130126
<ClCompile Include="source\pmon\metric\DynamicPollingFetcher.cpp" />
131127
<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
@@ -83,8 +83,6 @@
8383
<ClInclude Include="source\infra\LogSetup.h" />
8484
<ClInclude Include="source\infra\Logging.h" />
8585
<ClInclude Include="source\win\HotkeyListener.h" />
86-
<ClInclude Include="source\iact\ActionClient.h" />
87-
<ClInclude Include="source\kernel\InjectorComplex.h" />
8886
</ItemGroup>
8987
<ItemGroup>
9088
<ClCompile Include="source\win\MessageMap.cpp" />
@@ -140,8 +138,6 @@
140138
<ClCompile Include="source\pmon\metric\DynamicPollingFetcher.cpp" />
141139
<ClCompile Include="source\infra\LogSetup.cpp" />
142140
<ClCompile Include="source\win\HotkeyListener.cpp" />
143-
<ClCompile Include="source\iact\ActionClient.cpp" />
144-
<ClCompile Include="source\kernel\InjectorComplex.cpp" />
145141
</ItemGroup>
146142
<ItemGroup>
147143
<None Include="cpp.hint" />

0 commit comments

Comments
 (0)