Cleanup event types

This commit is contained in:
Joshua Granick
2018-06-19 11:37:12 -07:00
parent 3491c5cf9c
commit 8e91009bc4
31 changed files with 160 additions and 329 deletions

View File

@@ -4,7 +4,6 @@
#include <system/CFFI.h>
#include <utils/Bytes.h>
#include <utils/String.h>
namespace lime {
@@ -15,7 +14,7 @@ namespace lime {
Resource () : data (NULL), path (NULL) {}
Resource (const char* path) : data (NULL), path (path) {}
Resource (HL_String* path) : data (NULL), path (path ? hl_to_utf8 ((const uchar*)path->bytes) : NULL) {}
Resource (hl_vstring* path) : data (NULL), path (path ? hl_to_utf8 ((const uchar*)path->bytes) : NULL) {}
Resource (Bytes* data) : data (data), path (NULL) {}
Bytes* data;

View File

@@ -1,23 +0,0 @@
#ifndef LIME_UTILS_STRING_H
#define LIME_UTILS_STRING_H
#include <system/CFFI.h>
namespace lime {
struct HL_String {
hl_type* t;
unsigned char* bytes;
int length;
};
}
#endif