[DiscordArchive] <@456226577798135808> what is it?
[DiscordArchive] <@456226577798135808> what is it?
Archived author: Skarn • Posted: 2018-10-20T08:49:47.544000+00:00
Original source
Cool
Archived author: Deleted User • Posted: 2018-10-20T08:50:48.076000+00:00
Original source
```python
cdef extern from "native/LocalCascHandler.h":
cdef cppclass LocalCascHandler:
LocalCascHandler() except +
void initialize(const char* dataPath)
bool exists(const char* fileName)
void* openFile(const char* fileName, int& fileSize)
void* openFileByFileId(int fileDataId, int& fileSize)
```
Archived author: Skarn • Posted: 2018-10-20T08:51:40.434000+00:00
Original source
Yeah that is pretty much all I need
Archived author: Deleted User • Posted: 2018-10-20T08:51:57.718000+00:00
Original source
added an exists(fileDataId)
Archived author: Deleted User • Posted: 2018-10-20T08:53:05.935000+00:00
Original source
probably need to do this differently, function overloading in python
Archived author: Skarn • Posted: 2018-10-20T08:54:34.230000+00:00
Original source
Well, it is only coming in 3.8 iirc
Archived author: Skarn • Posted: 2018-10-20T08:54:35.922000+00:00
Original source
Sadly
Archived author: Skarn • Posted: 2018-10-20T08:54:43.555000+00:00
Original source
The multimethod dispatch
Archived author: Skarn • Posted: 2018-10-20T08:55:03.876000+00:00
Original source
So for now check the type and branch the logic inside the function
Archived author: Skarn • Posted: 2018-10-20T08:55:33.238000+00:00
Original source
if isinstance(arg, int):