mirror of
https://github.com/open-goal/jak-project
synced 2026-05-26 23:47:57 -04:00
5a5d88eb17
Closes #8
19 lines
766 B
C++
19 lines
766 B
C++
#pragma once
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace file_util {
|
|
std::string get_project_path();
|
|
std::string get_file_path(const std::vector<std::string>& input);
|
|
void write_binary_file(const std::string& name, void* data, size_t size);
|
|
void write_text_file(const std::string& file_name, const std::string& text);
|
|
std::vector<uint8_t> read_binary_file(const std::string& filename);
|
|
std::string read_text_file(const std::string& path);
|
|
bool is_printable_char(char c);
|
|
std::string combine_path(const std::string& parent, const std::string& child);
|
|
std::string base_name(const std::string& filename);
|
|
void init_crc();
|
|
uint32_t crc32(const uint8_t* data, size_t size);
|
|
uint32_t crc32(const std::vector<uint8_t>& data);
|
|
} // namespace file_util
|