Просмотр исходного кода

yuzu_cmd/yuzu: Correct formatting specifier

Amends the formatting specifier to obey libfmt. Prevents the application
from terminating due to a formatting issue in the error case.
Lioncash 7 лет назад
Родитель
Сommit
c6f05b586f
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/yuzu_cmd/yuzu.cpp

+ 1 - 1
src/yuzu_cmd/yuzu.cpp

@@ -191,7 +191,7 @@ int main(int argc, char** argv) {
 
 
     switch (load_result) {
     switch (load_result) {
     case Core::System::ResultStatus::ErrorGetLoader:
     case Core::System::ResultStatus::ErrorGetLoader:
-        LOG_CRITICAL(Frontend, "Failed to obtain loader for %s!", filepath.c_str());
+        LOG_CRITICAL(Frontend, "Failed to obtain loader for {}!", filepath);
         return -1;
         return -1;
     case Core::System::ResultStatus::ErrorLoader:
     case Core::System::ResultStatus::ErrorLoader:
         LOG_CRITICAL(Frontend, "Failed to load ROM!");
         LOG_CRITICAL(Frontend, "Failed to load ROM!");