pre-ai
This commit is contained in:
parent
be13205ffd
commit
367c19386c
17 changed files with 561 additions and 166 deletions
19
interfaces/Nostro-File.cppm
Normal file
19
interfaces/Nostro-File.cppm
Normal 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);
|
||||
}
|
||||
Loading…
Reference in a new issue