mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2025-02-16 20:39:15 +01:00
Fixed .t64 loading
This commit is contained in:
parent
07eae7b91a
commit
5122ef60cc
@ -311,8 +311,13 @@ uint8 T64Drive::open_file(int channel, char *filename)
|
||||
if (find_first_file(plainname, filetype, &num)) {
|
||||
|
||||
// Open temporary file
|
||||
if ((file[channel] = tmpfile()) != NULL) {
|
||||
|
||||
if ((file[channel] =
|
||||
#if defined(GEKKO)
|
||||
fopen("/apps/frodo/t64tmp", "rw")
|
||||
#else
|
||||
tmpfile()
|
||||
#endif
|
||||
) != NULL) {
|
||||
// Write load address (.t64 only)
|
||||
if (!is_lynx) {
|
||||
fwrite(&file_info[num].sa_lo, 1, 1, file[channel]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user