
Сообщение от
Shadow Maker
So I downloaded the `us0.39.0.src.7z`, and checked quickly the source (not full of course, I'm not *that* fast), and I don't see any code capable to load file like this:
So I believe that old patch format is not usable with latest unreal (but also from unreal changelog I can't easily guess which old versions of unreal did support such simple format).
If you have some emulator which works with such simple breakpoint file, please try it to be 100% sure, and then post the emulator name + version - otherwise I think this format is useless and I'm not going to add it.
The 0.39 emulator seems to expect file like this (reading the source in text editor, so not sure if it is using regular clib "sscanf" or some custom-patched which will then read different things):
Код:
r0=0x1234-0xBCDE
x1=07654
w0=12345
Notice the values have prefixes (and "07654" is octal value 4012 and "12345" is DECIMAL!).
First character must be one of "r, w, x" (I guess it's read-mem, write-mem, exec-instruction type?).
Second character is single digit to select index of CPU. The two address values form a range (if only start of range is specified, then end of range is equal to start).
(EDIT: this range is not sanitized everywhere, so it can cause segfault if you specify large number in the file
- but also it may mean it can set breakpoint to large memory, if the variable "cpu.membits" is more than 64kiB, but I'm not going to hunt this down, would need to open the project in regular IDE first)
I.e. this again does not match your info. I don't need "like/similar" info, I need *precise* info (I don't know how to run unreal emulator, and I'm not going to spend another day trying to compile it and to learn how to use it and looking for some test files or rom files, etc... => so I can't try these things by myself easile => not easy, not happening soon)
From the source of 0.39 and help files there seems to be some debugger console or something, where it is maybe possible to export/save current breakpoints (there is SaveBpx() function).
Can you try open some app in the emulator, add few breakpoints at two-three addresses (like 0x1234 / 0xBCDE), and export them, and then post the resulting "bpx.ini" here?
Or try to build the "bpx.ini" file the way how I'm describing it above (trying out also different prefixes for octal/hexa/decimal), and try to load that into emulator, if it loads correctly.
Or if some other format works for you, then just confirm it works with that unreal 0.39 and post example file which was working (if you can even find source code parsing the file, that will be excellent, because I did find so far only these "bpx.ini" parsers).