Skip to content

Commit 9bdd880

Browse files
committed
fix: linking issues
1 parent 8764cb6 commit 9bdd880

3 files changed

Lines changed: 8 additions & 12 deletions

File tree

include/cmdfx/core/builder.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ int print(char*** array) {
6262
* @return char** The 2D array of characters.
6363
*/
6464
char** to2DArray(std::vector<std::string> string) {
65-
char** array = Builder::createCharArray(string.size(), string[0].size());
65+
char** array = Char2DBuilder_create(string.size(), string[0].size());
6666
for (int i = 0; i < string.size(); i++) {
6767
for (int j = 0; j < string[i].size(); j++) {
6868
array[i][j] = string[i][j];
@@ -78,7 +78,7 @@ char** to2DArray(std::vector<std::string> string) {
7878
* @return char*** The 3D array of characters.
7979
*/
8080
char*** to3DArray(std::vector<std::vector<std::string>> string) {
81-
char*** array = Builder::createStringArray(string.size(), string[0].size());
81+
char*** array = String2DBuilder_create(string.size(), string[0].size());
8282
for (int i = 0; i < string.size(); i++) {
8383
for (int j = 0; j < string[i].size(); j++) {
8484
array[i][j] = const_cast<char*>(string[i][j].c_str());
@@ -425,4 +425,4 @@ int multiGradientsBackgroundFull(
425425
);
426426
}
427427
}; // namespace Builder
428-
} // namespace CmdFX
428+
} // namespace CmdFX

include/cmdfx/core/util.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ int setTickSpeed(int tickspeed) {
2929

3030
// Multithreading
3131

32-
unsigned long launchThread(void (*func)(void*), void* arg) {
32+
ThreadID launchThread(void (*func)(void*), void* arg) {
3333
return CmdFX_launchThread(func, arg);
3434
}
3535

36-
int joinThread(unsigned long thread) {
36+
int joinThread(ThreadID thread) {
3737
return CmdFX_joinThread(thread);
3838
}
3939

40-
int detachThread(unsigned long thread) {
40+
int detachThread(ThreadID thread) {
4141
return CmdFX_detachThread(thread);
4242
}
4343

@@ -73,4 +73,4 @@ int destroyThreadSafe() {
7373
return CmdFX_destroyThreadSafe();
7474
}
7575

76-
} // namespace CmdFX
76+
} // namespace CmdFX

include/cmdfx/physics/engine.hpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,6 @@ void cleanup() {
5353
Engine_cleanup();
5454
}
5555

56-
bool isMotionDebugEnabled() {
57-
return Engine_isMotionDebugEnabled() != 0;
58-
}
59-
6056
bool isSpriteStatic(Sprite& sprite) {
6157
return Sprite_isStatic(sprite.getSprite()) != 0;
6258
}
@@ -106,4 +102,4 @@ void setCharacterMass(char c, double mass) {
106102
}
107103
}; // namespace Engine
108104

109-
} // namespace CmdFX
105+
} // namespace CmdFX

0 commit comments

Comments
 (0)