util.mm 758 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. INT
  20. UTIL_Platform_Init(
  21. int argc,
  22. char* argv[]
  23. )
  24. {
  25. UTIL_LogAddOutputCallback([](LOGLEVEL, const char* str, const char*)->void {
  26. NSLog(@"%s",str);
  27. });
  28. gConfig.fLaunchSetting = FALSE;
  29. return 0;
  30. }
  31. VOID
  32. UTIL_Platform_Quit(
  33. VOID
  34. )
  35. {
  36. }