Browse Source

Use puts instead of printf.

Darryl Pogue 12 years ago
parent
commit
b6d8492b3b
  1. 8
      Sources/Plasma/Apps/plPageOptimizer/main.cpp
  2. 8
      Sources/Plasma/Apps/plPageOptimizer/plPageOptimizer.cpp

8
Sources/Plasma/Apps/plPageOptimizer/main.cpp

@ -49,7 +49,7 @@ int main(int argc, char* argv[])
{
if (argc != 2)
{
printf("plPageOptimizer: wrong number of arguments\n");
puts("plPageOptimizer: wrong number of arguments");
return 1;
}
@ -62,7 +62,7 @@ int main(int argc, char* argv[])
hsgResMgr::Init(resMgr);
#ifndef _DEBUG
} catch (...) {
printf(" ***crashed on init\n");
puts(" ***crashed on init");
return 2;
}
#endif
@ -76,7 +76,7 @@ int main(int argc, char* argv[])
}
#ifndef _DEBUG
catch (...) {
printf(" ***crashed on optimizing\n");
puts(" ***crashed on optimizing");
return 2;
}
#endif
@ -93,7 +93,7 @@ int main(int argc, char* argv[])
hsgResMgr::Shutdown();
#ifndef _DEBUG
} catch (...) {
printf(" ***crashed on shutdown\n");
puts(" ***crashed on shutdown");
return 2;
}
#endif

8
Sources/Plasma/Apps/plPageOptimizer/plPageOptimizer.cpp

@ -140,24 +140,24 @@ void plPageOptimizer::Optimize()
if (!loaded)
{
printf("no scene node.\n");
puts("no scene node.");
}
else if (fOptimized)
{
plFileUtils::RemoveFile(fTempPagePath);
printf("already optimized.\n");
puts("already optimized.");
}
else if (oldSize == newSize)
{
plFileUtils::RemoveFile(fPagePath, true);
plFileUtils::FileMove(fTempPagePath, fPagePath);
printf("complete\n");
puts("complete");
}
else
{
plFileUtils::RemoveFile(fTempPagePath);
printf("failed. File sizes different\n");
puts("failed. File sizes different");
}
}

Loading…
Cancel
Save