refactor font api
Some checks failed
pyrite-dev/milsko/pipeline/head There was a failure building this commit

This commit is contained in:
Nishi 2026-04-06 17:29:09 +09:00
commit 0de09207a4
Signed by: nishi
GPG key ID: 27EF69B208EB9343
31 changed files with 12209 additions and 6149 deletions

View file

@ -18,9 +18,9 @@ void* MwDirectoryOpen(const char* path) {
#ifdef _WIN32
char* p = malloc(strlen(path) + 2 + 1);
strcpy(p, path);
if(strchr(path, '/') != NULL){
if(strchr(path, '/') != NULL) {
strcat(p, "/");
}else{
} else {
strcat(p, "\\");
}
strcat(p, "*");
@ -78,7 +78,7 @@ MwDirectoryEntry* MwDirectoryRead(void* handle) {
l = (ULARGE_INTEGER*)&dir->ffd.ftLastWriteTime;
entry->mtime = l->QuadPart / 10000000 - 11644473600;
dir->next = FindNextFile(dir->hFind, &dir->ffd);
#else
struct dirent* d;