try to fix savestates again
This commit is contained in:
parent
8217d5ceea
commit
c8e44d6d3b
|
@ -489,8 +489,12 @@ static int savestate_create(lua_State *L) {
|
||||||
filename = FCEU_MakeFName(FCEUMKF_STATE, which - 1, 0);
|
filename = FCEU_MakeFName(FCEUMKF_STATE, which - 1, 0);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
char tempbuf[100] = "snluaXXXXXX";
|
//char tempbuf[100] = "snluaXXXXXX";
|
||||||
filename = mktemp(tempbuf);
|
//filename = mktemp(tempbuf);
|
||||||
|
//doesnt work -^
|
||||||
|
|
||||||
|
//mbg 8/13/08 - this needs to be this way. we'll make a better system later:
|
||||||
|
filename = tempnam(NULL, "snlua");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Our "object". We don't care about the type, we just need the memory and GC services.
|
// Our "object". We don't care about the type, we just need the memory and GC services.
|
||||||
|
|
Loading…
Reference in New Issue