Skip to content

Commit

Permalink
Replicate changes in 5e82233 to correctly fix resolvedefines and getw…
Browse files Browse the repository at this point in the history
…rittenblocks
  • Loading branch information
Atari2 committed Jul 31, 2024
1 parent 52f1011 commit 3d48a4e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/asar/interface-lib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -493,11 +493,14 @@ EXPORT const char * asar_getdefine(const char * name)
EXPORT const char * asar_resolvedefines(const char * data)
{
static string out;
out = "";
try
{
resolvedefines(out, data);
}
catch(errfatal&){}
catch(errfatal&){
out = "";
}
return out;
}

Expand Down
1 change: 1 addition & 0 deletions src/asar/libsmw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ static int findromwritepos(int snesoffset, int searchstartpos, int searchendpos)

static void addromwriteforbank(int snesoffset, int numbytes)
{
if (numbytes == 0) return;
int currentbank = (snesoffset & 0xFF0000);

int insertpos = findromwritepos(snesoffset, 0, writtenblocks.count);
Expand Down

0 comments on commit 3d48a4e

Please sign in to comment.