mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 09:40:06 +00:00
(video_state_python.c) Cleanup
This commit is contained in:
parent
80d8607fd2
commit
2f545f410d
@ -315,9 +315,8 @@ py_state_t *py_state_new(const char *script,
|
|||||||
* isn't standardized across environments.
|
* isn't standardized across environments.
|
||||||
* PyRun_SimpleFile() breaks on Windows because it's
|
* PyRun_SimpleFile() breaks on Windows because it's
|
||||||
* compiled with MSVC. */
|
* compiled with MSVC. */
|
||||||
|
|
||||||
char *script_ = NULL;
|
|
||||||
ssize_t len;
|
ssize_t len;
|
||||||
|
char *script_ = NULL;
|
||||||
bool ret = read_file(script, (void**)&script_, &len);
|
bool ret = read_file(script, (void**)&script_, &len);
|
||||||
if (!ret || len < 0)
|
if (!ret || len < 0)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user