SFile2-Core.cpp: SFile::Initialize (0x421700), paths, OpenArchive, OpenPathAsArchive (+ Mopaq SFileOpenArchiveView), CloseArchive, SFileImpl, OpenEx, FindFile/OldFindFile + loose-file hash, SFileReadFile/CloseFile/GetFileSize/OpenFile, SetFilePointer, ReadFile/LoadFile/Unload, RebuildHash, QueueAsyncOpen. Memory: placement operator new/delete, Allocate(4). String::Equal/EqualI/Length. Os/Path helpers. Client SetPaths. Mopaq SFileGetFileSize gains unused sizeHigh; SFileSetFilePointer. MpqTest: --sfile mode. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
13 lines
343 B
C++
13 lines
343 B
C++
#ifndef ENGINE_SOURCE_OS_PATH_H
|
|
#define ENGINE_SOURCE_OS_PATH_H
|
|
|
|
#include <cstdint>
|
|
|
|
uint32_t GetModuleFileNameUTF8(void* module, char* path, uint32_t size);
|
|
void OsGetExePath(char* path, uint32_t size);
|
|
uint32_t OsPathGetRootChars(const char* path);
|
|
void OsPathStripFilename(char* path);
|
|
bool OsSetCurrentDirectory(const char* path);
|
|
|
|
#endif
|