mirror of
https://github.com/hedge-dev/UnleashedRecomp
synced 2026-05-24 15:21:16 -04:00
Implement SDF fonts. (#24)
* Initial SDF font generation work. * Text now correctly displaying with proper spacing. * Fix untextured draws, implement custom rectangles. * Fix regular image display. * Slightly refactor ImGui rendering. * Implement outlines. * Implement bevel. * Create host device after loading the module if the installer wasn't run. * Move ImGui files to its own folder. * Fix outline sizes. * Fix default ImGui font and font scales. * Update font atlas files.
This commit is contained in:
@@ -156,11 +156,12 @@ int main(int argc, char *argv[])
|
||||
|
||||
HostStartup();
|
||||
|
||||
Video::CreateHostDevice();
|
||||
|
||||
bool isGameInstalled = Installer::checkGameInstall(".");
|
||||
if (forceInstaller || forceDLCInstaller || !isGameInstalled)
|
||||
bool runInstallerWizard = forceInstaller || forceDLCInstaller || !isGameInstalled;
|
||||
if (runInstallerWizard)
|
||||
{
|
||||
Video::CreateHostDevice();
|
||||
|
||||
if (!InstallerWizard::Run(isGameInstalled && forceDLCInstaller))
|
||||
{
|
||||
return 1;
|
||||
@@ -173,6 +174,9 @@ int main(int argc, char *argv[])
|
||||
|
||||
uint32_t entry = LdrLoadModule(FileSystem::TransformPath(GAME_XEX_PATH));
|
||||
|
||||
if (!runInstallerWizard)
|
||||
Video::CreateHostDevice();
|
||||
|
||||
Video::StartPipelinePrecompilation();
|
||||
|
||||
GuestThread::Start(entry);
|
||||
|
||||
Reference in New Issue
Block a user