mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-27 12:51:42 +00:00
Create host device after loading the module if the installer wasn't run.
This commit is contained in:
parent
06242223a3
commit
25ff2ca2e5
3 changed files with 14 additions and 13 deletions
|
|
@ -222,17 +222,14 @@ void ImFontAtlasSnapshot::GenerateGlyphRanges()
|
|||
}
|
||||
}
|
||||
|
||||
if (App::s_isInit)
|
||||
for (size_t i = XDBF_LANGUAGE_ENGLISH; i <= XDBF_LANGUAGE_ITALIAN; i++)
|
||||
{
|
||||
for (size_t i = XDBF_LANGUAGE_ENGLISH; i <= XDBF_LANGUAGE_ITALIAN; i++)
|
||||
auto achievements = g_xdbfWrapper.GetAchievements(static_cast<EXDBFLanguage>(i));
|
||||
for (auto& achievement : achievements)
|
||||
{
|
||||
auto achievements = g_xdbfWrapper.GetAchievements(static_cast<EXDBFLanguage>(i));
|
||||
for (auto& achievement : achievements)
|
||||
{
|
||||
GetGlyphs(glyphs, achievement.Name);
|
||||
GetGlyphs(glyphs, achievement.UnlockedDesc);
|
||||
GetGlyphs(glyphs, achievement.LockedDesc);
|
||||
}
|
||||
GetGlyphs(glyphs, achievement.Name);
|
||||
GetGlyphs(glyphs, achievement.UnlockedDesc);
|
||||
GetGlyphs(glyphs, achievement.LockedDesc);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ struct ImDrawDataSnapshot
|
|||
// Undefine this to generate a font atlas file in working directory.
|
||||
// You also need to do this if you are testing localization, as only
|
||||
// characters in the locale get added to the atlas.
|
||||
//#define ENABLE_IM_FONT_ATLAS_SNAPSHOT
|
||||
#define ENABLE_IM_FONT_ATLAS_SNAPSHOT
|
||||
|
||||
struct ImFontAtlasSnapshot
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue