util.mm 800 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #include <Foundation/Foundation.h>
  2. #include "palcfg.h"
  3. #include "util.h"
  4. BOOL
  5. UTIL_GetScreenSize(
  6. DWORD *pdwScreenWidth,
  7. DWORD *pdwScreenHeight
  8. )
  9. {
  10. return (pdwScreenWidth && pdwScreenHeight && *pdwScreenWidth && *pdwScreenHeight);
  11. }
  12. BOOL
  13. UTIL_IsAbsolutePath(
  14. LPCSTR lpszFileName
  15. )
  16. {
  17. return FALSE;
  18. }
  19. static void LogCallBack(LOGLEVEL, const char* str, const char*)
  20. {
  21. NSLog(@"%s",str);
  22. }
  23. INT
  24. UTIL_Platform_Init(
  25. int argc,
  26. char* argv[]
  27. )
  28. {
  29. UTIL_LogAddOutputCallback(LogCallBack, PAL_DEFAULT_LOGLEVEL);
  30. gConfig.fLaunchSetting = FALSE;
  31. return 0;
  32. }
  33. VOID
  34. UTIL_Platform_Quit(
  35. VOID
  36. )
  37. {
  38. }