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:
parent
0c6731db5b
commit
fc70505266
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user