This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
The-Powder-Toy/src/common/platform/Emscripten.cpp
Tamás Bálint Misius 67e41b6705
Emscripten: Add target, update tpt-libs
The code itself is nowhere near being usable in a browser though.
2023-08-22 00:26:31 +02:00

33 lines
417 B
C++

#include "Platform.h"
#include <ctime>
namespace Platform
{
void OpenURI(ByteString uri)
{
fprintf(stderr, "cannot open URI: not implemented\n");
}
long unsigned int GetTime()
{
struct timespec s;
clock_gettime(CLOCK_MONOTONIC, &s);
return s.tv_sec * 1000 + s.tv_nsec / 1000000;
}
ByteString ExecutableNameFirstApprox()
{
return "";
}
bool CanUpdate()
{
return false;
}
bool Install()
{
return false;
}
}