bsnes-libretro/nall/windows/shared-memory.hpp
Tim Allen f3e67da937 Update to v101r19 release.
byuu says:

Changelog:

-   added \~130 new PAL games to icarus (courtesy of Smarthuman
    and aquaman)
-   added all three Korean-localized games to icarus
-   sfc: removed SuperDisc emulation (it was going nowhere)
-   sfc: fixed MSU1 regression where the play/repeat flags were not
    being cleared on track select
-   nall: cryptography support added; will be used to sign future
    databases (validation will always be optional)
-   minor shims to fix compilation issues due to nall changes

The real magic is that we now have 25-30% of the PAL SNES library in
icarus!

Signing will be tricky. Obviously if I put the public key inside the
higan archive, then all anyone has to do is change that public key for
their own releases. And if you download from my site (which is now over
HTTPS), then you don't need the signing to verify integrity. I may just
put the public key on my site on my site and leave it at that, we'll
see.
2016-10-28 08:16:58 +11:00

28 lines
730 B
C++

#pragma once
namespace nall {
struct shared_memory {
shared_memory() = default;
shared_memory(const shared_memory&) = delete;
auto operator=(const shared_memory&) -> shared_memory& = delete;
~shared_memory() {
reset();
}
explicit operator bool() const { return false; }
auto empty() const -> bool { return true; }
auto size() const -> uint { return 0; }
auto acquired() const -> bool { return false; }
auto acquire() -> uint8_t* { return nullptr; }
auto release() -> void {}
auto reset() -> void {}
auto create(const string& name, uint size) -> bool { return false; }
auto remove() -> void {}
auto open(const string& name, uint size) -> bool { return false; }
auto close() -> void {}
};
}