[DEV] use path in api cutter instead of string

This commit is contained in:
Edouard DUPIN 2019-04-01 22:02:12 +02:00
parent aa9610f85d
commit 0bcfe53bc9
2 changed files with 3 additions and 2 deletions

View File

@ -38,6 +38,7 @@ egami::Image egami::load(const etk::Uri& _uri, const ivec2& _size) {
etk::String extention = etk::toLower(_uri.getPath().getExtention());
egami::Image out;
// select the corect Loader :
EGAMI_ERROR("parse file '" << _uri << "' extention=" << extention);
if (extention == "edf") {
// internal format for ewol distance field ==> simple sistance field image
out = egami::loadEDF(_uri);

View File

@ -22,8 +22,8 @@ static void usage(int _retValue = 0) {
int main(int argc, const char *argv[]) {
// the only one init for etk:
etk::init(argc, argv);
etk::String input;
etk::String output;
etk::Path input;
etk::Path output;
for (int32_t iii=0; iii<argc ; ++iii) {
etk::String data = argv[iii];
if ( data == "-h"