-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathplay_manager.h
39 lines (30 loc) · 1.9 KB
/
play_manager.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#pragma once
#include "play_device.h"
class PlayManager {
private:
app_config releaseAppConfig;
PlayDevice releaseDeviceARM, releaseDeviceX86, releaseDeviceARM64, releaseDeviceX8664;
app_config betaAppConfig;
PlayDevice betaDeviceARM, betaDeviceX86, betaDeviceARM64, betaDeviceX8664;
public:
PlayManager() : releaseAppConfig("priv/playdl_release.conf"),
releaseDeviceARM(releaseAppConfig, "priv/device_arm.conf", "priv/device_arm_release_state.conf"),
releaseDeviceX86(releaseAppConfig, "priv/device_x86.conf", "priv/device_x86_release_state.conf"),
releaseDeviceARM64(releaseAppConfig, "priv/device_arm64.conf", "priv/device_arm64_release_state.conf"),
releaseDeviceX8664(releaseAppConfig, "priv/device_x86_64.conf", "priv/device_x86_64_release_state.conf"),
betaAppConfig("priv/playdl_beta.conf"),
betaDeviceARM(betaAppConfig, "priv/device_arm.conf", "priv/device_arm_beta_state.conf"),
betaDeviceX86(betaAppConfig, "priv/device_x86.conf", "priv/device_x86_beta_state.conf"),
betaDeviceARM64(betaAppConfig, "priv/device_arm64.conf", "priv/device_arm64_beta_state.conf"),
betaDeviceX8664(betaAppConfig, "priv/device_x86_64.conf", "priv/device_x86_64_beta_state.conf") {
}
PlayDevice& getReleaseDeviceARM() { return releaseDeviceARM; }
PlayDevice& getReleaseDeviceX86() { return releaseDeviceX86; }
PlayDevice& getReleaseDeviceARM64() { return releaseDeviceARM64; }
PlayDevice& getReleaseDeviceX8664() { return releaseDeviceX8664; }
PlayDevice& getBetaDeviceARM() { return betaDeviceARM; }
PlayDevice& getBetaDeviceX86() { return betaDeviceX86; }
PlayDevice& getBetaDeviceARM64() { return betaDeviceARM64; }
PlayDevice& getBetaDeviceX8664() { return betaDeviceX8664; }
void deleteStateData();
};