refactor!: File Manager (#1633)

* feat(vscode): added launch.json to dbg
* feat(file_manager): Make use of a global instance
* feat(file_manager): Allow for file and folder instances to be empty
* refactor(GlobalsService): Update code of global service (untested)
This commit is contained in:
Andreas Maerten
2023-07-08 17:54:59 +02:00
committed by GitHub
parent 6f40a38045
commit f13eab76a6
32 changed files with 185 additions and 208 deletions

View File

@ -91,9 +91,9 @@ class IDirectSoundCaptureBuffer
virtual HRESULT Start(int flags)
{
if (big::g_file_manager->get_project_file("./audio.wav").exists())
if (big::g_file_manager.get_project_file("./audio.wav").exists())
{
std::ifstream wave_stream(big::g_file_manager->get_project_file("./audio.wav").get_path(), std::ios::in | std::ios::binary);
std::ifstream wave_stream(big::g_file_manager.get_project_file("./audio.wav").get_path(), std::ios::in | std::ios::binary);
// https://www-mmsp.ece.mcgill.ca/Documents/AudioFormats/WAVE/WAVE.html
int header_size = 0;