Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Commit

Permalink
now extraction is aborted is could not open file
Browse files Browse the repository at this point in the history
  • Loading branch information
Turupawn committed Dec 3, 2018
1 parent 4835044 commit 1f8f1b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/modio.cpp
Expand Up @@ -53,14 +53,13 @@ void loadAuthenticationFile()

void modioInit(u32 environment, u32 game_id, char *api_key, char *root_path)
{
modio::clearLog();
modio::writeLogLine("Initializing SDK", MODIO_DEBUGLEVEL_LOG);

modio::createDirectory(modio::getModIODirectory());
modio::createDirectory(modio::getModIODirectory() + "mods/");
modio::createDirectory(modio::getModIODirectory() + "cache/");
modio::createDirectory(modio::getModIODirectory() + "tmp/");

modio::clearLog();
modio::writeLogLine("Initializing SDK", MODIO_DEBUGLEVEL_LOG);
modio::writeLogLine("v0.10.1 preview", MODIO_DEBUGLEVEL_LOG);

if (environment == MODIO_ENVIRONMENT_TEST)
Expand All @@ -85,13 +84,6 @@ void modioInit(u32 environment, u32 game_id, char *api_key, char *root_path)

modio::writeLogLine("SDK Initialized", MODIO_DEBUGLEVEL_LOG);
}
/*
void init(int game_id, char* api_key, char* root_path)
{
ROOT_PATH = root_path;
init(game_id, api_key);
}
*/

void modioSetDebugLevel(u32 debug_level)
{
Expand Down
1 change: 1 addition & 0 deletions src/wrappers/MinizipWrapper.cpp
Expand Up @@ -69,6 +69,7 @@ void extract(std::string zip_path, std::string directory_path)
if (!out)
{
writeLogLine(std::string("error opening ") + final_filename, MODIO_DEBUGLEVEL_ERROR);
return;
}

err = UNZ_OK;
Expand Down

0 comments on commit 1f8f1b1

Please sign in to comment.