mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-20 11:47:45 +00:00
Automatically switch the renderer to Dawntrail mode if installed
This commit is contained in:
parent
46564264f1
commit
96b198b66d
2 changed files with 9 additions and 2 deletions
|
@ -23,7 +23,7 @@ There are no releases at the moment, but experimental builds are currently avail
|
|||
|
||||
### Supported Game Versions
|
||||
|
||||
This works for A Realm Reborn (2.x) thru Endwalker content (6.x) while Dawntrail (7.x) support is still WIP. If you're using something Dawntrail-related doesn't load properly, try using the `NOVUS_IS_DAWNTRAIL=1` environment variable.
|
||||
This works for A Realm Reborn (2.x) thru Endwalker content (6.x) while Dawntrail (7.x) support is still WIP.
|
||||
|
||||
## Building
|
||||
|
||||
|
|
|
@ -56,7 +56,14 @@ GameRenderer::GameRenderer(Device &device, GameData *data)
|
|||
, m_data(data)
|
||||
, m_shaderManager(device)
|
||||
{
|
||||
m_dawntrailMode = qgetenv("NOVUS_IS_DAWNTRAIL") == QByteArrayLiteral("1");
|
||||
auto repositories = physis_gamedata_get_repositories(data);
|
||||
for (int i = 0; i < repositories.repositories_count; i++) {
|
||||
if (strcmp(repositories.repositories[i].name, "ex5") == 0) {
|
||||
qInfo() << "The renderer is switching to Dawntrail mode. Please file a bug if you think this was a mistake.";
|
||||
m_dawntrailMode = true;
|
||||
}
|
||||
}
|
||||
physis_gamedata_free_repositories(repositories);
|
||||
|
||||
m_dummyTex = m_device.createDummyTexture();
|
||||
m_dummyBuffer = m_device.createDummyBuffer();
|
||||
|
|
Loading…
Add table
Reference in a new issue