Skip to content

Commit

Permalink
Fix savestates
Browse files Browse the repository at this point in the history
  • Loading branch information
webgeek1234 committed Sep 26, 2017
1 parent d5a6b71 commit f649ae3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
5 changes: 0 additions & 5 deletions Core/SaveState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@

namespace SaveState
{
struct SaveStart
{
void DoState(PointerWrap &p);
};

enum OperationType
{
SAVESTATE_SAVE,
Expand Down
5 changes: 5 additions & 0 deletions Core/SaveState.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@

namespace SaveState
{
struct SaveStart
{
void DoState(PointerWrap &p);
};

typedef std::function<void(bool status, const std::string &message, void *cbUserData)> Callback;

static const int NUM_SLOTS = 5;
Expand Down
8 changes: 0 additions & 8 deletions libretro/libretro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1298,7 +1298,6 @@ size_t retro_serialize_size(void)

bool retro_serialize(void *data, size_t size)
{
#if 0
(void)size;
SaveState::SaveStart state;

Expand All @@ -1316,20 +1315,13 @@ bool retro_serialize(void *data, size_t size)
return false;
else
return CChunkFileReader::SavePtr((u8 *) data, state) == CChunkFileReader::ERROR_NONE;
#else
return false;
#endif
}

bool retro_unserialize(const void *data, size_t size)
{
#if 0
(void)size;
SaveState::SaveStart state;
return CChunkFileReader::LoadPtr((u8 *) data, state) == CChunkFileReader::ERROR_NONE;
#else
return false;
#endif
}

void *retro_get_memory_data(unsigned id)
Expand Down

0 comments on commit f649ae3

Please sign in to comment.