-
Notifications
You must be signed in to change notification settings - Fork 44
/
Main.hpp
63 lines (54 loc) · 2.44 KB
/
Main.hpp
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// DLL Hijack. Do NOT remove this line!
#include "Proxy.hpp"
#include "Tests.hpp"
#include "CC/ControlServer.hpp"
#include "Mods/Enumeration.hpp"
#include "Mods/CustomSongTitles.hpp"
#include "Mods/CollectColors.hpp"
#include "Mods/GuitarSkeletons.hpp"
#include "Mods/GuitarSpeak.hpp"
#include "Mods/DisableControllers.hpp"
#include "Mods/Midi.hpp"
#include "Mods/VolumeControl.hpp"
#include "Mods/LaunchOnExternalMonitor.hpp"
#include "Mods/VoiceOverControl.hpp"
#include "Mods/RiffRepeater.hpp"
#include "Mods/AudioDevices.hpp"
#include "Mods/BugPrevention.hpp"
#include "Mods/TrueTuning.hpp"
#include "Mods/Loft.hpp"
std::vector<std::string> effectQueue;
std::vector<std::string> enabledEffects;
bool takenScreenshotOfThisScreen = false; // Has the user taken a screenshot of their scores in this menu
bool saveNewRRSpeedToFile = false;
inline bool ImGuiInit = false; // Has ImGui already been init? If we close the game with this being false, then we get an assert.
inline const double DefaultNSPTimeLimit = 10.9899997711182; // The default time for NSP.
// Volume adjustment mod
bool displayMixer = false;
bool displayCurrentVolume = false;
auto displayVolumeStartTime = std::chrono::steady_clock::time_point(); // Defaults to epoch time
unsigned int currentVolumeIndex = 0; // Mixer volume to change. 0 - Master, 1 - Song, 2 - P1, 3 - P2, 4 - Mic, 5 - VO, 6 - SFX
// Looping functionality.
inline float loopStart = NULL; // The start of the loop, as specified by the user.
inline float roughLoopStart = NULL; // Just like loopStart, except we account for the lead-in time.
inline float loopEnd = NULL; // The end of the loop, as specified by the user.
inline std::vector<std::string> mixerInternalNames = { // Needs to be char* as that's what SetRTPCValue needs.
{"Master_Volume"}, // Master Volume
{"Mixer_Music"}, // Song Volume
{"Mixer_Player1"}, // Player 1 Guitar & Bass (both are handled with this singular name)
{"Mixer_Player2"}, // Player 2 Guitar & Bass (both are handled with this singular name)
{"Mixer_Mic"}, // My Microphone Volume
{"Mixer_VO"}, // Rocksmith Dad Voice Over
{"Mixer_SFX"}, // Menu SFX Volume
};
inline std::vector<std::string> drawMixerTextName = {
{"Master Volume: "},
{"Song Volume: "},
{"Player 1 Volume: "},
{"Player 2 Volume: "},
{"Microphone Volume: "},
{"Voice-Over Volume: "},
{"SFX Volume: "},
};
inline std::string selectedUser = "";
bool Contains(std::string str, const char* key){ return str.find(key) != std::string::npos; }