text: /* 
   * File:   CSystem.cpp
   * Author: yevgeniy.logachev
   */
  
  #include "CSystem.h"
  
  #if !defined(OS_IPHONE) && !defined(OS_MAC)
  
  unsigned long CSystem::GetTickCount()
  {
  #if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_KOS)
      struct timeval t;
      gettimeofday(&t, 0);
      return ((t.tv_sec * 1000) + (t.tv_usec / 1000));
  #elif defined(OS_WINDOWS)
      return (unsigned long)::GetTickCount();
  #endif
  
      return 0;
  }
  
  const std::string& CSystem::GetBundlePath()
  {
      if (g_bundlePath.empty()) {
  #if defined(OS_KOS)
          g_bundlePath = "/rd/";
  #endif
      }
  
      return g_bundlePath;
  }
  
  void CSystem::SetBundlePath(const std::string& path)
  {
      g_bundlePath = path;
  }
  
  bool CSystem::IsFileExists(const std::string& name)
  {
      return true;
      //return _access( name.c_str(), 0 ) != -1;
  }
  
  #endif // #if !defined(OS_IPHONE) && !defined(OS_MAC)
  