sourcepawn/jit/BaseRuntime.cpp
changeset 2378 d812052c5821
parent 2377 6ee3bbd6fbdf
child 2545 9cb1a1fefc2c
     1.1 --- a/sourcepawn/jit/BaseRuntime.cpp	Sun Oct 26 23:50:54 2008 -0500
     1.2 +++ b/sourcepawn/jit/BaseRuntime.cpp	Mon Oct 27 02:02:14 2008 -0500
     1.3 @@ -69,6 +69,11 @@
     1.4  	plugin->base_size = hdr->imagesize;
     1.5  	set_err = SP_ERROR_NONE;
     1.6  
     1.7 +	if (hdr->version == 0x0101)
     1.8 +	{
     1.9 +		plugin->debug.unpacked = true;
    1.10 +	}
    1.11 +
    1.12  	/* We have to read the name section first */
    1.13  	for (sectnum = 0; sectnum < hdr->sections; sectnum++)
    1.14  	{
    1.15 @@ -195,6 +200,10 @@
    1.16  		{
    1.17  			plugin->debug.stringbase = (const char *)(base + secptr->dataoffs);
    1.18  		}
    1.19 +		else if (strcmp(nameptr, ".dbg.natives") == 0)
    1.20 +		{
    1.21 +			plugin->debug.unpacked = false;
    1.22 +		}
    1.23  
    1.24  		secptr++;
    1.25  		sectnum++;