mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-27 23:08:47 +00:00
apply if constexpr
in a couple places
This commit is contained in:
parent
ccbc4c2d99
commit
181e0dba21
2 changed files with 4 additions and 2 deletions
|
@ -247,7 +247,7 @@ bool SDCardCreate(u64 disk_size /*in MB*/, const std::string& filename)
|
|||
if (!write_sector(file, s_fsinfo_sector))
|
||||
goto FailWrite;
|
||||
|
||||
if (BACKUP_BOOT_SECTOR > 0)
|
||||
if constexpr (BACKUP_BOOT_SECTOR > 0)
|
||||
{
|
||||
if (!write_empty(file, BACKUP_BOOT_SECTOR - 2))
|
||||
goto FailWrite;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue