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

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

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

Loading…
Cancel
Save