Initial graphics implementation.

This commit is contained in:
Skyth
2024-10-06 20:12:17 +03:00
parent b2f92ff2a9
commit 24830e1326
18 changed files with 9001 additions and 54 deletions
+21 -2
View File
@@ -55,6 +55,27 @@ void KiSystemStartup()
// OS mounts game data to D:
XamContentCreateEx(0, "D", &gameContent, OPEN_EXISTING, nullptr, nullptr, 0, 0, nullptr);
WIN32_FIND_DATAA fdata;
const auto findHandle = FindFirstFileA(".\\dlc\\*.*", &fdata);
if (findHandle != INVALID_HANDLE_VALUE)
{
char strBuf[256];
do
{
if (strcmp(fdata.cFileName, ".") == 0 || strcmp(fdata.cFileName, "..") == 0)
{
continue;
}
if (fdata.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
{
snprintf(strBuf, sizeof(strBuf), ".\\dlc\\%s", fdata.cFileName);
XamRegisterContent(XamMakeContent(XCONTENTTYPE_DLC, fdata.cFileName), strBuf);
}
} while (FindNextFileA(findHandle, &fdata));
FindClose(findHandle);
}
XAudioInitializeSystem();
hid::Init();
}
@@ -107,8 +128,6 @@ int main()
uint32_t entry = LdrLoadModule(FileSystem::TransformPath(GAME_XEX_PATH));
VdInitializeSystem();
GuestThread::Start(entry);
return 0;