Skip to content

Commit

Permalink
Update native-lib.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
softbf395 authored Oct 21, 2024
1 parent a2dc02e commit 75f8a47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/cpp/native-lib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

void mainfunc(){
// Only start when roblox is loaded
while (!isLibraryLoaded("libroblox.so")) sleep(1);
while (!isLibraryLoaded("RobloxLib.framework")) sleep(1);

// Init our function pointers
initfuncs();
Expand All @@ -22,4 +22,4 @@ void mainfunc(){
}

[[maybe_unused]] __attribute__((constructor))
void EntryPoint(){ std::thread{mainfunc}.detach(); }
void EntryPoint(){ std::thread{mainfunc}.detach(); }

0 comments on commit 75f8a47

Please sign in to comment.