Files
LGram16 dd97ddec92 Restructure repository to include all source folders
Move git root from Client/ to src/ to track all source code:
- Client: Game client source (moved to Client/Client/)
- Server: Game server source
- GameTools: Development tools
- CryptoSource: Encryption utilities
- database: Database scripts
- Script: Game scripts
- rylCoder_16.02.2008_src: Legacy coder tools
- GMFont, Game: Additional resources

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 20:17:20 +09:00

45 lines
757 B
C++

// Compiler.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include "../ScriptEngine.h"
using namespace std;
void ScriptMessage( const char * msg )
{
cout << "##" << msg << "##\n";
}
int main(int argc, char* argv[])
{
if( argv[1] != NULL )
{
_SE_SetMessageFunction( ScriptMessage );
SCRIPT Script;
Script = _SE_Create( argv[1] );
char szOutFile[1024];
strcpy( szOutFile, argv[1] );
char * p = strstr( szOutFile, ".gsf" );
if( p )
{
strcpy( p, ".mcf" );
_SE_Save( Script, szOutFile );
_SE_Destroy( Script );
cout << "**Congratulation**\n";
return 0;
}
_SE_Destroy( Script );
}
cout << "usage : ScriptTest [gsf filename]" << endl;
return 0;
}