<commit_before>#include "rogue_interface.h"
#include "RogueProgram.h"
#include "unistd.h"


#define ROGUEAPI

static int          RogueInterface_argc = 0;
static const char** RogueInterface_argv = {0};


ROGUEAPI RogueString* Plasmacore_get_documents_folder()
{
  return RogueString_validate(RogueString_create_from_utf8("."));
}

ROGUEAPI RogueString* Plasmacore_get_library_folder()
{
  return RogueString_validate(RogueString_create_from_utf8("."));
}

extern "C" RogueString* Plasmacore_find_asset( RogueString* filepath )
{
  if (access((char *)filepath->utf8, R_OK) == -1) return 0;
  return RogueString_create_from_utf8((char *)filepath->utf8);
}



ROGUEAPI void RogueInterface_configure()
{
  Rogue_configure( RogueInterface_argc, RogueInterface_argv );
  PlasmacoreSoundInit();
}<commit_msg>Added extern C to SDL rogue_interface.cpp Plasmacore_get_documents_folder() and Plasmacore_get_library_folder.<commit_after>#include "rogue_interface.h"
#include "RogueProgram.h"
#include "unistd.h"


#define ROGUEAPI

static int          RogueInterface_argc = 0;
static const char** RogueInterface_argv = {0};


ROGUEAPI extern "C" RogueString* Plasmacore_get_documents_folder()
{
  return RogueString_validate(RogueString_create_from_utf8("."));
}

ROGUEAPI extern "C" RogueString* Plasmacore_get_library_folder()
{
  return RogueString_validate(RogueString_create_from_utf8("."));
}

extern "C" RogueString* Plasmacore_find_asset( RogueString* filepath )
{
  if (access((char *)filepath->utf8, R_OK) == -1) return 0;
  return RogueString_create_from_utf8((char *)filepath->utf8);
}



ROGUEAPI void RogueInterface_configure()
{
  Rogue_configure( RogueInterface_argc, RogueInterface_argv );
  PlasmacoreSoundInit();
}
{'fraction_non_alphanumeric': 0.11040092969203952, 'fraction_numerical': 0.010459035444509006, 'mean_word_length': 6.935483870967742, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2879754', 'n_tokens_mistral': 637, 'n_tokens_neox': 620, 'n_words': 112}