buzzler / UnitySnes

3 stars 1 forks source link

강제 세이브 관련 인터페이스 미구현 #2

Closed buzzler closed 6 years ago

buzzler commented 6 years ago

구현 자체가 누락되어 있다.

buzzler commented 6 years ago

이런것들 구현해야해

// Sets device to be used for player 'port'. // By default, RETRO_DEVICE_JOYPAD is assumed to be plugged into all // available ports. // Setting a particular device type is not a guarantee that libretro cores // will only poll input based on that particular device type. It is only a // hint to the libretro core when a core cannot automatically detect the // appropriate input device type on its own. It is also relevant when a // core can change its behavior depending on device type.

// As part of the core's implementation of retro_set_controller_port_device, // the core should call RETRO_ENVIRONMENT_SET_INPUT_DESCRIPTORS to notify the // frontend if the descriptions for any controls have changed as a // result of changing the device type. RETRO_API void retro_set_controller_port_device(unsigned port, unsigned device);

// Resets the current game. RETRO_API void retro_reset(void);

// Returns the amount of data the implementation requires to serialize // internal state (save states). // Between calls to retro_load_game() and retro_unload_game(), the // returned size is never allowed to be larger than a previous returned // value, to ensure that the frontend can allocate a save state buffer once. RETRO_API size_t retro_serialize_size(void);

// Serializes internal state. If failed, or size is lower than // retro_serialize_size(), it should return false, true otherwise. RETRO_API bool retro_serialize(void data, size_t size); RETRO_API bool retro_unserialize(const void data, size_t size);

RETRO_API void retro_cheat_reset(void); RETRO_API void retro_cheat_set(unsigned index, bool enabled, const char *code);

buzzler commented 6 years ago

일단 모두 추가 완료. 테스트 해야함

buzzler commented 6 years ago

리셋 retro_reset(void) 강제 세이브 retro_serialize 강제 로드 retro_unserialize 구현 끝. 테스트 끝

buzzler commented 6 years ago

치트 인터페이스는 일단... 무시