List of commits:
Subject Hash Author Date (UTC)
Moddable dialogue loading via FileOpen 6183fb4b8dde53f07f8e7bf6835a8fe7ca0a8a8c mse 2021-05-29 10:54:24
Moddable sound file loading via FileOpen ed4d1680cfb17f573fe799908d35e6856c183076 mse 2021-05-29 07:21:32
Update en_to_zh, start implementing moddable FileOpen, fix -Wsign-compare 89d00440e1c35d46851fb1d300107da9725d261d mse 2021-05-27 21:29:27
Add a third procedural basket and winnerberry translation string 9b970d581d5094fd3ea7b9da2b4e397c4f4c94db mse 2021-05-27 09:29:02
Add STOPSOUNDS command 22507196106fcd8db7b4bae15b6a2bf9168dd61e mse 2021-05-27 05:56:57
Wake player when hit b2bc7d9cb37a9c9a707e9b8428e6f4d3fa2f27b7 mse 2021-05-26 08:50:53
Minor clarifications d5a83695acdf78b21610239d530b1317dc4003cc mse 2021-05-24 00:11:59
DRM-free dynamic target c51ae66a80c38d4d8aec606ad04492ea12a56fcd mse 2021-05-23 23:53:32
Initial commit bfb7298e48367d2ac0924811b4950f3066ff075c mse 2021-05-22 05:08:16
Commit 6183fb4b8dde53f07f8e7bf6835a8fe7ca0a8a8c - Moddable dialogue loading via FileOpen
Author: mse
Author date (UTC): 2021-05-29 10:54
Committer name: mse
Committer date (UTC): 2021-05-29 10:54
Parent(s): ed4d1680cfb17f573fe799908d35e6856c183076
Signing key:
Tree: c06e665d4b734a06461aa14b327b792eb25543ef
File Lines added Lines deleted
confec.cpp 1 0
include/dialogue.h 7 2
File confec.cpp changed (mode: 100644) (index 1a68e82..147c648)
... ... FILE *FileOpen( const char* filename, const char* modes );
88 88
89 89 // General-purpose game headers. // General-purpose game headers.
90 90 #include <en_to_zh.h> #include <en_to_zh.h>
91 #define DIALOGUE_FOPEN FileOpen
91 92 #include <dialogue.h> #include <dialogue.h>
92 93 #include <fseq.h> #include <fseq.h>
93 94 #define FWORLD_FOPEN FileOpen #define FWORLD_FOPEN FileOpen
File include/dialogue.h changed (mode: 100755) (index 1b78172..d8e81ec)
15 15 #include <string> #include <string>
16 16 #include <vector> #include <vector>
17 17
18 // Moddable fopen.
19 #ifndef DIALOGUE_FOPEN
20 #define DIALOGUE_FOPEN fopen
21 #endif
22
18 23 namespace dialogue { namespace dialogue {
19 24
20 25 // Key/value pairs. // Key/value pairs.
 
... ... void Talk::go( std::string id ){
93 98 } }
94 99
95 100 void Talk::append( std::string filePath ){ void Talk::append( std::string filePath ){
96 FILE *stream = fopen( filePath.c_str(), "rb" );
101 FILE *stream = DIALOGUE_FOPEN( filePath.c_str(), "rb" );
97 102 if( !stream ){ if( !stream ){
98 103 // Attempt to load from the fallback directory. // Attempt to load from the fallback directory.
99 104 std::string altPath; std::string altPath;
 
... ... void Talk::append( std::string filePath ){
105 110 }else{ }else{
106 111 altPath = fallbackDir + "/" + filePath.substr( pos + 1 ); altPath = fallbackDir + "/" + filePath.substr( pos + 1 );
107 112 } }
108 stream = fopen( altPath.c_str(), "rb" );
113 stream = DIALOGUE_FOPEN( altPath.c_str(), "rb" );
109 114 } }
110 115 } }
111 116 if( !stream ){ if( !stream ){
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/mse/ConfectionerEngine

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/mse/ConfectionerEngine

Clone this repository using git:
git clone git://git.rocketgit.com/user/mse/ConfectionerEngine

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main