mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 19:04:56 +00:00
@@ -99,8 +99,6 @@ struct Application : boo::IApplicationCallback {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
m_cvarManager.parseCommandLine(app->getArgs());
|
|
||||||
|
|
||||||
const zeus::CPUInfo& cpuInf = zeus::cpuFeatures();
|
const zeus::CPUInfo& cpuInf = zeus::cpuFeatures();
|
||||||
Log.report(logvisor::Info, FMT_STRING("CPU Name: {}"), cpuInf.cpuBrand);
|
Log.report(logvisor::Info, FMT_STRING("CPU Name: {}"), cpuInf.cpuBrand);
|
||||||
Log.report(logvisor::Info, FMT_STRING("CPU Vendor: {}"), cpuInf.cpuVendor);
|
Log.report(logvisor::Info, FMT_STRING("CPU Vendor: {}"), cpuInf.cpuVendor);
|
||||||
@@ -114,6 +112,8 @@ struct Application : boo::IApplicationCallback {
|
|||||||
uint32_t getAnisotropy() const { return m_cvarCommons.getAnisotropy(); }
|
uint32_t getAnisotropy() const { return m_cvarCommons.getAnisotropy(); }
|
||||||
|
|
||||||
bool getDeepColor() const { return m_cvarCommons.getDeepColor(); }
|
bool getDeepColor() const { return m_cvarCommons.getDeepColor(); }
|
||||||
|
|
||||||
|
int64_t getTargetFrameTime() { return m_cvarCommons.getVariableFrameTime() ? 0 : 1000000000L / 60; }
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace urde
|
} // namespace urde
|
||||||
@@ -165,6 +165,11 @@ int main(int argc, const boo::SystemChar** argv)
|
|||||||
hecl::CVarManager cvarMgr{fileMgr};
|
hecl::CVarManager cvarMgr{fileMgr};
|
||||||
hecl::CVarCommons cvarCmns{cvarMgr};
|
hecl::CVarCommons cvarCmns{cvarMgr};
|
||||||
|
|
||||||
|
std::vector<boo::SystemString> args;
|
||||||
|
for (int i = 1; i < argc; ++i)
|
||||||
|
args.push_back(argv[i]);
|
||||||
|
cvarMgr.parseCommandLine(args);
|
||||||
|
|
||||||
hecl::SystemStringView logFile = hecl::SystemStringConv(cvarCmns.getLogFile()).sys_str();
|
hecl::SystemStringView logFile = hecl::SystemStringConv(cvarCmns.getLogFile()).sys_str();
|
||||||
hecl::SystemString logFilePath;
|
hecl::SystemString logFilePath;
|
||||||
if (!logFile.empty()) {
|
if (!logFile.empty()) {
|
||||||
@@ -191,7 +196,7 @@ int main(int argc, const boo::SystemChar** argv)
|
|||||||
urde::Application appCb(fileMgr, cvarMgr, cvarCmns);
|
urde::Application appCb(fileMgr, cvarMgr, cvarCmns);
|
||||||
int ret = boo::ApplicationRun(boo::IApplication::EPlatformType::Auto, appCb, _SYS_STR("urde"), _SYS_STR("URDE"), argc,
|
int ret = boo::ApplicationRun(boo::IApplication::EPlatformType::Auto, appCb, _SYS_STR("urde"), _SYS_STR("URDE"), argc,
|
||||||
argv, appCb.getGraphicsApi(), appCb.getSamples(), appCb.getAnisotropy(),
|
argv, appCb.getGraphicsApi(), appCb.getSamples(), appCb.getAnisotropy(),
|
||||||
appCb.getDeepColor(), false);
|
appCb.getDeepColor(), appCb.getTargetFrameTime(), false);
|
||||||
// printf("IM DYING!!\n");
|
// printf("IM DYING!!\n");
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|||||||
2
hecl
2
hecl
Submodule hecl updated: d0192a1623...1dd9c34772
Reference in New Issue
Block a user