rikkimax / bin2d Goto Github PK
View Code? Open in Web Editor NEWA tool that enables files to be compiled into an executable and extracted at startup.
License: MIT License
A tool that enables files to be compiled into an executable and extracted at startup.
License: MIT License
Often I find that I will have sub-folders with identical file names inside of them.
Configs
+->Config1
| +->MyFile.txt
+->Config2
+->MyFile.txt
However Doing this creates a problem with identical identifiers in the module output.
const(ubyte[]) MyFile_txt = cast(const(ubyte[]))x ....
const(ubyte[]) MyFile_txt = cast(const(ubyte[]))x ....
This will not be able to compile
I tried build a simple example with dmd 2.067.1
bin2d MODULENAME.d=Resource_Reference QCUMBER.jpg
GOT: MODULENAME.d
-------------------------------------MAIN.d
import std.stdio;
import Resource_Reference;
void main() {
string[] FILE_LOCATIONS = outputFilesToFileSystem();
FILE_LOCATIONS.each!writeln();
dmd MAIN.d MODULENAME.d
MODULENAME.d(20): Error: undefined identifier names, did you mean variable name?
MODULENAME.d(60): Error: cannot implicitly convert expression ("\xff\xd8\xff\xe0 ..... ) of type string to const( ubyte[] )
MODULENAME.d(58): Error: forward reference to variable QCUMBER_jpg
|-------------------------------------|
| REPORT |
|------------------|------------------|
| QCUMBER.jpg | QCUMBER_jpg |
| tk86t.dll | tk86t_dll |
| tcl86t.dll | tcl86t_dll |
| taylor's app.exe | taylor's app_exe |
|------------------|------------------|
dmd MAIN.d MODULENAME.d
MODULENAME.d(57): Error: unterminated character constant
MODULENAME.d(57): Error: semicolon expected, not '63U'
MODULENAME.d(57): Error: declaration expected, not '63U'
MODULENAME.d(62): Error: unterminated character constant
MODULENAME.d(62): Error: comma expected separating array initializers, not 63U
MODULENAME.d(62): Error: semicolon expected, not 'app_exe'
MODULENAME.d(62): Error: no identifier for declarator app_exe
MODULENAME.d(62): Error: declaration expected, not ']'
Renaming taylor's app.exe to APP.exe fixes this problem.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.