Dr. Chat
ad5748f3e7
Handle cases where the optional import header isn't present :P
2017-02-25 20:28:45 -06:00
Ben Vanik
9473f20c7f
Fixing travis lint diff.
2016-01-13 22:55:28 -08:00
Dr. Chat
36372d1eae
Enforce xex memory protections
2016-01-13 01:47:06 -06:00
Ben Vanik
86b706d87c
Merge pull request #509 from x1nixmzeng/xex-resources
...
Rebrand the Xenia window with module metadata
2016-01-10 08:55:47 -08:00
x1nixmzeng
3eb602c93a
Assert library name index is in range of the string table
...
As suggested by @DrChat
2016-01-09 17:55:57 +00:00
x1nixmzeng
6530b9dc49
Added callback when new module is launched
...
This avoids having to guess the display window title format
Also manually fixed the linting errors picked out by travis which do not
get picked up using xb format locally
2016-01-09 17:36:46 +00:00
x1nixmzeng
06f259c87d
Mask the name index instead
...
The maximum number of import libraries (32) is already asserted
2016-01-09 02:43:29 +00:00
x1nixmzeng
7e4fdf7669
Fixed rare crash when accessing library import by name
...
The library name index may only be 8-bits.
This bug was not present in the previous implementation due to a bitmask
(0xFF) - see
ea99ba8e3b/src/xenia/kernel/util/xex2.cc (L272)
2016-01-09 01:19:05 +00:00
Ben Vanik
948aa2400d
Formatting all code. Too gnarly to rebase properly.
2015-12-29 13:13:34 -08:00
Dr. Chat
db8eb83057
Track export data on Guest Functions
2015-12-29 12:32:47 -08:00
Ben Vanik
0e58208add
Dropping elemental-forms and swapping out with imgui.
...
Too much code for such little use. This should simplify porting.
2015-12-26 20:25:24 -08:00
Ben Vanik
15816327b4
Renaming xe::cpu::frontend to xe::cpu::ppc.
2015-12-14 21:17:55 -08:00
Dr. Chat
57a823ae39
Add (commented out) code to setup page protections for xex modules.
2015-12-01 19:53:17 -06:00
Ben Vanik
e5fbf840d2
Shuffling kernel/.
2015-09-06 18:07:52 -07:00
Ben Vanik
b80a028589
Much better errors on undefined externs.
2015-08-30 15:27:12 -07:00
Ben Vanik
87094b8257
Adding XamUserContentRestriction* functions.
2015-08-30 15:00:04 -07:00
Dr. Chat
d2f672b2c5
Shift export ordinal back by the base to avoid false positive error
2015-08-14 20:02:39 -05:00
Ben Vanik
a92566dfc5
More style.
2015-08-07 21:29:03 -07:00
Ben Vanik
5e08889d93
More style cleanup.
2015-08-06 20:17:01 -07:00
Ben Vanik
eaa1a8ee3a
Refactoring SymbolInfo/FunctionInfo/Function into Symbol/Function.
2015-08-05 21:50:02 -07:00
Ben Vanik
12a29371e3
Clang fixes.
2015-07-19 18:32:48 -07:00
Ben Vanik
5c7f42e9d1
Fix for unknown kernel modules.
2015-07-19 10:55:12 -07:00
Ben Vanik
91d7acf59e
Fixing some particularly bad /W4.
2015-07-18 23:04:21 -07:00
Dr. Chat
f9977a25af
Use std::vector to hold the xex header instead of new/delete
2015-07-06 19:45:10 -05:00
Dr. Chat
93f24d2047
XexModule keep track of whether it's loaded into memory or not
2015-07-06 10:40:35 -05:00
Dr. Chat
4e6b036b3c
Formatting.
2015-07-05 16:28:11 -05:00
Dr. Chat
567bb525f8
Fix incorrectly getting the exe address
2015-07-05 15:41:47 -05:00
Dr. Chat
7f53b1d630
Allow unloading of user modules
2015-07-05 14:03:00 -05:00
Dr. Chat
1788ee1589
Linting.
2015-07-03 20:11:08 -05:00
Dr. Chat
03ffb20a43
Warn when importing an unimplemented kernel function
2015-07-03 19:44:11 -05:00
Dr. Chat
b852ce75df
Write a dummy value into unresolved import variables.
2015-07-03 19:00:07 -05:00
Dr. Chat
e58bb5ad9f
ReImplement XexModule::GetProcAddress
2015-07-03 18:29:14 -05:00
Dr. Chat
d616231c8b
Trigger a PPC debug trap if an unresolved import is called.
2015-07-03 18:03:33 -05:00
Dr. Chat
0211135fd6
Fix potential corruption for GetOptHeader
2015-07-03 10:41:43 -05:00
Dr. Chat
362a521c79
Rewrite XexModule to drop dependency on old xex2 headers for imports
2015-07-03 08:17:23 -05:00
Dr. Chat
029babaf5d
Drop dependency on old-style xex2 headers
2015-07-03 08:15:53 -05:00
Dr. Chat
fe87c08424
Shuffle some code around.
2015-07-03 08:15:53 -05:00
Ben Vanik
8c69a4df09
Cleaning up apu/ and renaming -private files to _flags.
...
Part of #296 .
2015-06-27 11:25:56 -07:00
Lioncash
23352f3419
xex_module: Fix formatting arguments
...
These take a const char* not a std::string.
2015-06-25 12:48:41 -04:00
Ben Vanik
ce3359389b
Allow new-style export registration.
2015-05-31 17:54:44 -07:00
Ben Vanik
08770a4ec0
Mass renaming. I love clang-format.
2015-05-31 16:58:12 -07:00
Ben Vanik
9c3d2b54fb
Cleanup before kernel export refactor.
2015-05-31 16:31:19 -07:00
Ben Vanik
1104f8e687
Header cleanups and prep.
2015-05-25 00:51:25 -07:00
Ben Vanik
5e5eb47789
Rewriting code cache to put everything at fixed addresses.
2015-05-20 19:23:46 -07:00
Ben Vanik
bb5466d7b2
Fixing undefined exports to error out right.
2015-05-18 19:58:51 -07:00
Ben Vanik
1c96941236
Handling imports when modules aren't found.
2015-05-18 19:34:06 -07:00
Dr. Chat
589e672d20
XexModule: Resolve user library imports
2015-05-18 01:31:59 -05:00
Ben Vanik
ade5388728
bool-ifying xe::cpu
2015-05-05 18:52:54 -07:00
Ben Vanik
78921c1a7e
Merging Runtime into Processor.
2015-05-03 22:28:25 -07:00
Ben Vanik
e3220f7ae6
Code cleanup: moving poly/ into xenia/base/
2015-05-02 03:42:51 -07:00