| 1 | #include "devenv/seadGameConfig.h" |
|---|---|
| 2 | #include "filedevice/seadFileDevice.h" |
| 3 | #include "filedevice/seadFileDeviceMgr.h" |
| 4 | |
| 5 | namespace sead |
| 6 | { |
| 7 | SEAD_SINGLETON_DISPOSER_IMPL(GameConfig) |
| 8 | |
| 9 | const SafeString GameConfig::cNodeName = "sead::GameConfig"; |
| 10 | |
| 11 | void GameConfig::FileWriteCallback::save() |
| 12 | { |
| 13 | // FIXME |
| 14 | // Do not remove FileHandle. While this may appear to be useless, it has the effect of forcing |
| 15 | // FileHandle's vtable to be placed in this translation unit, which inhibits undesirable |
| 16 | // inlining. |
| 17 | FileHandle handle; |
| 18 | FileDeviceMgr::instance()->tryOpen(handle: &handle, path: "dummy", flag: FileDevice::cFileOpenFlag_WriteOnly, divSize: 0); |
| 19 | } |
| 20 | } // namespace sead |
| 21 |