refactor(main): move file operation functions to new source (#2124)

This commit is contained in:
ReenigneArcher 2024-02-10 07:37:27 -05:00 committed by GitHub
commit cd2153f340
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 113 additions and 78 deletions

View file

@ -3,8 +3,8 @@
* @brief todo
*/
#include "graphics.h"
#include "src/file_handler.h"
#include "src/logging.h"
#include "src/main.h"
#include "src/video.h"
#include <fcntl.h>
@ -780,7 +780,7 @@ namespace egl {
for (int x = 0; x < count; ++x) {
auto &compiled_source = compiled_sources[x];
compiled_source = gl::shader_t::compile(read_file(sources[x]), shader_type[x % 2]);
compiled_source = gl::shader_t::compile(file_handler::read_file(sources[x]), shader_type[x % 2]);
gl_drain_errors;
if (compiled_source.has_right()) {