From 307cfd1d03882c0be2601585628e89e3944a7bfa Mon Sep 17 00:00:00 2001 From: SpikeHD Date: Wed, 22 Nov 2023 11:41:36 -0800 Subject: [PATCH] fix: remove export name --- ext/extensions/FileMetadata/FileMetadata.yy | 82 --------------------- ext/metadata.json | 7 -- src/lib.rs | 6 -- 3 files changed, 95 deletions(-) delete mode 100644 ext/extensions/FileMetadata/FileMetadata.yy delete mode 100644 ext/metadata.json diff --git a/ext/extensions/FileMetadata/FileMetadata.yy b/ext/extensions/FileMetadata/FileMetadata.yy deleted file mode 100644 index dad584a..0000000 --- a/ext/extensions/FileMetadata/FileMetadata.yy +++ /dev/null @@ -1,82 +0,0 @@ -{ - "resourceType": "GMExtension", - "resourceVersion": "1.2", - "name": "FileMetadata", - "androidactivityinject": "", - "androidclassname": "", - "androidcodeinjection": "", - "androidinject": "", - "androidmanifestinject": "", - "androidPermissions": [], - "androidProps": false, - "androidsourcedir": "", - "author": "", - "classname": "", - "copyToTargets": 64, - "date": "2023-11-21T16:32:23.1220223-08:00", - "description": "", - "exportToGame": true, - "extensionVersion": "0.0.1", - "files": [ - {"resourceType":"GMExtensionFile","resourceVersion":"1.0","name":"","constants":[],"copyToTargets":-1,"filename":"file_metadata.dll","final":"","functions":[ - {"resourceType":"GMExtensionFunction","resourceVersion":"1.0","name":"filemeta_size","argCount":0,"args":[ - 1, - ],"documentation":"","externalName":"file_size","help":"filemeta_size(string:file_path)->double","hidden":false,"kind":1,"returnType":2,}, - {"resourceType":"GMExtensionFunction","resourceVersion":"1.0","name":"filemeta_creation_date","argCount":0,"args":[ - 1, - ],"documentation":"","externalName":"file_creation_date","help":"filemeta_creation_date(string:file_path)->double","hidden":false,"kind":1,"returnType":2,}, - {"resourceType":"GMExtensionFunction","resourceVersion":"1.0","name":"filemeta_modification_date","argCount":0,"args":[ - 1, - ],"documentation":"","externalName":"file_modification_date","help":"filemeta_modificaiton_date(string:file_path)->double","hidden":false,"kind":1,"returnType":2,}, - {"resourceType":"GMExtensionFunction","resourceVersion":"1.0","name":"filemeta_access_date","argCount":0,"args":[ - 1, - ],"documentation":"","externalName":"file_access_date","help":"filemeta_access_date(string:file_path)->double","hidden":false,"kind":1,"returnType":2,}, - {"resourceType":"GMExtensionFunction","resourceVersion":"1.0","name":"filemeta_exists","argCount":0,"args":[ - 1, - ],"documentation":"","externalName":"file_exists","help":"filemeta_exists(string:file_path)->bool","hidden":false,"kind":1,"returnType":2,}, - {"resourceType":"GMExtensionFunction","resourceVersion":"1.0","name":"filemeta_is_directory","argCount":0,"args":[ - 1, - ],"documentation":"","externalName":"file_is_directory","help":"filemeta_is_directory(string:file_path)->bool","hidden":false,"kind":1,"returnType":2,}, - ],"init":"","kind":1,"order":[],"origname":"","ProxyFiles":[],"uncompress":false,"usesRunnerInterface":false,}, - ], - "gradleinject": "", - "hasConvertedCodeInjection": false, - "helpfile": "", - "HTML5CodeInjection": "", - "html5Props": false, - "IncludedResources": [], - "installdir": "", - "iosCocoaPodDependencies": "", - "iosCocoaPods": "", - "ioscodeinjection": "", - "iosdelegatename": "", - "iosplistinject": "", - "iosProps": false, - "iosSystemFrameworkEntries": [], - "iosThirdPartyFrameworkEntries": [], - "license": "", - "maccompilerflags": "", - "maclinkerflags": "", - "macsourcedir": "", - "options": [], - "optionsFile": "options.json", - "packageId": "", - "parent": { - "name": "Libraries", - "path": "folders/Libraries.yy", - }, - "productId": "", - "sourcedir": "", - "supportedTargets": -1, - "tvosclassname": null, - "tvosCocoaPodDependencies": "", - "tvosCocoaPods": "", - "tvoscodeinjection": "", - "tvosdelegatename": null, - "tvosmaccompilerflags": "", - "tvosmaclinkerflags": "", - "tvosplistinject": "", - "tvosProps": false, - "tvosSystemFrameworkEntries": [], - "tvosThirdPartyFrameworkEntries": [], -} diff --git a/ext/metadata.json b/ext/metadata.json deleted file mode 100644 index bed64eb..0000000 --- a/ext/metadata.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "package_id": "libfilemetadata", - "display_name": "FileMetadata", - "version": "1.0.0", - "package_type": "asset", - "ide_version": "2023.8.1.102" -} \ No newline at end of file diff --git a/src/lib.rs b/src/lib.rs index 7906a2e..2ea66bf 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -10,7 +10,6 @@ pub fn log_and_return(e: impl std::fmt::Display) -> f64 { } #[no_mangle] -#[cfg_attr(not(target_os = "macos"), export_name = "_file_creation_date")] pub unsafe extern "C" fn file_creation_date(path: *const i8) -> f64 { let path = unsafe { std::ffi::CStr::from_ptr(path).to_bytes() }; let path = match std::str::from_utf8(path) { @@ -35,7 +34,6 @@ pub unsafe extern "C" fn file_creation_date(path: *const i8) -> f64 { } #[no_mangle] -#[cfg_attr(not(target_os = "macos"), export_name = "_file_modification_date")] pub unsafe extern "C" fn file_modification_date(path: *const i8) -> f64 { let path = unsafe { std::ffi::CStr::from_ptr(path).to_bytes() }; let path = match std::str::from_utf8(path) { @@ -60,7 +58,6 @@ pub unsafe extern "C" fn file_modification_date(path: *const i8) -> f64 { } #[no_mangle] -#[cfg_attr(not(target_os = "macos"), export_name = "_file_access_date")] pub unsafe extern "C" fn file_access_date(path: *const i8) -> f64 { let path = unsafe { std::ffi::CStr::from_ptr(path).to_bytes() }; let path = match std::str::from_utf8(path) { @@ -85,7 +82,6 @@ pub unsafe extern "C" fn file_access_date(path: *const i8) -> f64 { } #[no_mangle] -#[cfg_attr(not(target_os = "macos"), export_name = "_file_size")] pub unsafe extern "C" fn file_size(path: *const i8) -> f64 { let path = unsafe { std::ffi::CStr::from_ptr(path).to_bytes() }; let path = match std::str::from_utf8(path) { @@ -102,7 +98,6 @@ pub unsafe extern "C" fn file_size(path: *const i8) -> f64 { } #[no_mangle] -#[cfg_attr(not(target_os = "macos"), export_name = "_file_exists")] pub unsafe extern "C" fn file_exists(path: *const i8) -> bool { let path = unsafe { std::ffi::CStr::from_ptr(path).to_bytes() }; let path = match std::str::from_utf8(path) { @@ -116,7 +111,6 @@ pub unsafe extern "C" fn file_exists(path: *const i8) -> bool { } #[no_mangle] -#[cfg_attr(not(target_os = "macos"), export_name = "_file_is_directory")] pub unsafe extern "C" fn file_is_directory(path: *const i8) -> bool { let path = unsafe { std::ffi::CStr::from_ptr(path).to_bytes() }; let path = match std::str::from_utf8(path) {