This commit is contained in:
Jorijn van der Graaf 2026-10-31 20:50:57 +01:00
commit 367c19386c
17 changed files with 561 additions and 166 deletions

View file

@ -0,0 +1,19 @@
//SPDX-License-Identifier: LGPL-3.0-only
//SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
export module Nostro:File;
import std;
namespace fs = std::filesystem;
export namespace Nostro {
fs::path GetConfigPath();
fs::path GetCachePath();
fs::path configPath = GetConfigPath();
fs::path cachePath = GetCachePath();
void CreatePrivateFile(const fs::path& path);
void WriteString(std::ofstream& file, std::string_view str);
void ReadString(std::ifstream& file, std::string& str);
std::uint16_t SeekString(std::ifstream& file);
}