Skip to content

Commit

Permalink
fix smash 3.0 error
Browse files Browse the repository at this point in the history
  • Loading branch information
spacemeowx2 committed Apr 21, 2019
1 parent 1d78707 commit ea0dcb6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ldn_mitm/source/ldn_icommunication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ Result ICommunicationInterface::SetWirelessControllerRestriction() {
return 0;
}

Result ICommunicationInterface::SetOperationMode(u8 mode) {
return 0;
}

Result ICommunicationInterface::GetState(Out<u32> state) {
state.SetValue(static_cast<u32>(this->lanDiscovery.getState()));

Expand Down
9 changes: 7 additions & 2 deletions ldn_mitm/source/ldn_icommunication.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ enum LdnCommCmd {
LdnCommCmd_GetNetworkInfoLatestUpdate = 101,
LdnCommCmd_Scan = 102,
LdnCommCmd_ScanPrivate = 103, // nyi
LdnCommCmd_SetWirelessControllerRestriction = 104, // nyi. Not sure the name of 104. guessed from smash
LdnCommCmd_SetWirelessControllerRestriction = 104, // nyi
LdnCommCmd_OpenAccessPoint = 200,
LdnCommCmd_CloseAccessPoint = 201,
LdnCommCmd_CreateNetwork = 202,
Expand All @@ -47,10 +47,12 @@ enum LdnCommCmd {
LdnCommCmd_OpenStation = 300,
LdnCommCmd_CloseStation = 301,
LdnCommCmd_Connect = 302,
LdnCommCmd_ConnectPrivate = 303, // nyi
LdnCommCmd_ConnectPrivate = 303, // nyi
LdnCommCmd_Disconnect = 304,
LdnCommCmd_Initialize = 400,
LdnCommCmd_Finalize = 401,
LdnCommCmd_InitializeSystem2 = 402, // nyi
LdnCommCmd_SetOperationMode = 403, // nyi
};

class ICommunicationInterface : public IServiceObject {
Expand Down Expand Up @@ -92,6 +94,7 @@ class ICommunicationInterface : public IServiceObject {
Result Connect(ConnectNetworkData dat, InPointer<NetworkInfo> data);
Result GetNetworkInfoLatestUpdate(OutPointerWithServerSize<NetworkInfo, 1> buffer, OutPointerWithClientSize<NodeLatestUpdate> pUpdates);
Result SetWirelessControllerRestriction();
Result SetOperationMode(u8 mode);
public:
DEFINE_SERVICE_DISPATCH_TABLE {
MakeServiceCommandMeta<LdnCommCmd_GetState, &ICommunicationInterface::GetState>(),
Expand All @@ -116,5 +119,7 @@ class ICommunicationInterface : public IServiceObject {
MakeServiceCommandMeta<LdnCommCmd_SetStationAcceptPolicy, &ICommunicationInterface::SetStationAcceptPolicy>(),
MakeServiceCommandMeta<LdnCommCmd_Initialize, &ICommunicationInterface::Initialize>(),
MakeServiceCommandMeta<LdnCommCmd_Finalize, &ICommunicationInterface::Finalize>(),
MakeServiceCommandMeta<LdnCommCmd_InitializeSystem2, &ICommunicationInterface::Initialize>(),
MakeServiceCommandMeta<LdnCommCmd_SetOperationMode, &ICommunicationInterface::SetOperationMode>(),
};
};

0 comments on commit ea0dcb6

Please sign in to comment.