mirror of
https://github.com/open-goal/jak-project
synced 2026-06-07 20:11:39 -04:00
Symbol fixes
Quick fixing a few more unresolved symbols. This should compile as is, but will not run as it requires mman.dll.
This commit is contained in:
@@ -55,13 +55,13 @@ void kdsnetm_init_globals();
|
||||
* Register GOAL DECI2 Protocol Driver with DECI2 service
|
||||
* DONE, EXACT
|
||||
*/
|
||||
void InitGoalProto();
|
||||
//void InitGoalProto();
|
||||
|
||||
/*!
|
||||
* Close the DECI2 Protocol Driver
|
||||
* DONE, EXACT
|
||||
*/
|
||||
void ShutdownGoalProto();
|
||||
//void ShutdownGoalProto();
|
||||
|
||||
/*!
|
||||
* Handle a DECI2 Protocol Event for the GOAL Proto.
|
||||
@@ -76,7 +76,7 @@ void GoalProtoHandler(int event, int param, void* data);
|
||||
* DONE, original version used an uncached address and had a FlushCache call, which were both
|
||||
* removed
|
||||
*/
|
||||
s32 SendFromBufferD(s32 p1, u64 p2, char* data, s32 size);
|
||||
//s32 SendFromBufferD(s32 p1, u64 p2, char* data, s32 size);
|
||||
|
||||
/*!
|
||||
* Print GOAL Protocol status
|
||||
|
||||
@@ -71,7 +71,7 @@ void ClearPending() {
|
||||
Ptr<char> msg = OutputBufArea.cast<char>() + sizeof(GoalMessageHeader);
|
||||
auto size = strlen(msg.c());
|
||||
// note - if size is ever greater than 2^16 this will cause an issue.
|
||||
SendFromBuffer(msg.c(), size);
|
||||
// SendFromBuffer(msg.c(), size);
|
||||
clear_output();
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@ void ClearPending() {
|
||||
if (send_size > 64000) {
|
||||
send_size = 64000;
|
||||
}
|
||||
SendFromBufferD(2, 0, msg, send_size);
|
||||
// SendFromBufferD(2, 0, msg, send_size);
|
||||
size -= send_size;
|
||||
msg += send_size;
|
||||
}
|
||||
@@ -103,9 +103,9 @@ void ClearPending() {
|
||||
*/
|
||||
void SendAck() {
|
||||
if (MasterDebug) {
|
||||
SendFromBufferD(u16(ListenerMessageKind::MSG_ACK), protoBlock.msg_id,
|
||||
AckBufArea + sizeof(GoalMessageHeader),
|
||||
strlen(AckBufArea + sizeof(GoalMessageHeader)));
|
||||
// SendFromBufferD(u16(ListenerMessageKind::MSG_ACK), protoBlock.msg_id,
|
||||
// AckBufArea + sizeof(GoalMessageHeader),
|
||||
// strlen(AckBufArea + sizeof(GoalMessageHeader)));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -329,7 +329,7 @@ int InitMachine() {
|
||||
// }
|
||||
|
||||
if (MasterDebug) { // connect to GOAL compiler
|
||||
InitGoalProto();
|
||||
// InitGoalProto();
|
||||
}
|
||||
|
||||
printf("InitSound\n");
|
||||
@@ -359,7 +359,7 @@ int ShutdownMachine() {
|
||||
StopIOP();
|
||||
CloseListener();
|
||||
ShutdownSound();
|
||||
ShutdownGoalProto();
|
||||
// ShutdownGoalProto();
|
||||
Msg(6, "kernel: machine shutdown");
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -57,9 +57,9 @@ u32 ReceiveToBuffer(char* buff) {
|
||||
* The message type is OUTPUT
|
||||
* DONE, EXACT
|
||||
*/
|
||||
s32 SendFromBuffer(char* buff, s32 size) {
|
||||
return SendFromBufferD(u16(ListenerMessageKind::MSG_OUTPUT), 0, buff, size);
|
||||
}
|
||||
//s32 SendFromBuffer(char* buff, s32 size) {
|
||||
// return SendFromBufferD(u16(ListenerMessageKind::MSG_OUTPUT), 0, buff, size);
|
||||
|
||||
|
||||
/*!
|
||||
* Just prepare the Ack buffer, doesn't actually connect.
|
||||
|
||||
@@ -588,7 +588,7 @@ bool Reader::try_token_as_binary(const Token& tok, Object& obj) {
|
||||
|
||||
for (uint32_t i = 2; i < tok.text.size(); i++) {
|
||||
if (value & (0x8000000000000000)) {
|
||||
throw std::exception("overflow in binary constant:)");
|
||||
throw std::runtime_error("overflow in binary constant:)");
|
||||
}
|
||||
|
||||
value <<= 1u;
|
||||
|
||||
Reference in New Issue
Block a user