Skip to content

Conversation

@luasoft10
Copy link
Contributor

No description provided.


public:
static Context& current();
static __declspec(noinline) bool isInRole(Identities identity, Permissions permission);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this noinline?
It won't inline regardless, since its defined in a C++ file.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SecurityContext::requirePermission does not inline this function in RBXGS although it was inlined for me when I was matching this function.

Functions defined in the source file can STILL be inlined, see BlockBlockContact::computeIsColliding overloads

Copy link
Collaborator

@bluepilledgreat bluepilledgreat Jan 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SecurityContext::requirePermission does not inline this function in RBXGS although it was inlined for me when I was matching this function.

How? requirePermission is defined in the header, and isInRole is defined in the C++ file. It should not inline.

Functions defined in the source file can STILL be inlined, see BlockBlockContact::computeIsColliding overloads

Shouldn't be possible.

}
}

TimerService* tService = ServiceProvider::create<TimerService>(this);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just use its full name


namespace RBX
template<class Class>
class PluginInterfaceAdapter : public PluginInterface
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Absolutely not. Players.h is in the public includes directory, meaning that App can include this file. App does not have RakNet in its includes directory so this will not work.

#include "SuperSafeChanged.h"
#include "v8tree/Service.h"
#include "v8datamodel/ModelInstance.h"
#include "Client.h"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not in the public includes directory, so this will not work.

#include "Network/Player.h"
#include "Network/SuperSafeChanged.h"
#include "Player.h"
#include "Streaming.h"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not in the public includes directory, so this will not work.

#pragma once
#include "Network/Player.h"
#include "Network/SuperSafeChanged.h"
#include "Player.h"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't work

@luasoft10
Copy link
Contributor Author

luasoft10 commented Jan 17, 2026

I moved the declarations and includes noted in the reviews into the source files, should be resolved but check again

@pizzaboxer pizzaboxer mentioned this pull request Jan 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants