loaded_files.splice(index, 1);
}
}
+ else if (asset.behavior === "pdb") {
+ cwraps.mono_wasm_add_assembly(virtualName, offset!, bytes.length);
+ }
else if (asset.behavior === "icu") {
if (!mono_wasm_load_icu_data(offset!))
Module.printErr(`MONO_WASM: Error loading ICU asset ${asset.name}`);
public AssemblyEntry(string name) : base(name, "assembly") {}
}
+ private sealed class PdbEntry : AssetEntry
+ {
+ public PdbEntry(string name) : base(name, "pdb") {}
+ }
+
private sealed class SatelliteAssemblyEntry : AssetEntry
{
public SatelliteAssemblyEntry(string name, string culture) : base(name, "resource")
var pdb = assembly;
pdb = Path.ChangeExtension(pdb, ".pdb");
if (File.Exists(pdb))
- config.Assets.Add(new AssemblyEntry(Path.GetFileName(pdb)));
+ config.Assets.Add(new PdbEntry(Path.GetFileName(pdb)));
}
}