1
0
mirror of https://github.com/elua/elua.git synced 2025-01-08 20:56:17 +08:00

renamed files to romfs, now it's much less confusing hopefully

This commit is contained in:
Bogdan Marinescu 2008-09-01 13:32:05 +00:00
parent 0c6731db5b
commit fc70505266
9 changed files with 5 additions and 5 deletions

View File

@ -144,8 +144,8 @@ source_files = specific_files + newlib_files + app_files + lua_full_files + modu
if not GetOption( 'clean' ):
print "Building filesystem..."
import mkfs
mkfs.mkfs( "files", "luatest" )
os.system( "mv -f luatest.h inc/" )
mkfs.mkfs( "romfs", "romfiles" )
os.system( "mv -f romfiles.h inc/" )
os.system( "rm -f src/fs.o" )
# Env for building the program

View File

@ -4,7 +4,7 @@
#include <string.h>
#include <errno.h>
#include "devman.h"
#include "luatest.h"
#include "romfiles.h"
#include <stdio.h>
#include "ioctl.h"
@ -19,7 +19,7 @@ static int romfs_num_fd;
static u8 romfs_read( u16 addr )
{
return luatest_fs[ addr ];
return romfiles_fs[ addr ];
}
static int romfs_find_empty_fd()
@ -119,7 +119,7 @@ static _ssize_t romfs_read_r( struct _reent *r, int fd, void* ptr, size_t len )
FS* pfs = romfs_fd_table + fd;
long actlen = fsmin( len, pfs->size - pfs->offset );
memcpy( ptr, luatest_fs + pfs->offset + pfs->baseaddr, actlen );
memcpy( ptr, romfiles_fs + pfs->offset + pfs->baseaddr, actlen );
pfs->offset += actlen;
return actlen;
}